Posted By

mvexel on 10/19/11


Tagged

Shell openstreetmap osmosis


Versions (?)

osmosis thematic planet update script


 / Published in: Bash
 

  1. #!/bin/bash
  2. exec &> /home/mvexel/osm/replicate-gnis/log.txt
  3. if ps -ef | grep -v grep | grep osmosis ; then
  4. exit 0
  5. else
  6. if [ -s /home/mvexel/osm/replicate-gnis/us-gnis-new.pbf ];
  7. then
  8. mv /home/mvexel/osm/replicate-gnis/us-gnis-new.pbf /home/mvexel/osm/replicate-gnis/us-gnis.pbf
  9. echo "gnis file recycled"
  10. fi
  11. /home/mvexel/osm/osmosis-0.39/bin/osmosis --rri workingDirectory=/home/mvexel/osm/replicate-gnis/ --simc --rb /home/mvexel/osm/replicate-gnis/us-gnis.pbf --ac --tf accept-nodes gnis:id=* --tf accept-ways gnis:id=* --tf reject-relations --wb /home/mvexel/osm/replicate-gnis/us-gnis-new.pbf
  12. /home/mvexel/osm/osmosis-0.39/bin/osmosis --rb /home/mvexel/osm/replicate-gnis/us-gnis-new.pbf --rb /home/mvexel/osm/replicate-gnis/us-gnis.pbf --dc --wpc database=osm_gnis user=osm password=osm
  13. fi

Report this snippet  

You need to login to post a comment.