Upgrade to Pro — share decks privately, control downloads, hide ads and more …

3D Geoinfo pre-conference workshop: GDAL

Stelios Vitalis
September 30, 2018
120

3D Geoinfo pre-conference workshop: GDAL

Stelios Vitalis

September 30, 2018
Tweet

Transcript

  1. • New GMLAS driver (coexisting with previous GML) • Parses

    the whole schema (.xsd) • Creates layers for every entity type in the schema • Fills layers with the data found on the dataset (.gml) 4 GDAL 2.2.1
  2. How to use? • On any GDAL tools or library,

    you just have to define the GMLAS prefix > ogrinfo GMLAS:/path/to/file.gml 5 GDAL 2.2.1
  3. Requirements: • The file has to provide links to the

    schema definitions (the xsi:schemaLocation property on .gml header) • Otherwise, you have to provide them explicitly: ogrinfo GMLAS:input.gml -oo XSD=http://schemas.opengis.net/citygml/ landuse/1.0/landUse.xsd,http://schemas.opengis.net/citygml/ cityfurniture/1.0/cityFurniture.xsd,http://schemas.opengis.net/ citygml/texturedsurface/1.0/texturedSurface.xsd,http:// schemas.opengis.net/citygml/transportation/1.0/ transportation.xsd,http://schemas.opengis.net/citygml/building/1.0/ building.xsd,http://schemas.opengis.net/citygml/waterbody/1.0/ waterBody.xsd,http://schemas.opengis.net/citygml/relief/1.0/ relief.xsd,http://schemas.opengis.net/citygml/vegetation/1.0/ vegetation.xsd,http://schemas.opengis.net/citygml/cityobjectgroup/ 1.0/cityObjectGroup.xsd,http://schemas.opengis.net/citygml/generics/ 1.0/generics.xsd 6 GDAL 2.2.1
  4. It’s GDAL so: • Use is as a library for

    any input • Use it with stand-alone tools like ogrinfo, ogr2ogr etc. 8 What can we do?
  5. With ogr2ogr we can convert any (City)GML to any format.

    Successfully tried so far: • GeoJSON • Shapefile • PostGIS Probably, also, Oracle Spatial. 9 What can we do?
  6. • The GML Application Schema toolbox allows for import of

    GML files in QGIS 3 (to be released on November). https://github.com/BRGM/gml_application_schema_toolbox 13 CityGML on QGIS