Convert GML to PNG

Turn GML 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 GML files on the dialor turn it to pick what to do

A picture of your map as PNG.Shapes drawn on white, each layer in its own color.

  1. What you get

    A PNG picture of the map, 1024 pixels wide on a white background. If that would make it taller than 4096 pixels, the width is reduced to fit. The conversion gives one file.

    Polygons are lightly filled and outlined. Lines are drawn as lines, and points are drawn as dots. Each layer gets its own color.

  2. How coordinates are drawn

    Longitude and latitude are drawn in Web Mercator, as web maps show them. Other coordinates are drawn as they are. Shapes are simplified to half a pixel.

  3. What is not drawn

    Attributes and labels do not appear, so the picture shows shapes only. The styles stored in the GML file are not used, and there is no base map under the shapes.

    If you need to change the size of the picture afterward, try resize PNG.

GML and PNG.What each format is.

The formats

From · GML

GML

Geography Markup Language, the OGC's XML for map features, as WFS services send it.

Extensions
.gml
MIME type
application/gml+xml
Kind
Text and data
To · PNG

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 GML to PNG conversion through the API, for your app or your agent.

terminal
$ cv convert report.gml report.png
$ cv convert report.gml report.png

Questions.What people ask about GML to PNG.

01OF 04

It is 1024 pixels wide. If that would make the picture taller than 4096 pixels, the width is reduced.

No. The shapes are drawn on white, with no base map under them.

No. Attributes and labels are not drawn. Only the shapes appear.

No. The styles in the file are not used. Each layer is drawn in its own color.

More conversions.Other ways in and out of GML and PNG.