SHAPEFILE to PNG Converter

Use the Aspose.GIS for .NET library to implement the SHAPEFILE to PNG Converter.

Live Example

Aspose.GIS for .NET / C# presents you online free the “SHAPEFILE to PNG Converter” application, where you may to investigate the functionality and quality it works.

SHAPEFILE to PNG Converter App

Code sample - SHAPEFILE to PNG Converter

The following code snippet shows you how to implement SHAPEFILE to PNG Converter. The below code create an image map using a SHAPEFILE layer. Then we save the map to PNG format. If you specify a spatial reference system for the map, all loaded layers will be converted to it. The sample uses the specified style to draw lines. The library also has styles for points, lines, and surfaces.

// For complete examples and data files, please go to https://github.com/aspose-gis/Aspose.GIS-for-.NET
// Create a map
using (var map = new Map(800, 400))
{
// Use the specified SRS
map.SpatialReferenceSystem = SpatialReferenceSystem.Wgs84;
// Use the specified style to draw lines
// We also have styles for points, lines, and surfaces.
var symbolizer = new SimpleLine() {Width = Measurement.Pixels(2)};
// Open a layer and add to the map
map.Add(VectorLayer.Open("land.shp", Drivers.Shapefile), symbolizer);
// Render the map to Png format
map.Render("land_out.png", Renderers.Png);
}

This sample show general possibilities. Aspose.GIS for .NET has wide features to render maps.

Platform - .NET / C#

We supports Framework 4.7 or later under Windows, and .NET Core 2.0 or later under Windows or Linux