Gist 350b55fdacbabd690b789c7958fb7995
✓ Published0🌍 Public
Aandybak
Last edited Apr 10, 2020
Created on Apr 10, 2020
This visualization generates downloadable 3D building models from a geospatial database. It queries building footprints within a specified radius of a given latitude and longitude, extrudes each polygon to a height proportional to the building’s height, and centers the resulting scene on the buildings’ centroid. The code uses Django’s GeoDjango for spatial queries, Shapely for polygon manipulation, and trimesh for scene creation and GLB export. The final output is a binary glTF file containing the extruded building geometry.
AI-generated description