Question

OGR invalid element reading GML


Badge +10

Hi @erik_jan or someone else, I am stuck reading a gml file with an OGR namespace in it. FME generates the reader feature type correctly, however, when I run the workspace (FME 2017, even with only an inspector attached to the feature type), it seems that whatever I do, FME throws an error: 

XML Parser error: 'Error in input dataset:'C:\xxxxx.gml' line:15 column:10 message:invalid element name 'ogr:''
The XML Module halted on error, see the logfile for details.

The logfile gives me only this:

A <schemaLocation> in the uri-map is overriding the namespace 'http://www.w3.org/1999/xlink' xsd location from 'http://schemas.opengis.net/gml/3.1.0/xlink/xlinks.xsd' to 'xlink.xsd'
A <schemaLocation> in the uri-map is overriding the namespace 'http://www.w3.org/1999/xlink' xsd location from 'http://schemas.opengis.net/gml/3.1.0/xlink/xlinks.xsd' to 'xlink.xsd'
<GML_1 Reader> - Using the current GML 3.2.1 reader to read v3.1.1 and v2.1.2 documents.
<GML_1 Reader> - Map Embedded Object as: 'ATTRIBUTES'
<GML_1 Reader> - Map Predefined Properties: 'NO'
<GML_1 Reader> - Map All Substitutable Properties: 'YES'
<GML_1 Reader> - Map Complex Properties as: 'NESTED_ATTRIBUTES'
<GML_1 Reader> - Add XML Namespace Prefix to: 'UNSET'
<GML_1 Reader> - Limit Number of Lists in Nested Attributes: 'UNSET'
<GML_1 Reader> - Map as objects 'gml:FeatureCollection'
<GML_1 Reader> - Skip as objects 'wfs:FeatureCollection'
Using XSD semantics configuration file 'file:///E:/Prog/apps/FME2017/xml/gml_v3.2/gml_config.xml'.
Pre-processing xfMap 'C:\Temp\XFMAP_AUTOGEN158887498862_7944.xml' with macro stylesheet 'E:\Prog\apps\FME2017\xfmap\xfmap_macro.xslt' into 'C:\Temp\GML_XFMAP_CACHE\CACHED_AUTOGEN_158887498872_7944.xfmap'
FME Configuration: Using FME Reprojection Engine
The XML Reader is using xfMap 'C:\Temp\GML_XFMAP_CACHE\CACHED_AUTOGEN_158887498872_7944.xfmap'

I could use a textfile reader or a gml reader in xfPath mode, however I also have an xsd which I presume should work properly (and is not too complex), so I rather would use that schema. Has it something to do with the namespace reference:

xmlns:ogr="http://ogr.maptools.org/"

 not being there? I am really a dummy in the world of GML. Also tried it in FME 2019.2 yet gives me the same error. Hope you/someone can help. 

 


0 replies

Be the first to reply!

Reply