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
<PackageReference Include="IRI.Maptor.Infrastructure.SqlServerSpatialExtension" Version="3.0.0" />
<PackageVersion Include="IRI.Maptor.Infrastructure.SqlServerSpatialExtension" Version="3.0.0" />
<PackageReference Include="IRI.Maptor.Infrastructure.SqlServerSpatialExtension" />
paket add IRI.Maptor.Infrastructure.SqlServerSpatialExtension --version 3.0.0
#r "nuget: IRI.Maptor.Infrastructure.SqlServerSpatialExtension, 3.0.0"
#:package IRI.Maptor.Infrastructure.SqlServerSpatialExtension@3.0.0
#addin nuget:?package=IRI.Maptor.Infrastructure.SqlServerSpatialExtension&version=3.0.0
#tool nuget:?package=IRI.Maptor.Infrastructure.SqlServerSpatialExtension&version=3.0.0
IRI.Maptor.Infrastructure.SqlServerSpatialExtension
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— convertSqlGeometryto MaptorGeometry<Point>(AsGeometry), export GeoJSON (AsGeoJson), tile helpers (TileInfo.AsSqlGeometry), and WKT/projection utilitiesSqlGeographyExtensions— point extraction (AsPoint), reprojection toSqlGeometry(Project,GeodeticWgs84ToWebMercator, ...), GeoJSON and WKT exportGeometryExtensions— geodesic area (GetTrueArea),IPointtoSqlGeography, OpenGIS geometry-type mappingBoundingBoxExtensions— MaptorBoundingBoxtoSqlGeometryenvelopeFeatureExtensions—List<Feature<Point>>toDataTableGeoJsonExtensions— GeoJSON geometry toSqlGeometry/SqlGeography(and back viaAsGeoJson)GmlExtensions—SqlGeometryto GML3 (AsGml3) and GML3 parsing (ParseGML3)GpxExtensions— GPX waypoints, track points, segments, and tracks toSqlGeographyShapefileExtension— ESRI Shapefile shapes toSqlGeometrySqlSpatialHelper/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 | 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. |
-
net8.0
- IRI.Maptor.Core.Common (>= 3.0.0)
- IRI.Maptor.Core.ShapefileFormat (>= 3.0.0)
- Microsoft.Data.SqlClient (>= 6.0.1)
- Microsoft.SqlServer.Types (>= 160.1000.6)
- System.Data.SqlClient (>= 4.9.0)
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 |