IRI.Maptor.Core.Spatial 4.0.1

dotnet add package IRI.Maptor.Core.Spatial --version 4.0.1
                    
NuGet\Install-Package IRI.Maptor.Core.Spatial -Version 4.0.1
                    
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="4.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="IRI.Maptor.Core.Spatial" Version="4.0.1" />
                    
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 4.0.1
                    
#r "nuget: IRI.Maptor.Core.Spatial, 4.0.1"
                    
#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@4.0.1
                    
#: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=4.0.1
                    
Install as a Cake Addin
#tool nuget:?package=IRI.Maptor.Core.Spatial&version=4.0.1
                    
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) and conversion between point types (ConvertFrom)
  • 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 and polygon relations in metres: measured lines, line coverage, segment crossings, nearest line, position clustering, polygon area/overlap/difference/union, enclosed gaps, and shared boundaries between polygons (PolygonAdjacency)
  • Points-on-lines topology (PointLineTopologyBuilder<T>): which points stand on which lines, in order along each line, with data issues by severity
  • Snapping and drawing aids for map editing: snap to line ends, vertices, intersections, midpoints and edges (SnapIndex<T>, SnapEngine), guides (extension, perpendicular, parallel, angle steps) and typed lengths/angles on Web Mercator
  • Local metric frame (LocalMetricFrame): short distances in metres around one place, for geodetic or projected data
  • Line simplification: Ramer-Douglas-Peucker, Visvalingam-Whyatt, Li-Openshaw (vector and raster modes) 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, space-filling-curve R-tree, and a uniform box grid (BoxGrid<TItem>)
  • Map sheet/tile indexes for geodetic and UTM grids
  • Cartographic map grids: a geographic graticule, a UTM grid cut at its zone seams, or a grid of any projection — drawn as polylines in two weights, with edge values, at an interval chosen from the view
  • 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; reads 32-bit float, uncompressed, one band. A low-level TiffWriter exists, but its files are not readable by GDAL or by the reader
GRD Yes Yes Esri ASCII grid (GRDFileFormat); ElevationGridPicture renders it as a shaded Web Mercator picture
ESRI JSON Yes Yes ArcGIS REST JSON geometries and feature sets
PRJ Yes Yes ESRI projection WKT (EsriPrjFile)
World file Yes No Image georeferencing (Worldfile)
PROJJSON No Yes CRS as PROJJSON (ProjJsonWriter)

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 (15)

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

Package Downloads
IRI.Maptor.Core.Ogc

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

IRI.Maptor.Core.ShapefileFormat

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

IRI.Maptor.Core.Persistence

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

IRI.Maptor.Core.GeoParquet

A .NET standard library for GeoParquet format support (read/write geospatial vector data in Parquet format)

IRI.Maptor.Core.FileGdb

A dependency-free .NET standard library to read ESRI File Geodatabases (*.gdb folders)

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.1 487 12/1/2026
4.0.1-alpha 454 12/1/2026
4.0.0 474 12/1/2026
4.0.0-alpha 439 12/1/2026
3.0.0 669 8/23/2026
3.0.0-alpha 591 8/22/2026