diff options
| -rw-r--r-- | utils/osm | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -61,8 +61,13 @@ osm.in_ways() { | |||
| 61 | echo ways contain node $1 are copied into /tmp/osm > /dev/tty | 61 | echo ways contain node $1 are copied into /tmp/osm > /dev/tty |
| 62 | } | 62 | } |
| 63 | osm.extract() { | 63 | osm.extract() { |
| 64 | |||
| 64 | } | 65 | } |
| 65 | osm.extract.tags() { | 66 | osm.extract.tags() { |
| 67 | /<(node|way|relation)/,/<\/(node|way|relation)/ { | ||
| 68 | /<tag k="name"/ h | ||
| 69 | /<\/(node|way|relation)/ {x;p;s/.*//;x} | ||
| 70 | } | ||
| 66 | } | 71 | } |
| 67 | # extract an element from .osm format STDIN | 72 | # extract an element from .osm format STDIN |
| 68 | # $1 as [node|way|relation], $2 as id | 73 | # $1 as [node|way|relation], $2 as id |