IRI.Maptor.Infrastructure.SqlServerSpatialExtension 3.0.0

dotnet add package IRI.Maptor.Infrastructure.SqlServerSpatialExtension --version 3.0.0
                    
NuGet\Install-Package IRI.Maptor.Infrastructure.SqlServerSpatialExtension -Version 3.0.0
                    
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.Infrastructure.SqlServerSpatialExtension" Version="3.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="IRI.Maptor.Infrastructure.SqlServerSpatialExtension" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="IRI.Maptor.Infrastructure.SqlServerSpatialExtension" />
                    
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.Infrastructure.SqlServerSpatialExtension --version 3.0.0
                    
#r "nuget: IRI.Maptor.Infrastructure.SqlServerSpatialExtension, 3.0.0"
                    
#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.Infrastructure.SqlServerSpatialExtension@3.0.0
                    
#: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.Infrastructure.SqlServerSpatialExtension&version=3.0.0
                    
Install as a Cake Addin
#tool nuget:?package=IRI.Maptor.Infrastructure.SqlServerSpatialExtension&version=3.0.0
                    
Install as a Cake Tool

IRI.Maptor.Infrastructure.SqlServerSpatialExtension

NuGet Target

Extension methods and helpers for working with SQL Server spatial types (SqlGeometry, SqlGeography) alongside the Maptor geometry model — conversions to Geometry<Point>, GeoJSON, GML, and helpers for building SQL Server spatial values from other formats. All extension methods live in the IRI.Maptor.Extensions namespace.

Installation

dotnet add package IRI.Maptor.Infrastructure.SqlServerSpatialExtension

Features

  • SqlGeometryExtensions — convert SqlGeometry to Maptor Geometry<Point> (AsGeometry), export GeoJSON (AsGeoJson), tile helpers (TileInfo.AsSqlGeometry), and WKT/projection utilities
  • SqlGeographyExtensions — point extraction (AsPoint), reprojection to SqlGeometry (Project, GeodeticWgs84ToWebMercator, ...), GeoJSON and WKT export
  • GeometryExtensions — geodesic area (GetTrueArea), IPoint to SqlGeography, OpenGIS geometry-type mapping
  • BoundingBoxExtensions — Maptor BoundingBox to SqlGeometry envelope
  • FeatureExtensionsList<Feature<Point>> to DataTable
  • GeoJsonExtensions — GeoJSON geometry to SqlGeometry / SqlGeography (and back via AsGeoJson)
  • GmlExtensionsSqlGeometry to GML3 (AsGml3) and GML3 parsing (ParseGML3)
  • GpxExtensions — GPX waypoints, track points, segments, and tracks to SqlGeography
  • ShapefileExtension — ESRI Shapefile shapes to SqlGeometry
  • SqlSpatialHelper / SqlSpatialUtility — WKT and Esri JSON parsing, empty-geometry builders, bounding boxes from envelopes, union, and point-collection/linestring construction

Usage

using IRI.Maptor.Extensions;

// SqlGeometry -> Maptor geometry
Geometry<Point> geometry = sqlGeometry.AsGeometry();

// SqlGeometry -> GeoJSON
var geoJson = sqlGeometry.AsGeoJson();

// Maptor bounding box -> SqlGeometry envelope
SqlGeometry envelope = boundingBox.AsSqlGeometry(srid: 3857);

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

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

Showing the top 1 NuGet packages that depend on IRI.Maptor.Infrastructure.SqlServerSpatialExtension:

Package Downloads
IRI.Maptor.Infrastructure.SqlServer

SQL Server Spatial adapter for geometry/geography columns: reads the native binary format directly into Maptor geometries, with scale-dependent and bounding-box queries and write support.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.0 87 8/23/2026
3.0.0-alpha 92 8/22/2026