Skip to main content
Question

MultipolygonZM to multipolygon (2D)

  • March 16, 2017
  • 1 reply
  • 230 views

Hi.

I want to write data in a PostGIS table with geometry as multipolygon (2D). These data come from Esri shapefile that contains 3D polygon according to ogrinfo.

I use an intremediate PostGis table written by FME (Insert setting with Drop and Create table setting). The geometry obtained is a MultiPolygonZM. Using the 2DForcer transformer results in a MultiPolygonM geometry. But the next data management in PostGIS (ending up with insert into final table) returns the error "Geometry has M dimension but column does not".

Is there a way to remove the M coordinate in FME (or to avoid to read a 4D geometry in the input shapefile), rather than to use a ST_force2D in each PostGIS post-treatment.

Thanks

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

redgeographics
Celebrity
Forum|alt.badge.img+62

Have you tried the MeasureRemover transformer?