Map, geocode, route, and process spatial data stored in different file formats.
Get the most complete and powerful APIs to create new projects inspired by and based on them instead of wasting resources and effort by coding the things that already exist here for you.The GIS API for .NET is an easy way to work with GIS data using fully managed code with a simple interface, deployment, and security for your data.
Our API for .NET provides conversion between file formats in just one line of code VectorLayer.Convert(sampleGeoJsonPath, Drivers.GeoJson, outputFilePath, Drivers.TopoJson);
and has a single template for both ShapeFile and GeoJSON formats, so you don’t have to worry about differences in their internal file structures.
The GIS API for .NET provides a wide range of options for managing GIS data, such as:
using (var map = new Map(800, 400))
{
map.Add(VectorLayer.Open(dataDir + "land.shp", Drivers.Shapefile));
map.Render(dataDir + "land_out.svg", Renderers.Svg);
}
using (var map = new Map(500, 450))
{
var symbolizer = new SimpleFill { FillColor = Color.Azure, StrokeColor = Color.Brown };
map.Add(VectorLayer.Open(dataDir + "polygons.geojson", Drivers.GeoJson), symbolizer);
map.Render(dataDir + "polygons_out.svg", Renderers.Svg);
}
using (var map = new Map(1000, 634))
{
var symbolizer = new SimpleLine { Width = 1.5, Color = Color.FromArgb(0xAE, 0xD9, 0xFD) };
var labeling = new SimpleLabeling(labelAttribute: "name")
{
HaloSize = 1,
Placement = new LineLabelPlacement
{
Alignment = LineLabelAlignment.Parallel,
}
};
map.Add(VectorLayer.Open(dataDir + "lines.geojson", Drivers.GeoJson), symbolizer, labeling);
map.Padding = 50;
map.Render(dataDir + "lines_labeling_parallel_out.svg", Renderers.Svg);
}
using (var map = new Map(500, 200))
{
var symbol = new SimpleMarker() { Size = 7, StrokeWidth = 1, FillColor = Color.Red };
map.Add(VectorLayer.Open(dataDir + "points.geojson", Drivers.GeoJson), symbol);
map.Padding = 20;
map.Render(dataDir + "points_out.svg", Renderers.Svg);
}
There are a simple way to install Aspose.GIS for .NET onto your system:
Our API is supported on most platforms and operating systems. Before running the code, please make sure your system meets the appropriate requirements.
Try the features of our library to see new opportunities. Live demos in C#
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
You can also look at the various features of our GIS library.