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.
Best answer by takashi
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 [Parameters] button, then you can select desired feature path from the browse button [...].
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 [Parameters] button, then you can select desired feature path from the browse button [...].
@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.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.