Convert GML to SHP
Turn GML files into Shapefile. A zip of shapefiles, one for each kind of geometry among points, lines and polygons, each with its .shp, .shx, .dbf, .prj and .cpg, in the source's coordinate system with the attributes as UTF-8 columns.
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 in a zip of shapefiles.Points, lines and polygons each get their own shapefile, in the source's coordinate system.
What you get
One zip file. It holds a shapefile for each kind of geometry found among the points, lines and polygons in the GML. Each shapefile comes with its .shp, .shx, .dbf, .prj and .cpg parts.
The coordinates stay in the coordinate system of the source. The attributes are written as UTF-8 columns.
What changes
Column names are cut to 10 characters. Lists and nested values become JSON text in their column.
Features without a geometry are left out.
Several layers
When the GML has several layers, they are joined into one. A layer column names the layer each feature came from, so you can still tell them apart.
To go the other way, use SHP to GML.
GML and SHP.What each format is.
The formats
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
Shapefile
Esri shapefiles zipped with their .shx, .dbf and .cpg parts, the vector format GIS programs exchange.
- Extensions
- .shp.zip .shz .shp
- MIME type
- application
/x -shapefile +zip - Kind
- Text and data
In your code.The same GML to SHP conversion through the API, for your app or your agent.
$ cv convert report.gml report.shp.zip$ cv convert report.gml report.shp.zipQuestions.What people ask about GML to SHP.
You get one zip file. It holds a shapefile for each kind of geometry among points, lines and polygons, with the .shp, .shx, .dbf, .prj and .cpg parts of each.
No. The shapefiles stay in the coordinate system of the source.
They are cut to 10 characters.
They are left out of the shapefiles.