Convert GML to PARQUET

Turn GML files into PARQUET. A GeoParquet file with one row for each feature: its shape as WKB in a geom column that GeoParquet metadata describes with its geometry types, bounding box and coordinate system, then every attribute as a column, with lists and nested values kept as Parquet lists and structs.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

GML features as a GeoParquet file.One row per feature, with its shape and every attribute as columns.

  1. What you get

    A GeoParquet file with one row for each feature in the GML. The shape of each feature is stored as WKB in a geom column. GeoParquet metadata describes that column with its geometry types, bounding box and coordinate system.

    Every attribute becomes its own column. Lists and nested values are kept as Parquet lists and structs, so they are not flattened into text.

  2. Coordinate systems

    The coordinate system of the source is kept. If the GML names none, the data is taken as WGS 84 when its coordinates fit. When they do not fit, the conversion stops with unsupported_elements.

  3. Several layers

    A GML file with several layers produces one file. The layers are joined into a single table, and a layer column names the layer each feature came from.

    To combine the results of several conversions, you can merge PARQUET files. For other routes from GML, see every GML conversion.

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

Parquet

The columnar data format of analytics. Compressed, typed and fast to scan.

Extensions
.parquet .pq
MIME type
application/vnd.apache.parquet
Kind
Text and data

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

terminal
$ cv convert report.gml report.parquet
$ cv convert report.gml report.parquet

Questions.What people ask about GML to PARQUET.

01OF 04

Yes. Each shape is stored as WKB in the geom column. The metadata lists the geometry types, the bounding box and the coordinate system.

It is kept from the source. If the source names none, WGS 84 is assumed when the coordinates fit it.

The GML names no coordinate system, and its coordinates do not fit WGS 84. The conversion stops instead of guessing.

All layers go into one file. The layer column tells you which layer each feature came from.

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