![]() |
VOOZH | about |
dotnet add package Aspose.GIS --version 26.5.0
NuGet\Install-Package Aspose.GIS -Version 26.5.0
<PackageReference Include="Aspose.GIS" Version="26.5.0" />
<PackageVersion Include="Aspose.GIS" Version="26.5.0" />Directory.Packages.props
<PackageReference Include="Aspose.GIS" />Project file
paket add Aspose.GIS --version 26.5.0
#r "nuget: Aspose.GIS, 26.5.0"
#:package Aspose.GIS@26.5.0
#addin nuget:?package=Aspose.GIS&version=26.5.0Install as a Cake Addin
#tool nuget:?package=Aspose.GIS&version=26.5.0Install as a Cake Tool
👁 Version 26.5.0
👁 NuGet
👁 .NET
👁 Product Page
👁 Docs
👁 API Ref
👁 Examples
👁 Blog
👁 Releases
👁 Support
👁 License
Aspose.GIS for .NET is a powerful API that allows developers to work with geospatial data formats without the need for additional GIS software. It enables reading, writing, and converting between various GIS formats, rendering maps, and creating and analyzing geometries, making it a comprehensive tool for GIS tasks in .NET applications.
Read, Create, and Edit Vector Layers
Enables reading, creating, and editing various vector file formats like Shapefile, GeoJSON, and KML for flexible geographic data handling.
Manage Layer Attributes and Features
Provides tools for defining, accessing, and managing attributes and features within vector layers, improving data organization.
Filter and Index Vector Layers
Supports attribute-based filtering and indexing, allowing efficient data retrieval within vector layers.
Reduce Geometry Precision
Offers methods to reduce geometry precision, helping in data compression and optimization.
Convert Between Vector Formats
Facilitates conversion between supported vector formats, supporting various use cases for data interoperability Raster Handling.
Supports reading general data in multi-band raster formats like GeoTIFF, providing flexibility for complex raster data analysis.
Single-Band Raster Handling
Offers support for single-band raster formats, such as Esri ASCII, enhancing compatibility with simpler raster data files.
Raw Data Access in GeoTIFF
Enables direct access to raw bits in GeoTIFF files, useful for detailed data analysis at the pixel level.
Read & Write Operations with Spatial Tables
Supports spatial databases like PostgreSQL (PostGIS) and SQL Server allowing direct read and write operations with spatial tables.
Manage Layers in Databases
Supports creating, listing, and exporting layers within databases, facilitating spatial data management across platforms.
Export Database Layers to File Formats
Provides capabilities to export layers from databases like SQL Server and PostgreSQL to various GIS formats.
XYZ Tile Support for Web Mapping
Supports loadingommonly used in web mapping services like OpenStreetMap.
Render Web Tiles by Extent
Enables rendering multiple XYZ tiles within a defined spatial extent, offering comprehensive map coverage.
Point Geometry Creation
Facilitates creating individual points and cd representation of geographic locations.
Line and Polygon Geometry Support
Supports creating LineString and Polygon geometries, enabling the representation of various geographical shapes.
Geometry Validation and Relations
Provides geometry validation and relational methods to ensure spatial integrity and perform intersection or overlap checks.
Render Maps to SVG, PNG, and JPEG
Renders maps in formats like SVG, PNG, and JPEG, supporting diverse use camedia.
Advanced Styling Options
Offers advanced styling for map elements, including symbolization by feature attributes, allowing dynamic map visualization.
Customize Symbolizers for Geometries
Enables customization of line, fill, and marker symbolizers for different geometries, improving map aesthetics and readability.
Assign Spatial Reference Systems (SRS)
Allows assigning SRS to data layers, supporting accurate geospatial alignment andnd Layers Supports reprojection of geometries and entire layers to different spatial reference systems, enhancing interoperability.
Import and Export SRS from/to WKT
Provides import/export of SRS data in WKT format, facilitating integration with various geospatial systems.
Load Data from Streams
Supports loading GIS data directly from streams, enabling data handling in environments with custom storage solutions.
Access data from remote sources
Enhancing flexibility in accessing GIS data stored in various cloud environments.
The following table lists the vector formats that Aspose.GIS for .NET can read or write.
| Description | Format | Read | Write |
|---|---|---|---|
| ESRI Shapefile | .shp, .shx, .dbf, .qix, .cpg |
✔️ | ✔️ |
| GeoJSON | .json, .geojson |
✔️ | ✔️ |
| GeoJSON Seq | .json, .geojson |
✔️ | ✔️ |
| ESRI File Geodatabase (FileGDB) | .gdb |
✔️ | ✔️ |
| Geography Markup Language | .gml |
✔️ | |
| Keyhole Markup Language | .kml |
✔️ | ✔️ |
| GPS Exchange Format | .gpx |
✔️ | ✔️ |
| TopoJSON | .json, .topojson |
✔️ | ✔️ |
| MapInfo Interchange Format | .mif |
✔️ | |
| MapInfo TAB format | .tab, .dat, .dbf, .map, .id |
✔️ | ✔️ |
| OpenStreetMap (OSM) XML | .osm |
✔️ | |
| Comma-Separated Values | .csv |
✔️ | ✔️ |
The following table lists the supported databases.
| Description | Read | Write |
|---|---|---|
| Post GIS | ✔️ | ✔️ |
| SQL Server (MS SQL) | ✔️ | ✔️ |
The following table lists the raster formats that Aspose.GIS for .NET can only read.
| Description | Format | Read |
|---|---|---|
| Geo TIFF, TIFF | .tiff, .tif |
✔️ |
| Esri ASCII | .ascii |
✔️ |
The following web tile formats can be loaded from the Internet.
| Format | Description |
|---|---|
| XYZ Tiles | Slippy Maps |
Maps can be rendered into the following formats.
| Format | Description |
|---|---|
.SVG |
Scalable Vector Graphics |
.PNG |
Portable Network Graphics |
.JPG |
JPEG |
.BMP |
Bitmap Image Files |
1. Package Manager UI
- Right-click
Referencesin Solution Explorer > selectManage NuGet Packages.- Ensure "nuget.org" is selected as Package Source.
- Search for
Aspose.GIS, select it, and clickInstall.- Review and accept the license agreement if prompted.
2. Package Manager Console
- Open
Tools > NuGet Package Manager > Package Manager Console.- Ensure the desired project is selected in the
Default projectdropdown.- Run:
Install-Package Aspose.GIS
Download Aspose.GIS as an MSI installer or ZIP archive from the Releases section.
To use Aspose.GIS for map rendering on Linux, install dependencies:
apt-get update && apt-get install -y libgdiplus libc6-dev libx11-dev
For more details, please refer to the .NET Core Guide.
Convert KML files to GeoJSON format using Aspose.GIS for .NET, with options to set spatial reference systems for accurate geometry transformation.
// Specify conversion settings if necessary. It is optional.
ConversionOptions options = null;
// This option assigns WGS84 to the destination layer.
// Check if the destination layer supports WGS84 spatial reference to avoid errors.
if (Drivers.Shapefile.SupportsSpatialReferenceSystem(SpatialReferenceSystem.Wgs84))
{
options = new ConversionOptions()
{
DestinationSpatialReferenceSystem = SpatialReferenceSystem.Wgs84,
};
}
// Convert KML file format to GeoJSON.
VectorLayer.Convert("source.kml", Drivers.Kml, "destination.geojson", Drivers.GeoJson, options);
Convert CSV files to Shapefile format with optional spatial reference system setup using Aspose.GIS for .NET, ensuring geometry compatibility.
// Specify conversion settings if necessary. It is optional.
ConversionOptions options = null;
// Set the WGS84 spatial reference system for the destination layer.
if (Drivers.Shapefile.SupportsSpatialReferenceSystem(SpatialReferenceSystem.Wgs84))
{
options = new ConversionOptions()
{
DestinationSpatialReferenceSystem = SpatialReferenceSystem.Wgs84,
};
}
// Convert CSV file format to Shapefile.
VectorLayer.Convert("source.csv", Drivers.Csv, "destination.shp", Drivers.Shapefile, options);
Load and render XYZ tiles (e.g., OpenStreetMap) in Aspose.GIS for .NET, allowing integration with web-based tile providers for detailed map visuals.
// Define the output path for the rendered map image.
var mapPath = Path.Combine(RunExamples.GetDataDir(), "out_osm_tile.png");
// URL template for the OSM tile server.
string url = "http://tile.openstreetmap.org/{z}/{x}/{y}.png";
using (var layer = Drivers.XyzTiles.OpenLayer(new XyzConnection(url)))
{
// Get tile information.
var tile = layer.GetTile(2, 3, 1);
Console.WriteLine($"CellX: {tile.CellX}, CellY: {tile.CellY}" );
Console.WriteLine($"Path: {tile.AsPath()}");
// Render the tile with specified resampling.
var resampling = new RasterMapResampling() { Height = 256, Width = 256 };
using (var map = new Map(800, 800))
{
var raster = tile.AsRaster();
map.Add(new RasterMapLayer(raster){Resampling = resampling});
map.Render(mapPath, Renderers.Png);
}
Console.WriteLine($"Rendered Map: {mapPath}");
}
Extract and display feature attributes from TopoJSON files using Aspose.GIS for .NET, enabling detailed feature data processing and analysis.
// Create the output path for the TopoJSON file.
var outputPath = RunExamples.GetDataDir() + "sample_out.topojson";
// Create a new TopoJSON layer.
using (VectorLayer layer = VectorLayer.Create(outputPath, Drivers.TopoJson))
{
// Add attributes for features.
layer.Attributes.Add(new FeatureAttribute("name", AttributeDataType.String));
layer.Attributes.Add(new FeatureAttribute("measurement", AttributeDataType.Double));
layer.Attributes.Add(new FeatureAttribute("id", AttributeDataType.Integer));
// Construct and add features with geometry.
var feature0 = layer.ConstructFeature();
feature0.SetValue("name", "name_0");
feature0.SetValue("measurement", 1.03);
feature0.SetValue("id", 0);
feature0.Geometry = new Point(1.3, 2.3);
layer.Add(feature0);
var feature1 = layer.ConstructFeature();
feature1.SetValue("name", "name_1");
feature1.SetValue("measurement", 10.03);
feature1.SetValue("id", 1);
feature1.Geometry = new Point(241.32, 23.2);
layer.Add(feature1);
}
👁 Product Page
👁 Docs
👁 API Ref
👁 Examples
👁 Blog
👁 Releases
👁 Support
👁 License
GIS Data Manipulation | Conversion APIs | .NET API | Aspose.GIS | Shapefile | GeoJSON | FileGDB | GML | KML | SVG | Vector Layers | Raster Layers | Spatial Reference Systems | Map Rendering | Web Tiles | PostGIS | SQL Server | GeoTIFF | Esri ASCII
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 is compatible. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 1 NuGet packages that depend on Aspose.GIS:
| Package | Downloads |
|---|---|
|
Aspose.Total
Aspose.Total for .NET is the most complete package of all .NET file format APIs offered by Aspose. It empowers developers to create, edit, render, print and convert between a wide range of popular document formats within any .NET, C#, ASP.NET and VB.NET applications. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 26.5.0 | 218 | 5/28/2026 |
| 26.4.0 | 2,952 | 4/30/2026 |
| 26.3.0 | 4,482 | 3/30/2026 |
| 26.2.0 | 3,851 | 2/26/2026 |
| 26.1.0 | 582 | 1/28/2026 |
| 25.12.0 | 2,616 | 12/29/2025 |
| 25.11.0 | 2,574 | 11/28/2025 |
| 25.10.0 | 908 | 11/12/2025 |
| 25.9.0 | 6,817 | 9/29/2025 |
| 25.8.0 | 7,273 | 8/29/2025 |
| 25.7.0 | 6,841 | 7/30/2025 |
| 25.6.0 | 5,512 | 6/27/2025 |
| 25.5.0 | 6,439 | 5/28/2025 |
| 25.4.0 | 11,775 | 4/21/2025 |
| 25.3.0 | 9,131 | 3/31/2025 |
| 25.2.0 | 9,512 | 2/26/2025 |
| 25.1.0 | 5,946 | 1/29/2025 |
| 24.12.0 | 10,023 | 12/27/2024 |
| 24.11.0 | 18,463 | 11/29/2024 |
| 24.10.0 | 6,318 | 10/25/2024 |