English

Data Visualization API for .NET

API for .NET to process GIS Data

Visualization with .NET

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

Overview

The Data Visualization API for .NET is a fully managed service created by and for .NET developers to quickly and easily work with GIS Data using the GIS library for .NET to:

  • Create a map for vector and raster formats of geospatial data with access to a wide range of symbols for complex visualizations;
  • Build cross-platform applications with the .NET Framework and .NET Core API. Build a desktop or mobile mapping or spatial analysis application with mapping, geocoding, routing, and processing capabilities;
  • Export GIS data to vector or raster file formats.
Aspose.GIS for .NET is a powerful on-premises library for GIS processing. Expand and modify the functionality of the application, for example:
  • Combine several layers on one map image.
  • Apply styles for points, lines, and surfaces.
  • Import styles in SLD format.
  • Draw labels and text. Apply styles for text and auto-detect places on a map.
  • Draw labels along curved lines.
  • Draw clustered points.
All this and more without relying on third-party applications. Start to write your own applications using our code samples with descriptions and free or paid support.


What is Data Visualization?

Data visualization is the visual representation of basic data information.
Geospatial data is data on objects, events, or phenomena located on the earth’s surface. It includes information of the location (coordinates mostly), the attributes (characteristics), and some of the temporals (the time of existence, the location, and attributes). Geospatial data has no inherent visual content. To visualize your data, you must first set the style. The style defines the visible attributes such as color, shape, position, size, value, texture, and orientation to display the data on the map. Importing styles from SLD (Styled Layer Descriptor) with our API for .NET is available.

The data is the foundation. The most understandable representation of data is visualization, as humans are basically visual creatures. Data visualization allows you to get a clear and understandable analysis of the data so people from various industries who lack specific knowledge of GIS will be able to understand data by visualizing the data and making decisions based on it.

No data analysis is complete without visual support. Our API allows you to create .NET based map visualizations without writing .NET yourself. Make geospatial data accessible to everyone.


Why Aspose.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, maps, and data visualization, you need an Aspose.GIS product.
Some of our 21,000+ customers around the world have shared their success stories already.

Supported formats

  • Shapefile;
  • GeoJSON;
  • FileGDB;
  • GML;
  • KML;
  • SVG;
  • PostGis, Sql Server;
  • GeoTIFF;
And more. Full list of Supported File Formats.

Customizing render styles and features
Input file
Upload a file you want to convert
                
                    
using (var map = new Map(800, 476))
{
    var baseMapSymbolizer = new SimpleFill { FillColor = Color.Salmon, StrokeWidth = 0.75 };
    map.Add(VectorLayer.Open(dataDir + "basemap.shp", Drivers.Shapefile), baseMapSymbolizer);

    var citiesSymbolizer = new SimpleMarker() { FillColor = Color.LightBlue };
    citiesSymbolizer.FeatureBasedConfiguration = (feature, symbolizer) =>
    {
        var population = feature.GetValue<int>("population");
        symbolizer.Size = 10 * population / 1000;
        if (population < 2500)
        {
            symbolizer.FillColor = Color.GreenYellow;
        }
    };
    map.Add(VectorLayer.Open(dataDir + "points.geojson", Drivers.GeoJson), citiesSymbolizer);

    map.Render(dataDir + "cities_out.svg", Renderers.Svg);
                
            
Customizing render styles and features
Rendering a map from raster formats
                
                    
string filesPath = RunExamples.GetDataDir();
            
using (var map = new Map(500, 500))
{
    var layer = Drivers.GeoTiff.OpenLayer(Path.Combine(filesPath, "raster_float32.tif"));
    // Conversion to colors is detected automatically.
    // The maximum and minimum values are calculated and linear interpolation is used.
    map.Add(layer);
    map.Render(filesPath + "raster_float32_out.svg", Renderers.Svg);
}
                
            
Rendering a map from raster formats
Using polar spatial references when rendering a map
                
                    
string filesPath = RunExamples.GetDataDir();

// make own multi colorizer it works faster than auto-detection
var colorizer = new MultiBandColor()
{
    RedBand = new BandColor() { BandIndex = 0, Min = 0, Max = 255 },
    GreenBand = new BandColor() { BandIndex = 1, Min = 0, Max = 255 },
    BlueBand = new BandColor() { BandIndex = 2, Min = 0, Max = 255 }
};

using (var map = new Map(500, 500))
{
    // setup the polar extent and coordinate system (gnomonic spatial reference)
    map.SpatialReferenceSystem = SpatialReferenceSystem.CreateFromEpsg(102034);
    map.Extent = new Extent(-180, 60, 180, 90) { SpatialReferenceSystem = SpatialReferenceSystem.Wgs84 };
    map.BackgroundColor = Color.Azure;

    // open geo-tiff
    var layer = Drivers.GeoTiff.OpenLayer(Path.Combine(filesPath, "raster_countries.tif"));

    // draw
    map.Add(layer, colorizer);
    map.Render(filesPath + "raster_countries_gnomonic_out.png", Renderers.Png);
}
                
            
Using polar spatial references when rendering a map

C# Viewer library

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

  • Install Package Aspose.GIS from Package Manager Console in Visual Studio to get the NuGet package.
  • Or you can download package from our site;
  • Update Package Aspose.GIS. to upgrade to the latest version.
  • See Documentation.

System Requirements

Data Visualization API for .NET is supported on most platforms and operating systems and it can be used to develop several different types of .NET apps including ASP .NET, WinForms and Windows Services. API for .NET is easy to use and deploy, and provides the ideal solution to work with geospatial information with .NET Framework 4.7, .NET Standard 2.0 & Xamarin platforms. Before running the code, please make sure your system meets the appropriate requirements.

Aspose.Viewer Live Demos on C#

Interact with powerful and simple-to-use app samples in C#. Try out our data tools. Live demos in C#

Key Features

Combine several layers on one map image.

Apply styles for points, lines, and surfaces.

Import styles from SLD format.

Draw labels and text. Apply styles for text and auto detect places on a map.

Draw clustered points.

Save a created map in SVG, PNG, BMP, or JPEG.

Manage the spatial reference system for your map.

Draw labels along curved lines.

Use advanced rendering: Combine Symbolizers, Geometry Generator, Mixed Geometry.