Skip to main content
The following content is a read-only preview of an executable Jupyter notebook.To run this notebook interactively:
  1. Go to Wherobots Cloud.
  2. Start a runtime.
  3. Open the notebook.
  4. In the Jupyter Launcher:
    1. Click File > Open Path.
    2. Paste the following path to access this notebook: examples/Open_Data_Connections/Overture_Maps.ipynb
    3. Click Enter.
In this notebook we will explore each of the Overture Maps dataset themes, including:
  • buildings
  • places (points of interest)
  • transportation, including segments and connectors
You can find more information about these datasets in the Overture Maps documentation.

Configuring WherobotsDB

First, we’ll import the necessary Python dependencies and configure WherobotsDB to access the Wherobots Open Data Catalog. Read more about configuring WherobotsDB file access in the documentation.

State Boundary

Pick a state or other boundary

Bellevue city boundary is selected

Click here for boundaries of other states

Visualizing Overture Maps

Click here to learn more about Overture Maps. For each dataset we follow the same steps:
  1. df = sedona.read.format("geoparquet").load(DATA_LINK+"theme=XX/type=YY") It reads the dataset mentioned by theme and type, that’s stored in GeoParquet format.
  2. df = df.filter("ST_Contains(ST_GeomFromWKT('"+state_boundary+"'), geometry) = true") This filters out all the data that is not in the mentioned state_boundary string. Please select a state as you wish. ST_GeomFromWKT() - constructs a geometry from WKT (Well Known Text) ST_Contains(A, B) - checks if A fully contains B and returns True
  3. XX_geom = df.selectExpr("geometry") Storing geometry column for SedonaKepler.
  4. map = SedonaKepler.create_map(XX_geom, 'XX') Creating a map object using SedonaKepler with inputs geometry column and the name of dataset.

Building Dataset

Place Dataset

Transportation Theme Datasets

Connector Dataset

Segment Dataset