GeoJSON: PolyhedralSurface geometry type not supported

المشرف العام

Administrator
طاقم الإدارة
I am trying to make a 3D web application which should be able to render 3D buildings (I will be using Cesium, but that is not that important for now).

I basically have a database consisting of the 2D geometry of the buildings and the height, amongst other things. In that way I should be able make simple 3D building blocks (LoD1). I am using PostGIS (PostGIS 2.2.0 with SFCGAL extension) to extrude (st_extrude) the 2D geometry to a 3D geometry. No problem so far...

The problem I am facing now is that st_extrude gives me a polyhedral surface. However, I would like to convert my 3D geometry to GeoJSON (which can easily be loaded into my Cesium viewer). St_AsGeoJSON gives me an error saying that 'PolyhedralSurface' geometry type is not supported.

Do you guys know if I can work around this problem? Are there any similar functions in PostGIS like st_extrude which will not leave me with a polyhedral surface? Any suggestions will be much appreciated!



أكثر...
 
أعلى