diff options
author | Jonas Smedegaard <dr@jones.dk> | 2014-02-27 16:01:51 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2014-02-27 16:01:51 +0100 |
commit | 6c815d383cba75225afdd76a35cdf7ab10696b7d (patch) | |
tree | 3a55cd226f8cb8ae12c1de5eb8949e4bb42dffa7 /localosmfeature2geojson | |
parent | f575c9d0633c2a1cae0accde3d539a0c2dff5b55 (diff) |
Fix exclude hardcoded feature type, and hint about it in description.
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= |