This file contains 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
USER=username | |
PASS=password | |
ACC=account | |
REPO=repo | |
# Delete default labels | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$ACC/$REPO/labels/bug" | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$ACC/$REPO/labels/duplicate" | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$ACC/$REPO/labels/enhancement" | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$ACC/$REPO/labels/invalid" |
This file contains 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
echo "enter url" | |
read url | |
wget --output-document=temp.osm.pbf $url | |
osm2pgsql --slim -C 7500 --number-processes 8 temp.osm.pbf | |
touch /var/lib/mod_tile/planet-import-complete | |
rm temp.osm.pbf | |
/etc/init.d/renderd restart |
This file contains 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
apt-get update | |
apt-get install software-properties-common | |
add-apt-repository ppa:kakrueger/openstreetmap | |
apt-get update | |
apt-get install libapache2-mod-tile | |
wget http://download.geofabrik.de/europe/great-britain/england/west-sussex-latest.osm.pbf | |
osm2pgsql --slim -C 7500 --number-processes 8 west-sussex-latest.osm.pbf | |
touch /var/lib/mod_tile/planet-import-complete | |
/etc/init.d/renderd restart |
This file contains 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
// select one or multiple things and ctrl+E to retag them | |
var context = id; | |
var addTags = { highway: 'residential'}; // change this as needed | |
//var removeTags = ['area','natural','landuse']; | |
function changeTags() { | |
if (iD.d3.event) { iD.d3.event.preventDefault(); } | |
var actions = [], |