Create GeoJSON / OSM city visualization
create_geo_visualizationConvert GeoJSON map data into a 3D city visualization with extruded buildings and streets. Projects coordinates using Mercator projection and builds node network in TouchDesigner for instant preview.
Instructions
Turn GeoJSON (e.g. OpenStreetMap-derived) into a 3D city visualization. Reads Point / LineString / Polygon / Multi* features, projects lat/long via a Mercator projection normalized to a unit box, and builds a Script SOP that lays out point clouds for points and polylines for streets/building footprints — optionally extruded into 3D ribbon 'walls' using each feature's numeric 'height' property — all wrapped in a Geometry COMP under a camera+light Render TOP for instant preview. NOTE: OpenStreetMap map data is © OpenStreetMap contributors and licensed under the Open Database License (ODbL); you must attribute it when visualizing OSM-derived data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Base name for the container COMP. | geo_viz |
| scale | No | World-units per projected unit. The projection is normalized to [-1,1] then scaled. | |
| extrude | No | Extrude polygon/line features into 3D 'buildings' using each feature's 'height' property (default height when missing). | |
| geojson | Yes | A GeoJSON FeatureCollection (or single Feature). Only geometry coordinates + an optional numeric 'height' property are read. | |
| parent_path | No | COMP to create the geo visualization container in (default '/project1'). | /project1 |
| default_height | No | Height (world units) for extruded features lacking a numeric 'height' property. |