There was an error while loading. Please reload this page.
sudo apt-get install osmosis
osmosis --read-pbf file="$pbfinfile" --bounding-polygon file="$polyfile" --write-pbf file="$pbfoutfile"
sudo apt-get install osmctools
osmconvert $pbfinfile -b=$minlon,$minlat,$maxlon,$maxlat --out-pbf -o=$pbfoutfile
osmconvert $pbfinfile -B=$polyfile --out-pbf -o=$pbfoutfile