Convert GPKG to GML

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

GeoPackage layers as one GML file.The output is a GML 3.2 document with one feature type. It keeps the source's coordinate system.

  1. What you get

    One GML file that holds the features and their attributes under a single feature type. The coordinates stay in the coordinate system of the GPKG, so nothing is reprojected.

    No separate schema file is written. The document stands on its own.

  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, so they are kept as text in the attribute and not as GML structures.

    A GPKG can hold several layers. They are joined into one, and a layer column names the layer each feature came from.

  3. Going the other way

    To turn GML back into a GeoPackage, use GML to GPKG. For other conversions from this format, see every GPKG conversion.

GPKG and GML.What each format is.

The formats

From · GPKG

GeoPackage

The OGC GeoPackage, a SQLite database of map layers that QGIS and ArcGIS read and write.

Extensions
.gpkg
MIME type
application/geopackage+sqlite3
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 GPKG to GML conversion through the API, for your app or your agent.

terminal
$ cv convert report.gpkg report.gml
$ cv convert report.gpkg report.gml

Questions.What people ask about GPKG to GML.

01OF 04

Yes. The features stay in the coordinate system of the source GPKG.

The layers are joined into one feature type. A layer column tells you which layer each feature came from.

No. The output is one file, without a separate schema file.

When some features have heights and others do not, the ones without get a height of 0.

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