Feature request #20066
Implement tool to load INSPIRE GML datasets
Status: | Open | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Vectors | ||
Pull Request or Patch supplied: | No | Resolution: | |
Easy fix?: | No | Copied to github as #: | 27888 |
Description
some GML files can not be loaded correctly in QGIS 3.2.3 in macOS
History
#1 Updated by Noel Suárez González about 6 years ago
- File Captura de pantalla 2018-10-10 a las 11.29.14.png added
- File Captura de pantalla 2018-10-10 a las 11.30.27.png added
Capture of diferente files
#2 Updated by Giovanni Manghi about 6 years ago
- Status changed from Open to Feedback
Hi,
please add a link (or attach one of those files).
Anyway, if the GML are in the (complex) INSPIRE data model you will need to load them using specific extensions, like http://plugins.qgis.org/plugins/gml_application_schema_toolbox/
#3 Updated by Noel Suárez González about 6 years ago
- File GML_Parcelas.gml added
#4 Updated by Noel Suárez González about 6 years ago
- File A.ES.SDGC.CP.33013.cadastralzoning.gml added
#5 Updated by Giovanni Manghi about 6 years ago
- Subject changed from Qgis 3.3.2 can't properly load gml spanish inspire files to Qgis can't properly load gml INSPIRE files
- Category changed from Data Provider to Vectors
- File VirtualBox_windows_7_10_10_2018_12_24_44.png added
See attached image:
as I suspected the GML in the complex INSPIRE data model. You need to use a plugin that allows you to see the data. The one I suggested above does not seems to work (I get a Python error on importing the data) while the "GML loader" one works, but at the moment it seems only for QGIS 2.*.
I think that this ticket should be closed, or eventually changed to feature request.
#6 Updated by Saber Razmjooei about 6 years ago
You need to convert it using ogr2ogr (v 2.2) and a template, which with a quick googling I found out to be https://inspire.ec.europa.eu/schemas/cp/3.0/CadastralParcels.xsd
So, the ogr2ogr command to convert it to a geopackage based on the above schema:ogr2ogr -f GPKG A.ES.SDGC.CP.33013.cadastralzoning.gpkg GMLAS:A.ES.SDGC.CP.33013.cadastralzoning.gml -oo XSD:https://inspire.ec.europa.eu/schemas/cp/3.0/CadastralParcels.xsd
#7 Updated by Saber Razmjooei about 6 years ago
- File A.ES.SDGC.CP.33013.cadastralzoning.gpkg added
You need to convert it using ogr2ogr (v 2.2) and a template, which with a quick googling I found out to be https://inspire.ec.europa.eu/schemas/cp/3.0/CadastralParcels.xsd
So, the ogr2ogr command to convert it to a geopackage based on the above schema:
ogr2ogr -f GPKG A.ES.SDGC.CP.33013.cadastralzoning.gpkg GMLAS:A.ES.SDGC.CP.33013.cadastralzoning.gml -oo XSD:https://inspire.ec.europa.eu/schemas/cp/3.0/CadastralParcels.xsd
See the attached gpkg file for the result.
#8 Updated by Giovanni Manghi about 6 years ago
- Status changed from Feedback to Open
- Tracker changed from Bug report to Feature request
- Subject changed from Qgis can't properly load gml INSPIRE files to Implement tool to load INSPIRE GML datasets