Ticket #2709 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

GML driver doesn't like feature class called 'polygon'

Reported by: rouault Owned by: warmerdam
Priority: normal Milestone: 1.5.4
Component: OGR_SF Version: unspecified
Severity: normal Keywords: gml
Cc:

Description

GMLHandler::endElement() is confused when it encounters the closing </gml:Polygon> tag of a feature class called 'polygon' (lower case). The solution is to make the comparisons case sensitive.

A CPLAssert(FALSE) is easily triggered with gml.xml from  http://home.gdal.org/projects/gml/gml_samples.zip, and GDAL compiled with -DDEBUG

Very similar to #2215.

Change History

Changed 5 years ago by rouault

  • status changed from new to closed
  • resolution set to fixed

Fixed in trunk in r15282, in branches/1.6 in r15283 and in branches/1.5 in r15284

Note: See TracTickets for help on using tickets.