Convert GML to KML

Turn GML files into KML. A KML document in WGS 84 with each feature as a placemark and its attributes as extended data.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop GML files on the dialor turn it to pick what to do

Map features that open in Google Earth.Each feature becomes a placemark in a WGS 84 KML file.

  1. What you get

    One KML document in WGS 84. Each feature from the GML becomes a placemark, and its attributes are kept as extended data on that placemark.

    The result is a single file.

  2. What changes or is left out

    Features without a geometry are left out, because a placemark needs a place to sit.

    Coordinates in another system, such as Korea's EPSG:5186, are converted to WGS 84. If the data names no system, it is taken as WGS 84 when its coordinates fit. When they do not fit, the conversion stops with unsupported_elements.

  3. Several layers

    When the GML holds several layers, they are joined into one KML. A layer column names the layer each feature came from, so you can still tell them apart.

    To go the other way, use KML to GML.

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

KML

Placemarks, paths and polygons for Google Earth.

Extensions
.kml
MIME type
application/vnd.google-earth.kml+xml
Kind
Text and data

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

terminal
$ cv convert report.gml report.kml
$ cv convert report.gml report.kml

Questions.What people ask about GML to KML.

01OF 04

Yes. They are kept as extended data on the placemark.

They are converted to WGS 84. Other coordinate systems that the GML names are converted the same way.

The GML names no coordinate system, and its coordinates do not fit WGS 84. Without a system to read them in, the conversion stops.

No. They are left out of the KML.

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