Cleveland neighborhood map update – Extracting Cleveland OSM data

Quick update to the Cleveland Neighborhood map:

Last week, I figured out how to extract the Cleveland area that I use for the map from the osm data for Ohio.

Extracting a selected area from a larger source of OSM data is a task that happens more often for OSM users and there’s an application that does this – osmosis

Shown in the commands below, the area is selected by Lat/Long points.
bzcat /file/path/ohio.osm.bz2 | osmosis\
--read-xml enableDateParsing=no file=-\
--bounding-box top=41.6000 left=-81.85 bottom=41.4173 right=-81.5323 --write-xml file=-\
| bzip2 > extracted.osm.bz2

(Your top is the northern most point, left is western, bottom is south, and right is east).
First time around, I received an error stating the osmosis command couldn’t be found.. though I had chmod u+x osmosis.

So, I figured to add ./ infront of osmosis (as shown below)

bzcat /file/path/ohio.osm.bz2 | ./osmosis\
--read-xml enableDateParsing=no file=-\
--bounding-box top=41.6000 left=-81.85 bottom=41.4173 right=-81.5323 --write-xml file=-\
| bzip2 > extracted.osm.bz2
and voila, it worked, leaving me with the .OSM data to work with.

An updated version 4.1 is on the way, hopefully by tomorrow. 4.1 will include Hough and North Collinwood.

Advertisements
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s