Aspose.GIS 24.10.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Aspose.GIS --version 24.10.0                
NuGet\Install-Package Aspose.GIS -Version 24.10.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="Aspose.GIS" Version="24.10.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.GIS --version 24.10.0                
#r "nuget: Aspose.GIS, 24.10.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.
// Install Aspose.GIS as a Cake Addin
#addin nuget:?package=Aspose.GIS&version=24.10.0

// Install Aspose.GIS as a Cake Tool
#tool nuget:?package=Aspose.GIS&version=24.10.0                

.NET GIS API for Geospatial Data Processing

Version 24.10.0 NuGet .NET

banner


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.

Vector Layers Features

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.

Databases Features

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.

Web Tiles Features

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.

Geometry Types Features

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.

Map Rendering Features

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.

Spatial Reference Systems Features

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.

Streams and Remote Storage Features

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.

Supported File Formats

Vector Formats

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 ✔️ ✔️

Databases

The following table lists the supported databases.

Description Read Write
Post GIS ✔️ ✔️
SQL Server (MS SQL) ✔️ ✔️

Raster Formats

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 ✔️

Web Tiles

The following web tile formats can be loaded from the Internet.

Format Description
XYZ Tiles Slippy Maps

Map Rendering Formats

Maps can be rendered into the following formats.

Format Description
.SVG Scalable Vector Graphics
.PNG Portable Network Graphics
.JPG JPEG
.BMP Bitmap Image Files

Install Aspose.GIS for .NET

From NuGet

1. Package Manager UI
  • Right-click References in Solution Explorer > select Manage NuGet Packages.
  • Ensure "nuget.org" is selected as Package Source.
  • Search for Aspose.GIS, select it, and click Install.
  • 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 project dropdown.
  • Run:
    Install-Package Aspose.GIS
    

From MSI Installer or ZIP Archive

Download Aspose.GIS as an MSI installer or ZIP archive from the Releases section.

Platform-Specific Instructions

Linux

To use Aspose.GIS for map rendering on Linux, install dependencies:

apt-get update && apt-get install -y libgdiplus libc6-dev libx11-dev

System Requirements

  • .NET Framework v4.7+: Supports Windows 7 SP1, Windows 8, Windows 10, Windows Server 2008 R2 SP1, and later.
  • .NET Core v2.0+: Supports Windows 7 SP1, Windows 10 (Anniversary Update and later), macOS 10.12+, and Linux distributions (e.g., Ubuntu, Debian, CentOS, Red Hat).

For more details, please refer to the .NET Core Guide.

Experimental Support

  • Mono 5.4+
  • Xamarin:
    • iOS 10.14+
    • Android 8.0+
    • Mac 3.8+

Code Sample: KML to GeoJSON Conversion

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);

Code Sample: CSV to Shapefile Conversion

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);

Code Sample: Rendering Map with XYZ Tiles

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}");
}

Code Sample: Access and Display Features in TopoJSON

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 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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 is compatible.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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 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.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
24.11.0 108 11/29/2024
24.10.0 2,249 10/25/2024
24.9.0 3,887 9/27/2024
24.8.0 2,488 8/30/2024
24.7.0 2,203 7/29/2024
24.6.0 3,337 6/27/2024
24.5.0 2,786 5/31/2024
24.4.1 5,778 4/23/2024
24.3.0 1,497 4/2/2024
24.2.0 177 4/1/2024
24.1.1 2,819 3/28/2024
23.12.0 13,168 12/17/2023
23.11.0 7,842 11/26/2023
23.9.0 22,045 9/26/2023
23.8.0 7,776 8/28/2023
23.7.0 13,854 7/23/2023
23.6.0 7,136 6/29/2023
23.5.0 1,267 6/4/2023
23.4.0 9,004 4/24/2023
23.3.0 7,903 3/26/2023
23.2.0 6,223 2/26/2023
23.1.0 11,886 1/30/2023
22.11.0 16,204 12/4/2022
22.10.0 8,662 10/29/2022
22.9.0 16,291 9/24/2022
22.8.0 21,411 8/26/2022
22.7.0 8,964 7/27/2022
22.6.0 11,554 6/21/2022
22.5.0 11,169 5/21/2022
22.3.0 23,833 3/28/2022
22.1.0 17,314 1/18/2022
21.12.0 6,766 12/18/2021
21.11.0 14,234 11/25/2021
21.10.0 22,339 10/13/2021
21.9.0 11,311 9/12/2021
21.8.0 11,479 8/9/2021
21.7.0 13,140 7/7/2021
21.6.0 3,545 6/16/2021
21.5.0 9,653 5/18/2021
21.4.0 23,848 4/1/2021
21.3.0 7,277 3/2/2021
21.2.0 8,325 2/3/2021
21.1.0 3,493 1/18/2021
20.12.0 2,643 12/8/2020
20.11.0 11,213 11/18/2020
20.10.0 3,156 10/15/2020
20.9.0 2,682 9/7/2020
20.8.0 3,349 8/4/2020
20.7.0 2,888 7/8/2020
20.6.0 8,117 6/9/2020
20.5.0 20,804 5/21/2020
20.4.0 10,291 4/6/2020
20.3.0 2,504 3/11/2020
20.2.0 2,922 2/18/2020
20.1.0 5,027 1/28/2020
19.12.0 2,808 12/24/2019
19.11.0 2,813 11/13/2019
19.10.0 3,997 10/23/2019
19.9.0 1,309 9/30/2019
19.8.2 1,032 9/4/2019
19.8.1 965 9/2/2019
19.8.0 2,052 8/22/2019
19.7.1 1,061 7/26/2019
19.7.0 1,068 7/16/2019
19.6.1 1,174 6/28/2019
19.6.0 1,172 6/7/2019
19.5.0 5,322 5/8/2019
19.4.0 4,357 4/12/2019
19.3.0 1,237 3/15/2019
19.2.0 1,228 2/7/2019
19.1.0 1,191 1/10/2019
18.12.1 1,170 12/13/2018
18.12.0 1,306 12/3/2018
18.11.1 1,149 11/16/2018
18.11.0 1,131 11/9/2018
18.10.0 1,247 10/8/2018
18.9.0 1,273 9/11/2018
18.8.0 1,510 8/6/2018
18.7.0 1,424 7/11/2018
18.6.0 1,412 6/15/2018
18.5.0 1,356 5/21/2018
18.4.0 1,512 4/25/2018
18.3.0 1,459 3/26/2018
18.2.0 1,593 2/13/2018