DEM.Net.Core 8.0.0-beta02

This is a prerelease version of DEM.Net.Core.
There is a newer version of this package available.
See the version list below for details.
dotnet add package DEM.Net.Core --version 8.0.0-beta02
                    
NuGet\Install-Package DEM.Net.Core -Version 8.0.0-beta02
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DEM.Net.Core" Version="8.0.0-beta02" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DEM.Net.Core" Version="8.0.0-beta02" />
                    
Directory.Packages.props
<PackageReference Include="DEM.Net.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DEM.Net.Core --version 8.0.0-beta02
                    
#r "nuget: DEM.Net.Core, 8.0.0-beta02"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=DEM.Net.Core&version=8.0.0-beta02&prerelease
                    
Install DEM.Net.Core as a Cake Addin
#tool nuget:?package=DEM.Net.Core&version=8.0.0-beta02&prerelease
                    
Install DEM.Net.Core as a Cake Tool

Maintenance Twitter Follow

DEM.Net.Core NuGet Version
DEM.Net.glTF NuGet Version

This library is licensed for personal use or for smal companies generating less than $100,000 annually, for any other cases, please get in touch with us.

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

Check article on Sketchfab API Spotlight : Elevation API

3D model

Supported formats and datasets

Input

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

Output

  • glTF
  • STL

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

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on DEM.Net.Core:

Package Downloads
DEM.Net.glTF

Package Description

DEM.Net.Extension.VisualTopo

VisualTopo extension for DEM.Net

DEM.Net.Extension.Osm

OpenStreetMap extension for DEM.Net

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.0 133 4/7/2025
8.0.0-beta03 122 4/7/2025
8.0.0-beta02 128 4/3/2025
8.0.0-beta01 122 4/3/2025
0.4.0-beta02 128 5/14/2024
0.4.0-beta01 314 8/31/2022
0.3.2 2,537 5/3/2021
0.3.1 375 5/3/2021
0.3.0 1,151 3/12/2021
0.2.9 607 1/13/2021
0.2.8 788 11/1/2020
0.2.7.4 1,494 9/21/2020
0.2.7.3 1,994 9/4/2020
0.2.7.2 747 9/4/2020
0.2.7.1 764 6/30/2020
0.2.6 901 3/7/2020
0.2.5 864 2/25/2020
0.2.4 923 2/2/2020
0.2.3 797 1/29/2020
0.2.2 837 1/26/2020
0.2.0 805 12/13/2019
0.1.4 920 7/1/2019
0.1.3 909 6/30/2019
0.1.2 852 6/29/2019
0.1.1 896 6/29/2019
0.1.0-beta0013 455 6/20/2019
0.1.0-beta0012 575 6/14/2019
0.1.0-beta0011 596 5/10/2019
0.1.0-beta0010 626 4/29/2019
0.1.0-beta0009 604 4/24/2019
0.1.0-beta0008 636 4/20/2019
0.1.0-beta0007 639 4/18/2019
0.1.0-beta0006 621 4/18/2019
0.1.0-beta0005 614 4/15/2019
0.1.0-beta0004 632 4/15/2019
0.1.0-beta0003 604 4/14/2019
0.1.0-beta0002 587 4/14/2019
0.1.0-beta0001 487 4/13/2019
0.1.0-alpha 597 4/12/2019

LocalDirectory is configuration in DEMNetOptions