[OSM-dev] XML Error in: http://dev.openstreetmap.org/~ojw/api/?/map/15/17133/11292
Hugh Barnes
list.osm at hughbris.com
Fri Sep 12 12:48:25 BST 2008
On Friday 12 September 2008 16:23:37 Sven Anders wrote:
> Hi,
> i use some parts of pyrender to do some data mining (I want to find the
> streetname, city and postal_code near an house number) with the "Karlsruher
> Schema" (
> http://wiki.openstreetmap.org/index.php/Proposed_features/House_numbers/Kar
>lsruhe_Schema )
>
> I found an error.
>
> When the tool is downloading the tile:
> http://dev.openstreetmap.org/~ojw/api/?/map/15/17133/11292
>
> The data are not XML, here is the part of it:
> ><?xml version='1.0' encoding='UTF-8'?>
> ><osm version='0.5' numways='9' generator='Tile data server'>
> ><way id='23811530'>
> > <nd id='257898587' x='1122334310' y='743902789' />
>
> ...
>
> > <nd id='257896361' x='1122006629' y='741438021' />
> > <nd i<way id='24258358'>
The "<" character is invalid here, and the way its surrounding characters are
placed. Not sure what should be there exactly, but the markup will at least
be well-formed if you pull out the "i<way" text. It looks like it should
really have "x" and "y" attributes like the other <nd/> elements. You might
have lost a node.
> > <nd id='59653842' x='1122909695' y='740012132' />
> > <nd id='32029627' x='1122908324' y='740015537' />
>
> Can please someone fix that? Or tell me how to fix it?
>
That will make the XML you downloaded well-formed. Did you want that fixed or
the tool itself? I can't help with pyrender right now because of time and
because I've never looked at it. Consider filing a bug report if no-one
answers here.
Good luck.
More information about the dev
mailing list