Aspose.GIS  for .NET

.NET APIs for GIS Data Manipulation

Create, read, convert, process GIS data and render maps with an API designed specifically for .NET developers.

  Download Free Trial

Aspose.GIS for .NET enables you to access & manipulate geographic information from vector-based geospatial data formats. API supports to read, write & convert most popular GIS file formats such as Shapefile, GeoJSON, FIleGDB, KML & OSM XML as well as render a map from supported formats to SVG.  Furthermore, a developer can easily customize rendering and feature styles to get the desired map look.

Aspose.GIS for .NET is designed with simplicity, performance, usability & portability in mind. It contains APIs to be used with .NET Framework, .NET Core & Xamarin platforms, enabling you to build cross-platform applications with great ease.

Advanced GIS Data Manipulation API Features

Create new layers and datasets or read features from existing files

Create points, lines, and surfaces

Build non-linear geometries

Translate geometries to/from WKT and WKB

Compute topological relation between geometries

Compute an intersection, union or difference of any geometries

Compute a buffer region around a geometry

Render maps to SVG, PNG, JPEG, or BMP

Combine several symbolizers to perform complex drawing

Calculate styling parameters of a feature basing on values of its attributes

Reproject individual geometries and entire layers

Import spatial reference systems from WKT, export spatial reference systems to WKT

Look up spatial reference systems by SRID

Convert data to a lot of supported formats

Perform reprojection while converting data

Work with spatial data in PostgreSQL and SQL Server

Build spatial indexes to speed up spatial queries

Read band values from GeoTIFF raster format

Single API for Various Formats

Aspose.GIS takes care of all tedious details of data formats and provides you with a clean and simple object model for GIS data. You can read or store data in files with a universal, format-independent code.

Read GIS data from a Shapefile - C#

using (var layer = VectorLayer.Open(dir + "myDataFile.shp", Drivers.Shapefile))


    foreach (var feature in layer)


        Console.WriteLine(feature.Geometry.AsText()); // print the geometry as WKT

        Console.WriteLine(feature.GetValue<string>("CITY_NAME")); // print an attribute value




Convert GIS Data Between Formats

Converting GIS data from one format to another with Aspose.GIS usually takes just one line of code.

Convert a Shapefile to GeoJSON - C#

VectorLayer.Convert(dir + "example.shp", Drivers.Shapefile, dir + "output.json", Drivers.GeoJson);

If necessary, you can perform additional operations during conversions such as adjustment of data attributes schema or on-the-fly reprojection of feature geometries.

Some examples of supported format conversions:

  • Shapefile to KML
  • Shapefile to File Geodatabase
  • GeoJSON to Shapefile
  • KML to File Geodatabase
  • KML to Shapefile
  • KML to GeoJSON
  • GPX to File Geodatabase
  • GPX to GeoJSON
  • GPX to KML
  • GPX to TopoJSON
  • MapInfo Interchange to GeoJSON
  • MapInfo Interchange to Shapefile
  • MapInfo TAB to KML
  • OSM to Shapefile
  • GML to File Geodatabase

Conversion of GIS files to raster image formats is powered by Aspose.Imaging export modules.

Render Maps

Data is only useful when someone can see it. .NET GIS library makes it easy and fast to export GIS data to vector or raster images and provides rich symbology for complex visualization scenarios.

Render a TopoJSON map to SVG - C#

using (var map = new Map(800, 600))


    var layer = VectorLayer.Open(dir + "map.json", Drivers.TopoJson);

    var style = new SimpleFill { FillColor = Color.Azure, StrokeWidth = 1.5 };

    map.Add(layer, style);

    map.Render(dir + "mymap.svg", Renderers.Svg);


Use Different Coordinate Systems

With Aspose.GIS, you can transform geospatial coordinates, geometries, and whole layers from one coordinate reference system to another. Cartographic projections as well as geodetic transformations are supported.

You can either look up a coordinate reference system by SRID, import from WKT or set custom parameters directly in the code.

Perform Spatial Analysis

Aspose.GIS includes a full set of spatial predicates based on the DE-9IM model that evaluates topological relationships between objects. Typical cases are:

  • Determine if two objects overlap
  • Determine if one object intersects another object
  • Find minimum distance between geometry and another geometry
  • Check if the geometry of an object intersects itself
  • Compute the area of a geometry

Aspose.GIS enables you to easily perform geometric operations, such as:

  • Create a buffer polygon around a geometry
  • Find the centroid of a geometry
  • Find the convex hull of a geometry
  • Compute bounding extent
  • Linearize a curve

Support and Learning Resources