NetTopologySuite / NetTopologySuite

A .NET GIS solution that is fast and reliable for the .NET platform.
Other
1.44k stars 317 forks source link

GeometryFixer changes GeometryType from MultiPolygon to Polygon #566

Closed swidz closed 2 years ago

swidz commented 2 years ago

In some cases, when NetTopologySuite.Geometries.Utilities.GeometryFixer.Fix(geometry) is applied to MultiPolygon geometry, Polygon geometry type is returned. Is this expected?

Please see the included log for geometry details PolygonVsMultiPolygonTest-637707715546023206.zip

Regards, Sebastian

FObermaier commented 2 years ago

That is the way it is intentionally coded. When working with data stores that require not to change the typ I see a reason to avoid that. We'll check with JTS.