[OSM-dev] Error in overpass api
Roland Olbricht
roland.olbricht at gmx.de
Fri Oct 21 20:29:05 BST 2011
> i've found an error in the result of overpass queries. E.g.
>
> <relation id="1645727" version="2" timestamp="2011-07-05T19:58:33Z"
> changeset="8642384" uid="244422" user="Sonny76"> <member type="way"
> ref="119868575" role="<different>"/>
>
> the role value contains '<' and '>' which must be '<' and '>'
Thank you for reporting this. I've just fixed it on the instance on
www.overpass-api.de.
For those who want to fix their instance:
change line 297 of src/overpass_api/statements/print.cc to
<<"\" role=\""<<escape_xml(roles[skel.members[i].role])<<"\"/>\n";
Otherwise, the fix will be included in the next regular update.
Best regards,
Roland
More information about the dev
mailing list