Skip to main content
Question

MultipolygonZM to multipolygon (2D)

  • March 16, 2017
  • 1 reply
  • 141 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

1 reply

redgeographics
Celebrity
Forum|alt.badge.img+49

Have you tried the MeasureRemover transformer?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings