Opened 12 months ago

Closed 12 months ago

Last modified 12 months ago

#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.

Change History (2)

comment:1 Changed 12 months ago by Even Rouault

Resolution: fixed
Status: newclosed

In 34705:

GML: remove hack for CityGML regarding forcing srsDimension to 3 if not specified. Instead add a GML_SRS_DIMENSION_IF_MISSING config option that can be set to 3 if needed (fixes #6597)

comment:2 Changed 12 months ago by Even Rouault

In 34706:

GML: remove hack for CityGML regarding forcing srsDimension to 3 if not specified. Instead add a GML_SRS_DIMENSION_IF_MISSING config option that can be set to 3 if needed (fixes #6597)

Note: See TracTickets for help on using tickets.