Opened 8 years ago

Last modified 8 years ago

#6247 closed defect

GML <xx:geometry> behavior does not work correctly — at Version 1

Reported by: JuergenWeichand Owned by: warmerdam
Priority: normal Milestone: 1.11.4
Component: default Version: unspecified
Severity: normal Keywords: gml, inspire
Cc:

Description (last modified by JuergenWeichand)

According to changeset #25183 (https://trac.osgeo.org/gdal/changeset/25183) the geometry inside <xx:geometry> should be used if there are several geometries per feature. This function seems to be broken. The attached test case produces a wrong result after the .gfs file has been written?

Output:

	---> GDAL Version: 2000100 <---
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	Open attempt: 1
	GetGeometryType: 3
	GetGeometryRef: POLYGON ((2 49,2 50,3 50,3 49,2 49))
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	Open attempt: 2
	GetGeometryType: 1
	GetGeometryRef: POINT (-2 -49)
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	Open attempt: 3
	GetGeometryType: 1
	GetGeometryRef: POINT (-2 -49)

Change History (2)

by JuergenWeichand, 8 years ago

Attachment: ogr-bugreport.py added

Python Testcase

comment:1 by JuergenWeichand, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.