FME – Converting Geometry Type from Polygon to Multipolygon

fmegeometry

I don't want to alter the geometry, just change the geometry type from Polygon to Multipolygon, in order to comply with a constraint.

Best Answer

You can use Aggregatortransformer.

Be careful what mode you choose. To illustrate, I have 5 polygons in entry. If I choose :

  • Geometry - Assemble One Level : The result is one feature (merging of the 5).
  • Geometry - Assemble Hierarchy : The result is five features. I specify the mergefield (here FID), I have 5 unique values so I will keep the 5 geometries.

enter image description here