Question

Geopackage 3D Export

  • 25 November 2019
  • 2 replies
  • 29 views

Hallo everybody,

I'm trying to export an valid CityGML building into a GeoPackage. In the result, I get a bunch of line segments representing the Groundsurfaces and Roofsurfaces with hight. All surfaces / polygones are lost.

I tryed to filter the geometry, so only surfaces go to the writer. Same result.

Does anyone have an idea how to export 3D buildings into Geopackage?

 

 

 


2 replies

Userlevel 4
Badge +26

I *Think* that you can't properly do this with Geopackage and FME. The doc for the writer suggests that it only supports 2.5D features: https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/geopackage/Feature_Representation.htm

 

 

You might be able to create a 'wkb_geomerty' which supports all geometry types, however, I'm not sure if it works that way or not - I'm not sure what 'all geometries allowed' means here in the doc.

 

 

Your best be may be to create the ground surface with the Z value being the max building height. This should get you an extruded 2.5D representation

 

https://knowledge.safe.com/articles/1553/generating-25d-building-models-from-3d-data.html

I *Think* that you can't properly do this with Geopackage and FME. The doc for the writer suggests that it only supports 2.5D features: https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/geopackage/Feature_Representation.htm

 

 

You might be able to create a 'wkb_geomerty' which supports all geometry types, however, I'm not sure if it works that way or not - I'm not sure what 'all geometries allowed' means here in the doc.

 

 

Your best be may be to create the ground surface with the Z value being the max building height. This should get you an extruded 2.5D representation

 

https://knowledge.safe.com/articles/1553/generating-25d-building-models-from-3d-data.html

Thank you for that idea, wich works well with an LOD1 building, but wont represent any complex structures.

I wonder, but the GlobalMapper does the job on converting GML directly to GP.

Maybe safe will fix this soon :)

Reply