IRI.Maptor.Core.ShapefileFormat
3.0.0
dotnet add package IRI.Maptor.Core.ShapefileFormat --version 3.0.0
NuGet\Install-Package IRI.Maptor.Core.ShapefileFormat -Version 3.0.0
<PackageReference Include="IRI.Maptor.Core.ShapefileFormat" Version="3.0.0" />
<PackageVersion Include="IRI.Maptor.Core.ShapefileFormat" Version="3.0.0" />
<PackageReference Include="IRI.Maptor.Core.ShapefileFormat" />
paket add IRI.Maptor.Core.ShapefileFormat --version 3.0.0
#r "nuget: IRI.Maptor.Core.ShapefileFormat, 3.0.0"
#:package IRI.Maptor.Core.ShapefileFormat@3.0.0
#addin nuget:?package=IRI.Maptor.Core.ShapefileFormat&version=3.0.0
#tool nuget:?package=IRI.Maptor.Core.ShapefileFormat&version=3.0.0
IRI.Maptor.Core.ShapefileFormat
ESRI shapefile read and write support for the Maptor stack: SHP geometry, SHX index, DBF attributes with code-page-aware text decoding, PRJ coordinate system files, and reprojection on load or save.
Installation
dotnet add package IRI.Maptor.Core.ShapefileFormat
Features
- Read shapefiles as raw ESRI shapes (
Shapefile.ReadShapes/ReadShapesAsync) or as attributed features (Shapefile.ReadAsFeature/ReadAsFeatureAsyncreturningFeature<Point>) - All ESRI shape types:
Point,Polyline,Polygon,MultiPointplus their M and Z variants - Write shapefiles from ESRI shapes,
Feature<Point>lists, or GeoJSON features (Shapefile.Save,SaveAsShapefile) - DBF attribute reading/writing with configurable encodings, FoxPro code-page detection,
.cpgfile support, and optional Persian (Farsi) character correction - PRJ support:
TryReadPrjFile/TryGetSrson read,SaveAsPrjon write - Reprojection:
Project,ProjectAsync, andProjectAndSaveAsShapefilebetween spatial reference systems (SrsBase) - SHX index reading and writing
- Conversion helpers to the native geometry model (
AsGeometry), SQL Server WKT (AsSqlServerWkt), and GeoJSON
Usage
Read a shapefile:
using IRI.Maptor.Core.ShapefileFormat;
// raw ESRI shapes
var shapes = await Shapefile.ReadShapesAsync("data/parcels.shp");
foreach (var shape in shapes)
{
Console.WriteLine(shape.AsSqlServerWkt());
}
// as features with DBF attributes
var features = Shapefile.ReadAsFeature("data/parcels.shp", defaultSrid: 4326);
Write features back to a shapefile:
using IRI.Maptor.Core.ShapefileFormat;
Shapefile.SaveAsShapefile("output/result.shp", features);
Reproject a shapefile on save:
using IRI.Maptor.Core.ShapefileFormat;
using IRI.Maptor.Core.SpatialReferenceSystem.MapProjections;
Shapefile.ProjectAndSaveAsShapefile(
"data/parcels.shp", "output/parcels-mercator.shp",
SrsBases.WebMercator, overwrite: true);
Dependencies
IRI.Maptor.Core.Common,IRI.Maptor.Core.Ogc,IRI.Maptor.Core.Spatial
| 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.Ogc (>= 3.0.0)
- IRI.Maptor.Core.Spatial (>= 3.0.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on IRI.Maptor.Core.ShapefileFormat:
| Package | Downloads |
|---|---|
|
IRI.Maptor.Core.Persistence
A .NET standard library containing primitive types to work with persistence layers |
|
|
IRI.Maptor.Infrastructure.SqlServerSpatialExtension
Conversion helpers between SQL Server SqlGeometry/SqlGeography and the Maptor model, plus GeoJSON/GML/GPX/Shapefile interchange and bounding-box/WKB utilities. |
|
|
IRI.Maptor.Presentation.Wpf
The WPF map UI library: the central MapViewer control, MVVM building blocks, layer types (feature, raster, grid, group), cartographic rendering and symbology, tile-service providers, map markers, converters/behaviors, and Excel/Word export helpers. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 151 | 8/23/2026 |
| 3.0.0-alpha | 159 | 8/22/2026 |