dem-net/DEM.Net


Digital Elevation model library in C#. GeoTiff file parsing and DEM querying.

https://elevationapi.com

License: Other

Language: C#

Keywords: 3d-models, dataset, dem, dem-querying, digital-elevation-model, dtm, elevation, geotiff, gltf, gps, heightmap, hgt, jaxa, library, mnt, nasa, raster, srtm, stl, stl-model


Build Status Board Status Maintenance Twitter Follow

DEM.Net.Core NuGet Version

DEM.Net.glTF NuGet Version

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

Supported by JetBrainSupport

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

Project Statistics

Sourcerank 7
Repository Size 13.7 MB
Stars 56
Forks 9
Watchers 8
Open issues 2
Dependencies 86
Contributors 13
Tags 16
Created
Last updated
Last pushed

Top Contributors See all

Xavier Fischer mrpoup Olivier H. whitesource-bolt-for-github[bot]

Packages Referencing this Repo

DEM.Net.Core
Digital Elevation Model library for .Net. Elevation, Heightmaps, STL, glTF
Latest release 0.2.0 - Updated - 56 stars

Recent Tags See all

0.2.0 December 13, 2019
0.1.4 July 01, 2019
0.1.3 June 30, 2019
0.1.2 June 29, 2019
0.1.1 June 29, 2019
0.1.0-beta0013 June 20, 2019
0.1.0-beta0012 June 14, 2019
0.1.0-beta0011 May 10, 2019
0.1.0-beta0010 April 29, 2019
0.1.0-beta0009 April 24, 2019
0.1.0-beta008 April 20, 2019
0.1.0-beta0008 April 20, 2019
0.1.0-beta0007 April 18, 2019
0.1.0-beta0005 April 15, 2019
0.1.0-beta0004 April 15, 2019

Something wrong with this page? Make a suggestion

Last synced: 2019-12-13 13:19:11 UTC

Login to resync this repository