diff options
author | typebrook <typebrook@gmail.com> | 2019-11-07 09:50:22 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-11-07 09:50:22 +0800 |
commit | 0ba11c1e8817398ca52efce26c0cdd904f75b183 (patch) | |
tree | e23d0886924516a53423adab2ddd3192017c0109 | |
parent | efb9c0795a4d1630c7809795f445011ecd379c91 (diff) |
update
-rw-r--r-- | alias | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -256,8 +256,3 @@ osm.pbf.update() { | |||
256 | xargs -I {} curl -o diff.osc.gz http://download.geofabrik.de/asia/taiwan-updates/000/'{}'.osc.gz && \ | 256 | xargs -I {} curl -o diff.osc.gz http://download.geofabrik.de/asia/taiwan-updates/000/'{}'.osc.gz && \ |
257 | osmium apply-changes $1 diff.osc.gz --output output.osm.pbf --output-header=osmosis_replication_sequence_number=2422 --overwrite | 257 | osmium apply-changes $1 diff.osc.gz --output output.osm.pbf --output-header=osmosis_replication_sequence_number=2422 --overwrite |
258 | } | 258 | } |
259 | |||
260 | # misc | ||
261 | length() { | ||
262 | ogr2ogr -sql "SELECT geom.length() FROM $1" $1.geojson | ||
263 | } | ||