I was using the OSMLib osmexport function to produce KML maps of ski areas, when I discovered a problem. The oxr style file doesn't like tags with a semicolon in it it seems and it won't take the tag like this either: 'piste:downhill' My style file is at: http://www.skimap.org/files/kml-openskimap.oxr And sample data at: http://www.skimap.org/data/28/osm/xml/2011-01-31.osm Any suggestions? Thanks!
This question is marked "community wiki".
|
If the tag key is not a valid Ruby word, i.e. if it contains other characters than alpahnumerics and the underscore, you‘ll have to use the following syntax:
This is copy paste from osmlib rules documentation for exports, I use Osmium (also from Jochen) so I can't really tell you if you are doing stuff the right way, for the record osmium isn't at all suited for what you want to do. answered 01 Feb '11, 08:30 emj But what if I want to select ways where piste:type=downhill? Your syntax only checks for the existence of the key, not the key value pair. Any idea how to do this?
(01 Feb '11, 23:11)
wbski
1
I would guess you would do "tags['piste:type'] == 'emjpipe'" and I believe you have to iterate ways on their own just change nodes to ways in that code.
(02 Feb '11, 09:27)
emj
|