Map Rendering to SVG, JPG, or PNG Image using C# | Shapefile GeoTIFF

Home   »   Map Rendering to SVG, JPG, or PNG Image using C# | Shapefile GeoTIFF

// Initialize Map class object.
using (var map = new Rendering.Map(500, 500))
{
    // Open the layer for reading using driver for the GeoTIFF or TIFF format.
    var layer = GeoTiff.OpenLayer("raster_float32.tif");
                
    // Conversion to colors is detected automatically.
    // The maximum and minimum values are calculated and linear interpolation is used.
    map.Add(layer);

    // Render map into a file.
    map.Render("raster_float32_out.svg", Renderers.Svg);
}

Leave a Reply

Your email address will not be published. Required fields are marked *