Convert OSM to SHP

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

Map data as shapefiles in one zip.Points, lines and polygons each get their own shapefile, with tags as columns.

  1. What you get

    A zip with one shapefile for each kind of geometry found: points, lines and polygons. Each shapefile has its .shp, .shx, .dbf, .prj and .cpg parts. The coordinate system of the source is kept, and the attributes are written as UTF-8 columns.

    Tagged nodes become points. Ways become lines, or polygons when they are closed and tagged as areas. Route relations become multilines, and multipolygon relations become multipolygons.

  2. How tags become columns

    Common tags such as name, highway and building get their own columns. All other tags are kept as JSON text in other_tags.

    Column names are cut to 10 characters. Lists and nested values become JSON text.

    If the file has several layers, they are joined into one, and a layer column names where each feature came from.

  3. What is left out

    Features without a geometry are left out. Untagged nodes, other kinds of relations, versions and authors are dropped.

    For other formats, see every OSM conversion. For more on the target, see every SHP conversion.

OSM and SHP.What each format is.

The formats

From · OSM

OpenStreetMap Data

OpenStreetMap nodes, ways and relations with their tags, as .osm XML or the smaller .osm.pbf.

Extensions
.osm .osm.pbf
MIME type
application/vnd.openstreetmap.data+xml
Kind
Text and data
To · SHP

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 OSM to SHP conversion through the API, for your app or your agent.

terminal
$ cv convert report.osm report.shp.zip
$ cv convert report.osm report.shp.zip

Questions.What people ask about OSM to SHP.

01OF 04

Tagged nodes become points and ways become lines or polygons. Route and multipolygon relations become multilines and multipolygons.

Common tags such as name, highway and building have their own columns. The rest are kept as JSON in other_tags.

Column names are cut to 10 characters. Lists and nested values become JSON text.

You get one zip. It holds one shapefile for each kind of geometry among points, lines and polygons.

More conversions.Other ways in and out of OSM and SHP.