Created
August 4, 2012 13:32
-
-
Save mvexel/3257796 to your computer and use it in GitHub Desktop.
script used to periodically update data for http://lima.schaaltreinen.nl/redaction/#
This file contains hidden or 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
#!/bin/sh | |
cd /osm/planet/us/uptodate/ | |
mv us-new.o5m us.o5m | |
mv redaction-ways-new.o5m redaction-ways.o5m | |
/osm/software/osmupdate us.o5m us-new.o5m -t=tmp/ --planet-url=http://planet.openstreetmap.org/redaction-period/ -B=/osm/poly/us/us.poly | |
/osm/software/osmfilter us-new.o5m --keep-ways="@uid=722137" --keep-nodes= --keep-relations= -o=redaction-ways-new.o5m | |
/osm/software/osmconvert redaction-ways.o5m redaction-ways-new.o5m --diff --fake-lonlat -o=redaction-ways-change.osc | |
/osm/software/osmosis-latest/bin/osmosis --rxc redaction-ways-change.osc --wpc database=redaction user=osm password=osm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment