#6597 closed defect (fixed)
GML: wrongly interpret some 2D geometries as 3D with CityGML models
Reported by: | Even Rouault | Owned by: | Even Rouault |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SF | Version: | unspecified |
Severity: | normal | Keywords: | gml citygml |
Cc: |
Description
There's a hack in the GML driver regarding CityGML reading :
/* Some CityGML lack a srsDimension="3" in posList, such as in */ /* http://www.citygml.org/fileadmin/count.php?f=fileadmin%2Fcitygml%2Fdocs%2FFrankfurt_Street_Setting_LOD3.zip */ /* So we have to add it manually */
But on some other CityGML files ( https://lists.osgeo.org/pipermail/gdal-dev/2016-July/044833.html , https://www.pdok.nl/nl/producten/pdok-downloads/download-basisregistratie-grootschalige-topografie ), that doesn't work. So let's remove the hack by default, and instead add a GML_SRS_DIMENSION_IF_MISSING config option that can be set to 3 if needed.
In 34705: