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 [...].
Hope this helps.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
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.