Created
December 26, 2011 03:13
-
-
Save nifgraup/1520467 to your computer and use it in GitHub Desktop.
statistics on lukr importing, year later.
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/bash | |
wget --timestamping http://download.geofabrik.de/osm/europe/iceland.osm.pbf | |
osmosis --read-pbf file=iceland.osm.pbf --way-key-value keyValueList=source.lukr --used-node --write-xml lukr.osm | |
osmosis --read-xml file=lukr.osm --way-key keyList=highway --used-node --write-xml lukrhighways.osm | |
xmllint --xpath '/osm/way/@user' lukrhighways.osm | grep -o user=\"[^\"]*\" > users.txt | |
echo "Skipting þeirra sem síðust breyttu lukr vegum:" | |
sort users.txt | uniq -c | sort -nr | |
echo "Fjöldi lukr vega sem búið er að staðfesta: `wc -l users.txt`" | |
echo "Heildarfjöldi allra lukr vega: `xmllint --xpath '/osm/way/@user' lukr.osm | grep -o 'user=\"[^\"]*\"' | wc -l `" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment