Feature request #20066

Implement tool to load INSPIRE GML datasets

Added by Noel Suárez González over 5 years ago. Updated over 5 years ago.

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

Captura de pantalla 2018-10-10 a las 11.09.11.png - info_file (298 KB) Noel Suárez González, 2018-10-10 11:09 AM

Captura de pantalla 2018-10-10 a las 11.10.35.png - version_QGIS (88.4 KB) Noel Suárez González, 2018-10-10 11:13 AM

Captura de pantalla 2018-10-10 a las 11.29.14.png - open_file (1.01 MB) Noel Suárez González, 2018-10-10 11:29 AM

Captura de pantalla 2018-10-10 a las 11.30.27.png - not_open_file (1.71 MB) Noel Suárez González, 2018-10-10 11:30 AM

GML_Parcelas.gml - open_file_gml (2.91 KB) Noel Suárez González, 2018-10-10 01:07 PM

A.ES.SDGC.CP.33013.cadastralzoning.gml - not_open_file_GML (533 KB) Noel Suárez González, 2018-10-10 01:08 PM

VirtualBox_windows_7_10_10_2018_12_24_44.png (175 KB) Giovanni Manghi, 2018-10-10 01:26 PM

A.ES.SDGC.CP.33013.cadastralzoning.gpkg (784 KB) Saber Razmjooei, 2018-10-11 10:00 PM

History

#2 Updated by Giovanni Manghi over 5 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/

#5 Updated by Giovanni Manghi over 5 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 over 5 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 over 5 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

See the attached gpkg file for the result.

#8 Updated by Giovanni Manghi over 5 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

Also available in: Atom PDF