MapServer / MapServer

Source code of the MapServer project. Please submit pull requests to the 'main' branch.
https://mapserver.org
Other
1.03k stars 373 forks source link

[PATCH] Add option to skip failures on OGR layers #5724

Open MarcWeustink opened 5 years ago

MarcWeustink commented 5 years ago

For generating floorplan maps we sometimes receive Autocad drawings. We import those ad DXF through a OGR layer. Recently we received some where one feature triggered an error in the GDAL library [https://github.com/OSGeo/gdal/issues/1011] . As a result no map was rendered. In our case having no map is worse than missing one feature. Therefore I've added a processing option PROCESSING "SKIP_FAILURES=YES" so these errors can be ignored.

This is a patch based on mapserver 7.2.0 mapserver_mwe_ignore_feature2.zip

sdlime commented 4 years ago

Even points to a simpler patch if one wanted to have a go (see referenced pull request)... I did not apply the submitted patch. --Steve