[OSM-dev] api 0.5 and ways

Steve Coast steve at asklater.com
Fri Oct 12 11:49:26 BST 2007


On 11 Oct 2007, at 15:36, Frederik Ramm wrote:

> Hi,
>
>     as far as I know, the API will reject none of the ways you have
> sketched. It does not look at the ids of the nodes referenced,

It doesn't reject ways which try to use deleted nodes?


> and
> surely doesn't look at the coordinates of the nodes. The following
> are perfectly legal ways for the API:
>
>> {x,y,z,w} when lat/lon of y is the same of lat/lon of z
>> {x,y,z,x,w}
>> {x,y,z,w,j} when lat/lon of w is the same of lat/lon of x
>> {x,y,z,w} when segment from z to w intersects the segment from x to y
>> {x,y,y,z}
>
> A way having only one node should probably be rejected (I don't think
> this is currently the case?), and the API might perhaps also complain
> about the {x,y,y,z} type.
>
>> Should/Must editors/converters avoid them?
>
> Editors should help users to create meaningful and usable data, so
> they should try and avoid any cases where the resulting data makes no
> sense. I believe the validator plugn for JOSM will already detect
> multiple nodes at the exact same position, and intersecting ways
> (don't know about self-intersecting though).
>
> Bye
> Frederik
>
> --  
> Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00.09' E008° 
> 23.33'
>
>
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
>

have fun,

SteveC | steve at asklater.com | http://www.asklater.com/steve/






More information about the dev mailing list