[Osmlib-user] osmexport question with translations
Jeff Haack
jeff at jsintl.org
Wed Aug 25 01:54:55 EDT 2010
Hi,
I'm no Ruby expert, but I've been playing around with osmexport for awhile
and trying to export various osm data to shapefiles. The biggest problem I
face is when I want to export the names of objects in a language different
from that with the tag "name", because no matter what I do the colon in
"name:en" doesn't work in Ruby.
ways do
if highway
:road << {:Type => highway, :Name => name:en, :Surface => surface}
end
end
Of course this doesn't work. It looks like I should do something like:
ways do
if tags['name:en']
...
end
end
But I still don't understand how to get the value of the "name:en" tag into
the Name field. Help?
Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/osmlib-user/attachments/20100825/a422a735/attachment.html>
More information about the Osmlib-user
mailing list