osmosis thematic planet update script


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.