Examples Catalog
This page covers every runnable example and notebook in the repo. Use it as the
index for examples/.
General rule: start with python examples/<name>.py --help when the script
exposes CLI flags.
Foundational Sanity Checks
Example |
What it demonstrates |
Main APIs |
|---|---|---|
|
Smallest end-to-end render check. Creates a PNG with the fallback |
|
|
Round-trip image IO from NumPy to PNG and back. |
|
|
Minimal terrain-data processing example that writes a grayscale image from the bundled DEM. |
|
|
Thin CLI wrapper around the terrain demo module, including preset and bundle-aware workflows. |
|
Interactive Terrain And Cartography
Example |
What it demonstrates |
Main APIs |
|---|---|---|
|
Baseline interactive terrain viewer with camera, sun, AA, and PBR-oriented controls. |
|
|
Terrain plus raster land-cover drape, tuned for polished snapshot output. |
|
|
Raster-overlay terrain workflow with final image compositing outside the viewer. |
|
|
Climate rasters projected onto terrain and turned into a polished final map. |
viewer path, raster overlays, xarray/rioxarray-side prep |
|
Terrain-plus-overlay composition for a height-shaded thematic map. |
viewer path, overlay controls |
|
Pure-Python companion composition example for terrain storytelling and post-processing. |
downstream composition around terrain assets |
|
High-resolution cinematic terrain sequence with overlay styling and final video/frame assembly. |
viewer path, |
|
Lower-level terrain-native rendering path without the interactive viewer. |
|
|
British Isles terrain poster rendered through |
|
Overlays, Labels, Styles, And Picking
Example |
What it demonstrates |
Main APIs |
|---|---|---|
|
Vector rail overlay draped onto terrain. |
|
|
Label placement, typography, priorities, zoom ranges, and decluttering. |
|
|
Mapbox-style import and style-driven vector overlay workflow. |
|
|
Premium picking path including lasso selection, highlight styles, and rich pick events. |
|
|
Interactive/manual verification harness for picking behavior. |
|
Point Clouds, Buildings, And Large Assets
Example |
What it demonstrates |
Main APIs |
|---|---|---|
|
LAZ/LAS point-cloud viewing with size and color controls. |
|
|
Direct COG access for tile/window reads, stats, and benchmarking. |
|
|
Building import flows from GeoJSON, CityJSON, and 3D Tiles-backed sources. |
|
|
OSM-driven city scene around a center point, using forge3d extrusion helpers and a deterministic preview renderer. |
|
Animation And Camera Automation
Example |
What it demonstrates |
Main APIs |
|---|---|---|
|
Keyframe-based camera paths, interpolation preview, and frame export. |
|
|
Higher-level terrain camera rigs such as orbit, rail, and follow shots. |
|
Notebooks
Notebook |
What it demonstrates |
|---|---|
|
First terrain viewer workflow in notebook form. |
|
Notebook-centric terrain exploration. |
|
Map-plate composition and cartographic output. |
Support Files In examples/
These files are part of the examples directory but are support artifacts rather than standalone demos:
sample_style.json: sample input for style-driven overlay workflowspresets/*.json: reusable example presets_import_shim.pyand_png.py: internal helpers used by example scripts
Where To Go Next
Use the Feature Map to choose the right module family.
Use the Tutorials for guided onboarding.
Use the API Reference when you already know the workflow and need the exact symbol.