Quickly extract a geographic feature from a region of OSM data. Supply a polygon and let osmosis extract all the data contained within it.
Install osmosis
apt-get install osmosis
Run the supplied script with region and feature parameters. e.g:
./osm_extract.sh central-america puerto-rico
this will output a file "extractions/puerto-rico.osm" that contains all the osm data for puerto rico.
Thanks ta geo-fabrick!
Don't see the feature you want? Here is a way to make your own:
- Open google earth and create a polygon
- export the coordinates in a kml
- slice the kml down to the coordinates and create an osmosis poly file
- open a pull request!