Skip to content

About

DEM Net private extensions

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

209 Commits

Folders and files

Repository files navigation

DEM.Net.Extensions

Home of various extensions for DEM.Net. Not well documented but deserved to go public. Please fill an issue if you need help.

Sketchfab Samples

SketchfabApi.Net should be cloned in the root directory aside this repo to get this working.

-Repos
|_ Dem.Net.Extensions
|_ SketchfabApi.Net

OSM

3D buildings, roads, railways and water for DEM.Net models, read from a local Protomaps basemap PMTiles archive (OsmElevationOptions.PMTilesFilePath), draped on the terrain.

Buildings can come from the Overture Maps buildings archive instead (OsmElevationOptions.BuildingsPMTilesFilePath, tiles/<release>/buildings.pmtiles, about 181 GB for the planet): it keeps the heights, floors, roof shapes and colours that the Protomaps archive drops. Regional extract: pmtiles extract https://overturemaps-extras-us-west-2.s3.us-west-2.amazonaws.com/tiles/2026-11-18.0/buildings.pmtiles out.pmtiles --bbox=…

Roofs: mapped roof shapes are drawn (gabled, hipped, pyramidal, skillion; others approximated). Buildings without one get a roof drawn from a roof prior (OsmElevationOptions.RoofPriorFilePath, ~1.3 MB): the odds of each roof shape by place, footprint size, height and use, from the roof shapes mapped in OpenStreetMap, with climate zones where few are mapped. Build it with tools/roof-prior/build_roof_prior.py (instructions inside); the validate_* scripts compare it with ground truth (3DBAG, Netherlands; NRW LoD2, Germany). The prior is ODbL (© OpenStreetMap contributors, Overture Maps Foundation) and uses the Köppen-Geiger maps of Beck et al. (2023, CC BY 4.0).

SampleApp

Various samples, one including model generation for http://helladic.info (gallery here: sketchfab.com/mycenaean-atlas-project) . Needs SketchFab repo.

TODO

  • Better triangulations
  • Better docs
  • Your ideas...

About

DEM Net private extensions

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages