Pmad.Cartography.Drawing
0.1.8
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Pmad.Cartography.Drawing --version 0.1.8
NuGet\Install-Package Pmad.Cartography.Drawing -Version 0.1.8
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="Pmad.Cartography.Drawing" Version="0.1.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pmad.Cartography.Drawing" Version="0.1.8" />
<PackageReference Include="Pmad.Cartography.Drawing" />
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 Pmad.Cartography.Drawing --version 0.1.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Pmad.Cartography.Drawing, 0.1.8"
#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 Pmad.Cartography.Drawing@0.1.8
#: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=Pmad.Cartography.Drawing&version=0.1.8
#tool nuget:?package=Pmad.Cartography.Drawing&version=0.1.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Pmad.Cartography
Pmad.Cartography
A simple and read-to-use Digital Elevation Model for everyone based on Open Data with minimalist credits
Digital Elevation Model sources
| Source | Resolution | License | URL | Credits |
|---|---|---|---|---|
| SRTM1 | 1 arc second | Public Domain | https://cdn.dem.pmad.net/SRTM1/ | NASA |
| SRTM15+ | 15 arc second | Public Domain | https://cdn.dem.pmad.net/SRTM15Plus/ | Tozer, B. , D. T. Sandwell, W. H. F. Smith, C. Olson, J. R. Beale, and P. Wessel |
| AW3D30 | 1 arc second | See terms | https://cdn.dem.pmad.net/AW3D30/ | � JAXA |
var database = WellKnownDatabases.GetSRTM1();
// Singe point
var elevation = await database.GetElevationAsync(new Coordinates(51.509865, -0.118092), DefaultInterpolation.Instance);
// Area
var area = await demDatabase.CreateView<float>(new Coordinates(51, -1), new Coordinates(52, 0));
Elevation contours
var contour = new ContourGraph();
contour.Add(area, new ContourLevelGenerator(10, 10)); // 10 meters elevation interval from 10
Hillshading
var img = new HillshaderFast(new Vector2D(10, 10)) // Assume each pixel of area is 10x10 meters
.GetPixelsAlphaBelowFlat(area);
File formats
Supported data formats
| Format | Read | Write | Remarks |
|---|---|---|---|
| ESRI ASCII | Yes | Yes | float only |
| DDC | Yes | Yes | Format specific to Pmad.Cartography |
| GeoTIFF | Yes | No | WSG84 projection Only |
| SRTM | Yes | No | 3 and 1 arc second |
Supported compression formats
Most DEM files requires a lot of disk space. To reduce the size of the files, the following compression formats are supported:
| Format | Read | Write | Remarks |
|---|---|---|---|
| ZSTD | Yes | Yes | Best compromise storage/CPU cost |
| GZIP | Yes | Yes | Lowest CPU cost |
| Brotli | Yes | Yes | Best compression |
| Zip | Yes | No | Zip must contains only one file |
Pmad.Cartography.Drawing
A simple topographic map rendering toolkit.
Drawing API is still in development, it may change in the future.
| Product | Versions 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.
-
net8.0
- Pmad.Cartography (>= 0.1.8)
- Pmad.Drawing (>= 0.1.8)
- Pmad.ProgressTracking (>= 0.1.28)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.