Last active
July 18, 2016 04:08
-
-
Save jonahadkins/75cb437dbe6b5b4cbf31420b6b1b256f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://bboxfinder.com | |
- bbox = left,bottom,right,top | |
brew install osmosis (requires java dev kit) | |
osmosis --rx input.osm --bb left=-78.49152 top=38.07326 right=-78.48426 bottom=38.06788 clipIncompleteEntities=true --wx ouput.osm | |
<---old steps | |
1. http://overpass-turbo.eu/ | |
2. run this query | |
<osm-script output="json"> | |
<query type="way"> | |
<has-kv k="highway"/> | |
<bbox-query {{bbox}}/> | |
</query> | |
<print mode="body"/> | |
<recurse type="down"/> | |
<print mode="skeleton"/> | |
</osm-script> | |
3. export to geojson | |
4. open terminal and cd to a workspace | |
5. brew install gdal | |
6. ogr2ogr -f "GeoJSON" output.geojson input.geojson -clipsrc -78.49152 38.07326 -78.48426 38.06788 | |
7. npm install geojsontoosm -g | |
8. geojsontoosm output.geojson > output.osm~~ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment