From 6c815d383cba75225afdd76a35cdf7ab10696b7d Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 27 Feb 2014 16:01:51 +0100 Subject: Fix exclude hardcoded feature type, and hint about it in description. --- localosmfeature2geojson | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'localosmfeature2geojson') diff --git a/localosmfeature2geojson b/localosmfeature2geojson index 6ff317b..dfe35e5 100755 --- a/localosmfeature2geojson +++ b/localosmfeature2geojson @@ -1,7 +1,7 @@ #!/bin/sh # # Copyright © 2014 Jonas Smedegaard -# Description: Tidy GeoJSON e.g. from +# 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= -- cgit v1.2.3