Skip to main content
Solved

How to transform 3d model to 2d geometries and height property


I have a building box 3d model create from ketchup

How to I export feature include geometry is bottom face of model and propety is height of model from a 3d model?

The feature template

"type": "Feature",

   "properties": {},

   "geometry": {

    "type": "Polygon",

    "coordinates": [

     [

      [

       y,

       x

      ],

      [

       y,

       x

      ]

     ]

    ]

   }

Best answer by virtualcitymatt

Use a BoundsExtractor to extract _maxz of the model. After that use a SurfaceFoortprintReplacer to get the 2D footprint of the model. You should now have a polygon with an attribute called _maxz.

The template looks like Geojson so you can use a GeoJSON writer to output the polygon. If you want to rename _maxz you can use an AttribiteRenamer​.

View original
Did this help you find an answer to your question?

3 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+35
  • Celebrity
  • Best Answer
  • October 5, 2020

Use a BoundsExtractor to extract _maxz of the model. After that use a SurfaceFoortprintReplacer to get the 2D footprint of the model. You should now have a polygon with an attribute called _maxz.

The template looks like Geojson so you can use a GeoJSON writer to output the polygon. If you want to rename _maxz you can use an AttribiteRenamer​.


It worked for me

Thank you very much


virtualcitymatt
Celebrity
Forum|alt.badge.img+35
kenbinguyen wrote:

It worked for me

Thank you very much

Great to hear!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings