Convert FGB to PNG
Turn FGB files into PNG. A picture of the map as PNG, 1024 pixels wide unless it would be taller than 4096, on white: polygons lightly filled and outlined, lines drawn and points as dots, each layer in its own color.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop FGB files on the dialor turn it to pick what to do
A picture of your map as PNG.Polygons, lines and points drawn on white, each layer in its own color.
What you get
One PNG that shows the map. It is 1024 pixels wide, unless that would make it taller than 4096, in which case the size is adjusted. The background is white.
Polygons are lightly filled and outlined. Lines are drawn as lines, and points are drawn as dots. Each layer gets its own color, so you can tell the layers apart.
How coordinates are drawn
When the file uses longitude and latitude, the map is drawn in Web Mercator, the way web maps show it. Coordinates in any other system are drawn as they are.
Shapes are simplified to half a pixel, so very fine detail below that size is not kept.
What is not drawn
Attributes and labels are not drawn, so the picture carries no names or values from the file. The styles stored in the file are not used, and there is no base map under the shapes.
If you need to change the size of the picture afterward, resize PNG does that.
FGB and PNG.What each format is.
The formats
FlatGeobuf
FlatGeobuf, a compact binary format for map features that streams over the web.
- Extensions
- .fgb
- MIME type
- application
/flatgeobuf - Kind
- Text and data
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - Kind
- Images
In your code.The same FGB to PNG conversion through the API, for your app or your agent.
$ cv convert report.fgb report.png$ cv convert report.fgb report.pngQuestions.What people ask about FGB to PNG.
It is 1024 pixels wide. If that would make it taller than 4096 pixels, it is not drawn at that width.
No. The shapes are drawn on a white background, with no base map under them.
No. Attributes and labels are not drawn, and neither are the styles stored in the FGB file.
Longitude and latitude are drawn in Web Mercator, as web maps show them. Other coordinates are drawn as they are.