English

GIS API for .NET

Create, view, and convert GIS data on a map.

Map, geocode, route, and process spatial data stored in different file formats.

  Download Free Trial
PNG JPG BMP TIFF GPX
Aspose.GIS for .NET
GIS

Overview

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:

  • Read and Write GIS vector data (layers, metadata, datasets, and spatial indexes);
  • Conversion of GIS file formats (conversion, setting of object attributes, and reprojection when converting);
  • Data Visualization (render maps in SVG, PNG, JPEG, or BMP format, manage settings for each geometric shape, combine symbols to perform complex drawings, calculate object style settings based on attribute values, and control the visual representation of an object using layer rendering);
  • Creation and Analysis of geometric shapes (create, edit, mark on the map, construct, import and export geometry objects (point, multipoint, line, multiline, curved line, and polygon) from and to WKT and WKB to create complex objects in supported file formats);
  • Vector data analysis (estimating topological connections between objects such as joins, differences, intersections, overlaps, edge touches, distances, convex hulls, and centroids);
  • SRS (Spatial Reference Systems) (Search SRS by SRID, read SRS information from data files, assign SRS to your data, reproject geometry and layers, import and export the SRSs to and from WKT).
GIS API for .NET is created by and for developers. Our team is constantly improving and adding new features to our library based on user feedback.

Why GIS for .NET?

Aspose’s customers are drawn from various industries, from software developers and consulting companies to banks, government agencies, and academic institutions. Whenever you need experience in GIS, you need an GIS product. Some of our 21,000+ customers around the world have shared their succhess stories already.

Map rendering
                
                    
using (var map = new Map(800, 400))
{
    map.Add(VectorLayer.Open(dataDir + "land.shp", Drivers.Shapefile));
    map.Render(dataDir + "land_out.svg", Renderers.Svg);
}
                
            
Map rendering
Change the color of the stroke line and fill it with brown
                
                    
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);
}
                
            
Change the color of the stroke line and fill it with brown
Rotate the labels
                
                    
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);
}
                
            
Rotate the labels
Change the fill color to red
                
                    
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);
}

                
            
Change the fill color to red

C# GIS library

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

System Requirements

Our API is supported on most platforms and operating systems. Before running the code, please make sure your system meets the appropriate requirements.

Aspose.GIS Live Demos on C#

Try the features of our library to see new opportunities. Live demos in C#

Key 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