Gis Data Manipulation APIs 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.

Aspose.GIS for NET

Aspose.Gis library for NET

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.

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
Code samples
// Read GIS data from a Shapefile
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 a Shapefile to GeoJSON
VectorLayer.Convert(dir + "example.shp", Drivers.Shapefile, dir + "output.json", Drivers.GeoJson);

// Render a TopoJSON map to SVG
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);

C# Gis library

There are a simple way to install Aspose.Gis for NET onto your system:

Aspose.Gis Live Demos on C#

View Aspose.Gis examples right now by visiting our Live Demos website. The live demo has the following benefits

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

System Requirements

Our APIs are supported on all major platforms and Operating Systems. Before executing the code below, please make sure that you have the following prerequisites on your system.

Other Supported Features

You can also look at the various features of our Gis library.

(Release notes)