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!