Question

MultipolygonZM to multipolygon (2D)

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

Userlevel 5
Badge +25

Have you tried the MeasureRemover transformer?

Reply