Active
Project:
Geofield
Version:
7.x-2.1
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Aug 2014 at 09:00 UTC
Updated:
1 Aug 2014 at 09:00 UTC
Hi,
I'm developing a project that works with geospatial data.
I've an external DB with a table named POLYGONS. This table has the fields: geospatial(mulipolygon), area(int) and extension(int).
In my Drupal site I have a node type with the same fields. To add a new node, users have to fill area and extension fields and I have to get the polygon from the external DB.
I'm using hook_node_presave to get the data and save it into geospatial field (Geofield type). But when I look into the drupal database, only the column "geom" is filled. How I can save the data correctly into the geofield field?
Thanks!