[OSM-dev] usernames, keys, and values

Anthony osm at inbox.org
Wed Oct 28 15:22:05 GMT 2009


On Wed, Oct 28, 2009 at 10:21 AM, Frederik Ramm <frederik at remote.org> wrote:
> Hi,
>
> Anthony wrote:
>>
>> Just took a look at the planet dump code at
>> http://svn.openstreetmap.org/applications/utils/planet.osm/C/output_osm.c
>>
>> In xmlescape(): "} else if ((*in >= 0) && (*in < 32)) {
>> escape_tmp[len] = '?'; len++; } else {"
>
> The planet dump code decides what gets *out* (to the planet file), not what
> gets in (to the database) and neither what gets out over the API. If you
> want to look at code to answer your questions then you should look at the
> rails port (/sites/rails_port) which guards the API.

My real question was "how can I parse the planet dump file".  :)

I briefly skimmed through the rails_port, but not knowing ruby/rails I
didn't get very far.  I suppose if I care I'll make a few tests
through the dev server api.  But for now I'm content with adding "if
(buf[ptr]<32) { fail(buf, "unexpected character data"); }" to my dump
parser.

If someone decides that's a bug in the dump code, and not a feature,
please let us know here.




More information about the dev mailing list