DEM.Net.Core 8.0.0-beta01

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-beta01
                    
NuGet\Install-Package DEM.Net.Core -Version 8.0.0-beta01
                    
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-beta01" />
                    
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-beta01" />
                    
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-beta01
                    
#r "nuget: DEM.Net.Core, 8.0.0-beta01"
                    
#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.
#:package DEM.Net.Core@8.0.0-beta01
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DEM.Net.Core&version=8.0.0-beta01&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=DEM.Net.Core&version=8.0.0-beta01&prerelease
                    
Install 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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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.1 181 5/20/2025
8.0.0 176 4/7/2025
8.0.0-beta03 145 4/7/2025
8.0.0-beta02 149 4/3/2025
8.0.0-beta01 142 4/3/2025
0.4.0-beta02 139 5/14/2024
0.4.0-beta01 347 8/31/2022
0.3.2 3,483 5/3/2021
0.3.1 421 5/3/2021
0.3.0 1,198 3/12/2021
0.2.9 653 1/13/2021
0.2.8 836 11/1/2020
0.2.7.4 1,538 9/21/2020
0.2.7.3 2,045 9/4/2020
0.2.7.2 800 9/4/2020
0.2.7.1 816 6/30/2020
0.2.6 960 3/7/2020
0.2.5 916 2/25/2020
0.2.4 971 2/2/2020
0.2.3 851 1/29/2020
0.2.2 893 1/26/2020
0.2.0 862 12/13/2019
0.1.4 975 7/1/2019
0.1.3 966 6/30/2019
0.1.2 909 6/29/2019
0.1.1 952 6/29/2019
0.1.0-beta0013 510 6/20/2019
0.1.0-beta0012 629 6/14/2019
0.1.0-beta0011 652 5/10/2019
0.1.0-beta0010 682 4/29/2019
0.1.0-beta0009 657 4/24/2019
0.1.0-beta0008 697 4/20/2019
0.1.0-beta0007 705 4/18/2019
0.1.0-beta0006 679 4/18/2019
0.1.0-beta0005 675 4/15/2019
0.1.0-beta0004 700 4/15/2019
0.1.0-beta0003 655 4/14/2019
0.1.0-beta0002 647 4/14/2019
0.1.0-beta0001 550 4/13/2019
0.1.0-alpha 656 4/12/2019

LocalDirectory is configuration in DEMNetOptions