diff options
Diffstat (limited to 'localosmfeature2geojson')
-rwxr-xr-x | localosmfeature2geojson | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/localosmfeature2geojson b/localosmfeature2geojson index 6ff317b..dfe35e5 100755 --- a/localosmfeature2geojson +++ b/localosmfeature2geojson @@ -1,7 +1,7 @@ #!/bin/sh # # Copyright © 2014 Jonas Smedegaard <dr@jones.dk> -# Description: Tidy GeoJSON e.g. from <http://tyrasd.github.io/osmtogeojson/> +# Description: resolve GeoJSON from OSM way or relation. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -27,7 +27,7 @@ onlineosmxml2geojson() { echo '[' first=yes for feature in "$@"; do - url="http://www.openstreetmap.org/api/0.6/relation/$feature/full" + url="http://www.openstreetmap.org/api/0.6/$feature/full" [ -n "$first" ] || echo ',' ogr2ogr --config OSM_USE_CUSTOM_INDEXING NO -f GeoJSON /vsistdout/ /vsicurl_streaming/"$url" multilinestrings first= |