<div dir="ltr">Hi!<br><div><br></div><div>I'm trying to integrate OGR's FlatGeobuf driver as an output format in my mapfiles.</div><div>It works for the most part and it's awesome, but it fails immediately when I feed some MultiPolygons into it.</div><div><br></div><div>The geometries are queried from an MSSQL DB.</div><div><br></div><div>I get the following error:</div><div><font face="monospace">msOGRWriteShape(): OGR error. Attempt to write feature failed (code=6): ICreateFeature: Mismatched geometry type msCalculateScale(): General error message. Invalid image width or height.</font></div><div><br></div><div>I found a little note in the docs which corresponds with this issue (<a href="https://mapserver.org/input/vector/ogr.html">https://mapserver.org/input/vector/ogr.html</a>):</div><div><i>"Even though MapInfo and other OGR data sources may support layers with mixed geometry types (e.g. points, lines and polygons in the same file) this is not yet supported in MapServer. So you still have to define a layer ‘TYPE’ and make sure that all the shapes in the OGR data source are compatible with that layer type, otherwise MapServer may produce an error about incompatible geometry types at runtime."</i></div><div><i><br></i></div><div>So it fails for me when I have Polygons and MultiPolygons in the table I'm querying.</div><div>But it also fails if it includes MultiPolygons only. So with no mixing of types.</div><div><br></div><div>I'm using the POLYGON type for my layer in the mapfile.</div><div><br></div><div>The same dataset works fine when I'm using the GML2 output format. Even with mixing Polygons and MultiPolygons.</div><div><br></div><div>Am I doing something wrong here?</div><div>Is it a known limitation for MultiPolygons?</div><div>Is there a way to bypass the issue while retaining the geometries in the DB?</div><div><br></div><div>Thank you</div><div>Petrovicz</div></div>