Convert KML to GML

Turn KML files into GML. A GML 3.2 document with one feature type holding the features and their attributes, in the source's coordinate system and without a separate schema file.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

Map features as one GML 3.2 file.Your KML features and their attributes, in the source's coordinate system.

  1. What you get

    One GML 3.2 document. It holds a single feature type with all the features and their attributes. No separate schema file is written.

    The coordinates stay in the coordinate system of the source, so nothing is reprojected.

  2. What changes

    When some features have heights and others do not, the ones without get a height of 0. Lists and nested values become JSON text.

    If the KML has several layers, they are joined into one feature type. A layer column names the layer each feature came from.

  3. Going the other way

    To turn GML back into KML, use GML to KML. For other KML formats, see every KML conversion.

KML and GML.What each format is.

The formats

From · KML

KML

Placemarks, paths and polygons for Google Earth.

Extensions
.kml
MIME type
application/vnd.google-earth.kml+xml
Kind
Text and data
To · 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

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

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

Questions.What people ask about KML to GML.

01OF 04

No. The output is one GML 3.2 file and no separate schema file is written.

The layers are joined into one. A layer column names where each feature came from.

Yes, when some features have heights and others do not. The ones without get a height of 0.

No. They stay in the source's coordinate system.

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