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

3D Geoinfo pre-conference workshop: GDAL

9b26e5232107ff34e15600337f10a814?s=47 Stelios Vitalis
September 30, 2018
45

3D Geoinfo pre-conference workshop: GDAL

9b26e5232107ff34e15600337f10a814?s=128

Stelios Vitalis

September 30, 2018
Tweet

Transcript

  1. CityGML on GDAL Stelios Vitalis 30/9/2018

  2. • Random Geometry parsing • No hierarchy • Useless for

    CityGML 2 GML on GDAL < 2.2
  3. GDAL 2.2.1

  4. • 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
  5. 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
  6. 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
  7. What can we do with it?

  8. 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?
  9. 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?
  10. Can we create CityGMLs as well? • In theory yes!

    10 What can we do?
  11. Look at my (one and only) blogpost: https://3d.bk.tudelft.nl/svitalis/citygml/gdal/2017/07/24/messing-around-with-citygml-on-gdal-2.2.html 11 More

    information
  12. CityGML on QGIS

  13. • 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
  14. https://github.com/BRGM/gml_application_schema_toolbox 14 CityGML on QGIS

  15. https://github.com/BRGM/gml_application_schema_toolbox 15 CityGML on QGIS

  16. Thank you!