[OSM-dev] Split osm line with perl
Maarten Deen
mdeen at xs4all.nl
Sun Nov 29 11:16:39 GMT 2009
Does anyone have an idea (or is there already a routine) how to split a line of
an osm file in its respective keys and values?
I've tried a few things, but I'm not fluent in perl. My problem at the moment is
that splitting a line on the space character seems logical, but you run into
problems if a value has a space in it.
So splitting something like <tag k="name" v="foo bar"/> will split the value
"foo bar" also.
Regards,
Maarten
More information about the dev
mailing list