[OSM-dev] Tag-key with "?" in planet but not in API
Jon Burgess
jburgess777 at googlemail.com
Tue Sep 15 20:25:08 BST 2009
On Tue, 2009-09-15 at 20:48 +0200, Martin Lesser wrote:
>
> *My* bunzip2'd planet-090909 does not show the bytes above (09 0d).
> Instead a seek(52447596001) followed by a read(278) shows exactly
> what I quoted before containing the 2 '?' [1]
>
> > But with the planet, your viewer seems to convert them for whatever
> reason to
> > question marks.
>
> I would not call `bzcat planet-090909.osm.bz2 | grep -A 4
> 'id="187690242"'` a
> viewer ;-)
>
> So the question remains what the reason for this transformation is and
> whether this is intentional.
I suspect the answer can be found at [1] where the planet dump utility
will convert any ASCII characters less than 32 in a key or value to a
'?'.
Jon
1: http://trac.openstreetmap.org/browser/applications/utils/planet.osm/C/output_osm.c#L69
More information about the dev
mailing list