Select to view content in your preferred language

batch gather and export OSM data with models and textures

327
1
01-28-2026 11:13 AM
BrendanThompson
New Contributor

I need to get OSM model and texture data for 70 distinct locations around the country.

New to City Engine, but have experience with scripting. Hoping any tips on where to look in the api for the following. 

  1. Get map data
  2. Find address (lat long or decimal)
  3. Set Extent (3x3 – 9 square miles)
  4. Modify x and y offset
  5. Resolution
  6. Open Street Map
    1. Download networks = true
    2. Download footprints = true
    3. Generate models for download shapes = true
  7. Always trust this certificate
  8. Import settings
    1. Align Graph to terrain = true
    2. Align Shapes to terrain = true
    3. Run Simplify Graph tool after import = true
    4. Create Street node shape from graph = true
  9. Select all models
  10. Representation with façade texture
  11. Export models
  12. FBX format
  13. Set destination
  14. Name from location
  15. Export all terrain layers
  16. Terrain mesh resolution = 1k



0 Kudos
1 Reply
JonasObertuefer
Esri Contributor

Hi @BrendanThompson,

Step 8-16 can be scripted using the CE python API. However, the Get Map data functionality is currently not provided in the API. This means that Step 1-6 you need to either do manually or find a way to automate elsewhere e.g. using ArcGIS pro to get Maps and Terrain and Overpass to get the OSM data. With CityEngine 2025.1 we released support for Python 3 as a beta. Which allows you to use arcgis and arcpy packages and many other available on pypi.org. Here are some ressources:

Hope this helps you getting started!

Best,
Jonas

0 Kudos