Convert GML to SVG

Turn GML files into SVG. A picture of the map as SVG, 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 SVG.Polygons, lines and points are drawn on white, each layer in its own color.

  1. What you get

    One SVG picture of the map, 1024 pixels wide unless that would make it taller than 4096. 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.

  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, so very fine detail in a shape is not kept.

  3. What is left out

    Attributes and labels are not drawn, so the picture shows shapes only. The styles stored in the GML file are not used, and no base map is added behind the features.

    If you want a smaller SVG afterward, you can compress SVG.

GML and SVG.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 · SVG

SVG

Scalable vector graphics in XML. Logos, icons and diagrams that stay sharp at any size.

Extensions
.svg .svgz
MIME type
image/svg+xml
Kind
Images

In your code.The same GML to SVG conversion through the API, for your app or your agent.

terminal
$ cv convert report.gml report.svg
$ cv convert report.gml report.svg

Questions.What people ask about GML to SVG.

01OF 04

No. Only the features from the GML file are drawn, on a white background.

No. Attributes and labels are not drawn.

Longitude and latitude are drawn in Web Mercator, as web maps show them. Other coordinates are drawn as they are.

No. The picture is 1024 pixels wide unless it would be taller than 4096, and each layer gets its own color.

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