Relaxing parsing of GML files in OGR
|Reported by:||aps03pwb||Owned by:||warmerdam|
|Severity:||normal||Keywords:||gml xml parse|
OGR currently only recognises GML files when it locates <featureMember> tags with gml tags inside. If no featureMember tags are located it returns an error. The featureMember element is absent from many application schemas (including quite popular ones like GeoRSS) and is also asent from the SF-GML specification.
I would like OGR to complete a second (more relaxed) parse if the initial parse fails whereby it locates gml geometry tags and assumes that the tag two levels up is equivalent to the featureMember element. This should enable GDAL to read XML files that use GML only for a minor subset of their schema.
By peforming the strict parse first and only performing the relaxed parse if the strict parse fails, this enhancement should not negatively impact currently compatible GML files.