Skip to main content
Solved

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

  • October 5, 2020
  • 3 replies
  • 320 views

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​.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • 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​.


  • Author
  • 1 reply
  • October 6, 2020

It worked for me

Thank you very much


virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • October 6, 2020

It worked for me

Thank you very much

Great to hear!