Skip to content

Instantly share code, notes, and snippets.

@mvexel
Created August 4, 2012 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvexel/3257796 to your computer and use it in GitHub Desktop.
Save mvexel/3257796 to your computer and use it in GitHub Desktop.
script used to periodically update data for http://lima.schaaltreinen.nl/redaction/#
#!/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