In FME, I use the Aggregator to merge polygons based on one attribute (desnat in my example file).
- When the output is Shapefile, multipolygons are created and all works fine.
- When the output is OGC Geopackage or Spatialite, FME creates a
GeometryCollection instead of multipolygons (and I can't use
GeometryCollection with others GIS softwares like QGIS).
I tried to use the GeometryCoercer to force the geometry in fme_multi, but nothing is exported.
I tried to create a new attribute geopackage_type with value wkb_multi_polygon. The new attribute is created but the GeometryCoercer can't export anything.
If I remove the GeometryCoercer and I keep the AttributeCreator, the Geopackage is created but with a GeometryCollection and not multipolygons.