Skip to content
Digital Elevation model library in C#. GeoTiff file parsing and DEM querying.
Branch: master
Clone or download
Latest commit 69d8b4c Apr 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
DEM.Net.Core
DEM.Net.TestWinForm
DEM.Net.glTF GenerateReport for location now returns a single result Apr 24, 2019
DEM.Net.xUnit.Test GenerateReport for location now returns a single result Apr 24, 2019
.gitattributes 🎪 Added .gitattributes & .gitignore files Jan 9, 2017
.gitignore
.whitesource Initial WhiteSource configuration file Dec 6, 2018
CODE_OF_CONDUCT.md
DEM.Net.sln
LICENSE - ThirdParty.md
LICENSE.md
README.md Merge pull request #40 from dem-net/dev Apr 22, 2019
_config.yml Set theme jekyll-theme-slate Jan 29, 2019
appveyor.yml AppVeyor config Dec 17, 2018
valgo.jpg

README.md

Build status

DEM.Net

Digital Elevation Model library in C#

  • Elevation queries (point, polylines, heightmap, GPX)
  • 3D export (glTF, STL)
  • Imagery (MapBox, OSM, Stamen) : textured 3D models and normal maps
  • No setup
  • Automatic DEM file download from openTopography.org
  • Fast and optimized queries

See samples here

3D model

Supported formats and datasets

Input

  • GeoTIFF (JAXA AW3D, and any GeoTIFF)
  • HGT (Nasa SRTM)

Output

  • glTF

Current dev status

SampleApp

(Work in progress) SampleApp is a Console App used for test purposes, full of samples. It's pretty messy and lacks documentation but names are self explanatory.

How do I use the API ?

Raster operations

  • Use elevationService.DownloadMissingFiles(DEMDataSet.AW3D30, <bbox>) to download and generate metadata for a given dataset.
  • Supported datasets : SRTM GL1 and GL3 (HGT files), AWD30 (GeoTIFF)
  • Use new RasterService().GenerateReport(DEMDataSet.AW3D30, <bounding box>) to download only necessary tiles using remote VRT file.
  • Use rasterService.GenerateFileMetadata(<path to file>, DEMFileFormat.GEOTIFF, false, false) to generate metada for an arbitrary file.
  • Use RasterService.GenerateDirectoryMetadata(samplePath);to generate metadata files for your raster tiles. These metadata files will be used as an index when querying Digital Elevation Model data.

Elevation operations

  • GetLineGeometryElevation
  • GetPointElevation

glTF export

  • glTFService can generate triangulated MeshPrimitives from height maps
  • Export to .gtlf or .glb

Sample data

Acknowledgements / Sources

Third party code and librairies

You can’t perform that action at this time.