Skip to content

Instantly share code, notes, and snippets.

@rbanick
Last active August 24, 2016 10:22
Show Gist options
  • Save rbanick/28182ac65e9cf36e0abcbb69898a5cfb to your computer and use it in GitHub Desktop.
Save rbanick/28182ac65e9cf36e0abcbb69898a5cfb to your computer and use it in GitHub Desktop.
extracting data manually from OMK server
# easy way
https://github.com/AmericanRedCross/OpenMapKitServer/blob/master/docs/api.md
and then
http://everygoodusernameistaken.tumblr.com/post/52805666711/exporting-openstreetmap-roads-to-shapefile
# longer way
## tar the folder
tar -cvf osm_may24.tar *
## scp it down
scp geosolutions@198.50.229.88:/opt/omk/OpenMapKitServer/data/submissions/osm_may24.tar .
## older methods
## find and move all .osm files to the main submissions folder
## run this in the ao_data_assessment folder
sudo find ./ -name '*.osm' -exec cp {} . \;
## copy them to a new osm_may24 folder
## have to put things in a -c ' ' b/c the sudo blocsk the do
sudo sh -c 'for f in *.osm; do mv "$f" ./osm_may24; done'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment