You can find detailed information at: Render Map to BMP Format using C#
Last active
November 5, 2021 18:55
-
-
Save aspose-com-gists/feecc1fed3bf6a385dacf6b4ed0011fb to your computer and use it in GitHub Desktop.
Render Map to BMP Format using C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_out2.bmp", Renderers.Bmp); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (var map = new Map(800, 400)) | |
{ | |
map.Add(VectorLayer.Open(dataDir + "land.shp", Drivers.Shapefile)); | |
map.Render(dataDir + "land_out.bmp", Renderers.Bmp); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (var map = new Map(800, 400)) | |
{ | |
map.Add(VectorLayer.Open(dataDir + "land.shp", Drivers.Shapefile)); | |
map.SpatialReferenceSystem = SpatialReferenceSystem.CreateFromEpsg(54024); // World Bonne | |
map.Render(dataDir + "land_out2.bmp", Renderers.Bmp); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment