New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native FlatGeoBuf from MapServer is not working for files with non specific geometry type #6879
Comments
I was able to reproduce it with this geojson:
Converted to flatgeobuf with An this mapfile:
This does not work while ms_error.log keeps empty: http://localhost/api/Ogc/wfstest?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=Test-FGB&SRSNAME=EPSG%3A4326&OUTPUTFORMAT=geojson |
Sorry to hear it doesn't work. When I implemented it I mostly tested rendering but I think feature access worked too... can you try with a geojson with only a single geometry type and see if that has any effect? |
By the way I append the problematic file, perhaps it helps you to find out whats wrong with it. This flatgeobuf file is produced by QGIS, the orginal source was a shape file. |
@bjornharrtell as you mentioned, the problem only seems to occur when there are multiple geometry types in the flatgeobuf. I was able to successfully query a fgb with multiple linestrings using the native flatgeobuf driver. As soon as I add another type, e.g. polygon, the response remains empty. |
We are using the Windows sysinternals gdal/ogr/MapServer bindings x64 for c#, version 8.0 (MSVC 2022), the flatgeobuf is as native input format for MapServer available.
The OGR FlatGeoBuf seems to work:
LAYER NAME "sections" TYPE POLYGON STATUS ON CONNECTIONTYPE OGR CONNECTION "<absolute path>/bb.fgb" CONNECTIONOPTIONS "VERIFY_BUFFERS" "NO" END PROJECTION "init=epsg:2056" END CLASS NAME "Section style" STYLE COLOR 255 128 128 OUTLINECOLOR 96 96 96 END END END
If we use the same datasource with the native FlatGeoBuf connector for MapServer we get back no response => process is crashing
LAYER NAME "sections" TYPE POLYGON STATUS ON CONNECTIONTYPE flatgeobuf DATA "<absolute path>/bb.fgb" EXTENT 2582739 1108919 2828726 1317743 PROCESSING "CLOSE_CONNECTION=DEFER" CLASS NAME "Section style" STYLE COLOR 255 128 128 OUTLINECOLOR 96 96 96 END END END
Any ideas ? I see no fix in the MapServer 8.0.1 release info
The text was updated successfully, but these errors were encountered: