IRI.Maptor.Core.Spatial 3.0.0-alpha

This is a prerelease version of IRI.Maptor.Core.Spatial.
There is a newer version of this package available.
See the version list below for details.
dotnet add package IRI.Maptor.Core.Spatial --version 3.0.0-alpha
                    
NuGet\Install-Package IRI.Maptor.Core.Spatial -Version 3.0.0-alpha
                    
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="IRI.Maptor.Core.Spatial" Version="3.0.0-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="IRI.Maptor.Core.Spatial" Version="3.0.0-alpha" />
                    
Directory.Packages.props
<PackageReference Include="IRI.Maptor.Core.Spatial" />
                    
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 IRI.Maptor.Core.Spatial --version 3.0.0-alpha
                    
#r "nuget: IRI.Maptor.Core.Spatial, 3.0.0-alpha"
                    
#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 IRI.Maptor.Core.Spatial@3.0.0-alpha
                    
#: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=IRI.Maptor.Core.Spatial&version=3.0.0-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=IRI.Maptor.Core.Spatial&version=3.0.0-alpha&prerelease
                    
Install as a Cake Tool

IRI.Maptor.Core.Spatial

NuGet Target

The core spatial engine of the Maptor stack. Provides the Geometry<T> model, spatial analysis algorithms, spatial indexes, and a wide range of geospatial format I/O — all UI-free and netstandard2.1-compatible.

Installation

dotnet add package IRI.Maptor.Core.Spatial

Features

  • OGC geometry model via Geometry<T>: point, linestring, polygon, their multi-variants, and geometry collections, with WKT/WKB round-trip (FromWkt, FromWkb)
  • Feature model: Feature<T> and FeatureSet<T> with fields and change tracking
  • Spatial analysis: Delaunay triangulation, Voronoi diagrams, convex hull, area statistics, topology helpers, and shape characteristics metrics
  • Line simplification: Ramer-Douglas-Peucker, Visvalingam-Whyatt, and other point-reduction methods, plus simplification quality metrics
  • Digital terrain modeling: regular (grid) and irregular (TIN) DTMs
  • Spatial interpolation: inverse distance weighting (IDW)
  • Space-filling curves: Hilbert and Z-order (Morton) point ordering
  • Spatial indexes: k-d tree (plain and balanced), R-tree, and space-filling-curve R-tree
  • Map sheet/tile indexes for geodetic and UTM grids
  • Format I/O (see table below)

Format I/O

Format Read Write Notes
GeoJSON Yes Yes Geometries, features, feature sets
WKT / WKB (OGC SFA) Yes Yes
TopoJSON Yes Yes Topology encoding and quantization
DXF Yes Yes AutoCAD interchange with styling
SVG Yes Yes
EPS Yes Yes
GPX Yes Yes Waypoints, routes, tracks
PMTiles Yes Yes Serverless tile archive (v3)
SQL Server native binary Yes Yes MS-SSCLRT spatial binary
Vector tiles (MVT) Yes No
Cesium terrain Yes No quantized-mesh-1.0 and heightmap-1.0; writing not implemented
GeoTIFF Yes No Georeferenced raster
GRD Yes No Grid raster format
ESRI JSON Yes No ArcGIS REST JSON geometry
PRJ Yes No ESRI projection WKT

Shapefiles are handled by the companion package IRI.Maptor.Core.ShapefileFormat; KML/KMZ by IRI.Maptor.Core.Ogc; MBTiles/GeoPackage by IRI.Maptor.Infrastructure.Sqlite.

Usage

using IRI.Maptor.Core.Common.Primitives;
using IRI.Maptor.Core.Spatial.Analysis;
using IRI.Maptor.Core.Spatial.Primitives;
using IRI.Maptor.Extensions;

var points = new List<Point> { new Point(51.33, 35.70), new Point(51.42, 35.75) };

// note: (List<T> points, int srid) is the only valid overload
var line = Geometry<Point>.CreatePointOrLineString(points, srid: 4326);

// per-segment lengths on the ellipsoid
double meters = SpatialUtility.GetEllipsoidalLength(points[0], points[1]);

// export to GeoJSON
string geoJson = line.AsGeoJson().Serialize(indented: true);

// WKT round-trip
var parsed = Geometry<Point>.FromWkt("POINT (51.39 35.69)", 4326);

See also


NuGet package · Report issues · Back to IRI.Maptor.Core

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (13)

Showing the top 5 NuGet packages that depend on IRI.Maptor.Core.Spatial:

Package Downloads
IRI.Maptor.Core.ShapefileFormat

A .NET standard library to read/write shapefile (*.shp, *.shx, *.dbf, *.prj)

IRI.Maptor.Core.Ogc

A .NET standard library containing OGC standards such as SFA, SLD, WFS, WMS, GML, KML

IRI.Maptor.Core.Persistence

A .NET standard library containing primitive types to work with persistence layers

IRI.Maptor.Infrastructure.WebApi

Loads features from an HTTP web API (JSON/GeoJSON) as a vector data source, with bounding-box filtering via query parameters, so remote feature services behave like any other layer.

IRI.Maptor.Core.Versioning

Feature-level spatial versioning core: entities, state-machine guards, and contracts for competitive review of geometry/attribute edits (sessions, proposals, competitions, decisions, history).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.0 252 8/23/2026
3.0.0-alpha 264 8/22/2026