Visualization with .NET
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:
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.
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.
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);
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);
}
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);
}
There are a simple way to install Aspose.GIS for .NET onto your system:
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.
Interact with powerful and simple-to-use app samples in C#. Try out our data tools. Live demos in C#
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.