I’ve tried multiple times to read gml file with feature reader or import that into the workspace using reader. I tried with multiple settings but failed.
The gml file structure seems ok as it is loaded into old QGIS without any problems.
Any advises or tips how to handle such files are welcome.
Page 1 / 1
Hi @mwoj ,
I think you should be able to read the GML dataset with OGC GML reader, if you have set the reader parameters appropriately.
Could you please describe your situation more specifically, including these points?
With which reader did you try reading the GML dataset - OGC GML reader or any other one?
How did you configure the reader parameters?
What messages were shown on the Translation Log when you got failure?
Thank you for suggections.
I’ve tried reader with OGC GML before posting with multiple settings.
E.g. ignore application shema - Yes - result there is a reader instance in Navigator but NO reader on main canvas. There is no errors but 2 warnings
I think the direct reason for the failure is that the GML reader cannot retrieve automatically the schema for XML namespace "http://xsd.geoportal2.pl/ewns". In my observation, the schema location written in the head of the document cannot be accessed for some reason.
To avoid the failure, try setting the path of the feature element "ewns:dzialki" to the GML Feature Elements parameter in the OGC GML reader manually when adding the reader to the workspace.
Set Format and Dataset in Add Reader or FeatureReader, open reader parameters dialog from mParameters] button, then you can select desired feature path from the browse button t...].
Hope this helps.
@mwoj @takashi rightly pointed out the source for the error: the GML reader cannot retrieve automatically the schema for XML namespace "http://xsd.geoportal2.pl/ewns"
I checked the correctness of the GML file in QGIS and was able to open it!
However in FME, if you set the path of the feature element "ewns:dzialki" to the GML Feature Elements parameter in the OGC GML reader manually as mentioned by @takashi you should be able to read the GML file.
Happy FME :-) -ing
Cheers
SRG
@takashi @raghavendrans
thank you. I will use proposed method to other gml files which I used ogr2ogr before