VDS Technologies

 

OsmShaper

Overview

OsmShaper is a freely available command line tool for converting OpenStreetMap XML files to a set of shapefiles. OsmShaper extracts the following features from OSM files:

  • Buildings.shp - buildings
    ID - OSM identifier (string)
    NAME - the name of the feature (string)
    TYPE - the type of the feature (string)
  • Natural.shp - lakes, forests
    ID - OSM identifier  (string)
    NAME - the name of the feature (string)
    TYPE - the type of the feature (string)
  • Places.shp - cities, towns, villages and other populated places
    ID - OSM identifier (string)
    NAME - the name of the feature (string)
    TYPE - the type of the feature (string)
    POPULATION - population (integer)
  • Points.shp - points of interest
    ID - OSM identifier (string)
    NAME - the name of the feature (string)
    TYPE - the type of the feature (string)
  • Railways.shp - railroads
    ID - OSM identifier (string)
    NAME - the name of the feature (string)
    TYPE - the type of the feature (string)
  • Roads.shp - highways, streets
    ID - OSM identifier (string)
    NAME - the name of the feature (string)
    TYPE - the type of the feature (string)
    REF - primary road number (string)
    ONEWAY - specifies a oneway road (integer 1/0)
    BRIDGE - specifies a bridge (integer 1/0)
    MAXSPEED - speed limit (integer)
  • Waterways.shp - rivers
    ID - OSM identifier (string)
    NAME - the name of the feature (string)
    TYPE - the type of the feature (string)

Coordinate system: WGS 1984
Text encoding: UTF-8

Usage

OsmShaper accepts a path to the source OSM file and a path to the output directory where the shapefiles will be stored.

OsmShaper <file>.osm <output_path>

Example:

OsmShaper c:\mapdata\canada.osm c:\mapdata\shp

Limitations

The Shapefile format has a limitation on shapefile component file size. All component files of a shapefile (.shp, .shx, .dbf) are limited to 2 GB each.

Download

File:  OsmShaper.zip
Size: 1.6 MB

Download