IRI.Maptor.Core.Spatial
3.0.0
dotnet add package IRI.Maptor.Core.Spatial --version 3.0.0
NuGet\Install-Package IRI.Maptor.Core.Spatial -Version 3.0.0
<PackageReference Include="IRI.Maptor.Core.Spatial" Version="3.0.0" />
<PackageVersion Include="IRI.Maptor.Core.Spatial" Version="3.0.0" />
<PackageReference Include="IRI.Maptor.Core.Spatial" />
paket add IRI.Maptor.Core.Spatial --version 3.0.0
#r "nuget: IRI.Maptor.Core.Spatial, 3.0.0"
#:package IRI.Maptor.Core.Spatial@3.0.0
#addin nuget:?package=IRI.Maptor.Core.Spatial&version=3.0.0
#tool nuget:?package=IRI.Maptor.Core.Spatial&version=3.0.0
IRI.Maptor.Core.Spatial
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>andFeatureSet<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
- Analysis · Digital terrain modeling · Interpolation · Space-filling curves
- Advanced structures · K-d trees · R-trees
- IO formats: GeoJSON · WKT/WKB · TopoJSON · DXF · SVG · EPS · PMTiles · Vector tiles · Cesium terrain · SQL Server native binary · ESRI JSON
| Product | Versions 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. |
-
.NETStandard 2.1
- IRI.Maptor.Core.Common (>= 3.0.0)
- IRI.Maptor.Core.Graph (>= 3.0.0)
- IRI.Maptor.Core.SpatialReferenceSystem (>= 3.0.0)
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 |