Create, read, convert, process Gis data and render maps with an API designed specifically for NET developers.
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.
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.
Aspose.Gis includes a full set of spatial predicates based on the DE-9IM model that evaluates topological relationships between objects. Typical cases are:
Aspose.Gis enables you to easily perform geometric operations, such as:
// 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
Console.WriteLine(feature.GetValue<DateTime>("UPDATE_DAT"));
}
}
// 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);
}
There are a simple way to install Aspose.Gis for NET onto your system:
View Aspose.Gis examples right now by visiting our Live Demos website. The live demo has the following benefits
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.
You can also look at the various features of our Gis library.