Created
June 20, 2017 13:33
-
-
Save kidwellj/0396e1bc8be8bd3a00bdd0ee4ee3a1ef to your computer and use it in GitHub Desktop.
Shell script to extract places of worship data from an OpenStreetMap binary pbf dump using osmium
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
# A shell scrip which extracts places of worship data from an OpenStreetMap binary pbf dump using osmium | |
# | |
# Requires https://github.com/osmcode/osmium-tool | |
# to install on MacOS: | |
# brew install libosmium | |
# git clone https://github.com/osmcode/osmium-tool.git | |
# cd osmium-tool | |
# make | |
# | |
# Example below uses a dump for California, USA, so make sure you substitute yourfilename.osh.pbf | |
# for california.osh.pbf and california_pow.osh.pbf below | |
# | |
# To get your own dumps, go to http://download.geofabrik.de | |
osmium tags-filter california.osh.pbf \ | |
building=church,cathedral,chapel,mosque,synagogue,temple \ | |
amenity=place_of_worship denomination=* religion=* name=*church* \ | |
-o california_pow.osh.pbf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment