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.
#:package DEM.Net.Core@8.0.0-beta02
                    
#: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-beta02&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=DEM.Net.Core&version=8.0.0-beta02&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 2,696 5/20/2025
8.0.0 245 4/7/2025
8.0.0-beta03 219 4/7/2025
8.0.0-beta02 206 4/3/2025
8.0.0-beta01 202 4/3/2025
0.4.0-beta02 191 5/14/2024
0.4.0-beta01 452 8/31/2022
0.3.2 3,734 5/3/2021
0.3.1 520 5/3/2021
0.3.0 1,345 3/12/2021
0.2.9 797 1/13/2021
0.2.8 966 11/1/2020
0.2.7.4 1,732 9/21/2020
0.2.7.3 2,344 9/4/2020
0.2.7.2 927 9/4/2020
0.2.7.1 962 6/30/2020
0.2.6 1,097 3/7/2020
0.2.5 1,043 2/25/2020
0.2.4 1,081 2/2/2020
0.2.3 968 1/29/2020
0.2.2 1,021 1/26/2020
0.2.0 979 12/13/2019
0.1.4 1,111 7/1/2019
0.1.3 1,100 6/30/2019
0.1.2 1,041 6/29/2019
0.1.1 1,045 6/29/2019
0.1.0-beta0013 619 6/20/2019
0.1.0-beta0012 753 6/14/2019
0.1.0-beta0011 793 5/10/2019
0.1.0-beta0010 782 4/29/2019
0.1.0-beta0009 767 4/24/2019
0.1.0-beta0008 855 4/20/2019
0.1.0-beta0007 841 4/18/2019
0.1.0-beta0006 808 4/18/2019
0.1.0-beta0005 801 4/15/2019
0.1.0-beta0004 851 4/15/2019
0.1.0-beta0003 783 4/14/2019
0.1.0-beta0002 799 4/14/2019
0.1.0-beta0001 688 4/13/2019
0.1.0-alpha 820 4/12/2019

LocalDirectory is configuration in DEMNetOptions