Opened 8 years ago

Last modified 8 years ago

#6247 closed defect

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

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

Description

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 following test case produces a wrong result after the .gfs file has been written? https://gist.github.com/JuergenWeichand/12c77703a8a2547c9b01

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 (1)

by JuergenWeichand, 8 years ago

Attachment: ogr-bugreport.py added

Python Testcase

Note: See TracTickets for help on using tickets.