Convert CSV to GML
Turn CSV 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 CSV files on the dialor turn it to pick what to do
Map features from a CSV table.Each row becomes a point or a shape in a GML 3.2 document.
What you get
One GML file in GML 3.2. It holds a single feature type with all the features and their attributes. No separate schema file comes with it.
Coordinates stay in the source's coordinate system. They are taken as WGS 84.
How rows become features
A row becomes a point when the table has longitude and latitude columns, such as lon and lat or x and y. A row becomes a shape when the table has a WKT column. The other columns become attributes of the feature.
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.
A table with no longitude and latitude columns and no WKT column fails with
unsupported_elements.
CSV and GML.What each format is.
The formats
CSV
Rows of comma-separated values. The plainest way to move a table between programs.
- Extensions
- .csv
- MIME type
- text
/csv - Kind
- Text and data
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 CSV to GML conversion through the API, for your app or your agent.
$ cv convert sheet.csv sheet.gml$ cv convert sheet.csv sheet.gmlQuestions.What people ask about CSV to GML.
It needs longitude and latitude columns, such as lon and lat or x and y. A WKT column also works, and it gives shapes instead of points.
The table has no longitude and latitude columns and no WKT column. The conversion stops with unsupported_elements in that case.
The GML keeps the source's coordinate system. The coordinates are taken as WGS 84.
They become attributes of each feature. Lists and nested values are written as JSON text.