[OSM-talk] And the prize for the largest closed way goes to...
Anthony
osm at inbox.org
Thu Dec 10 15:24:39 GMT 2009
2009/12/10 Dirk-Lüder Kreie <osm-list at deelkar.net>
> Anthony schrieb:
> > That does it, I'm making a way with name=Northern Hemisphere. Or would
> > that be name=equator. Doesn't work, does it?
>
> No, you can't put in the equator as a *closed* way, since the API
> doesn't allow the way to wrap around on lon+-180°.
>
How does the API determine whether or not a way is closed? I thought the
API just spat out an ordered list of nodes without interpreting any
connections between them. Even the bounding box algorithms ignore ways.
Isn't it up to the software at the other end of the API to interpret a way
which goes from -179 degrees to +179 degrees along the equator? I assumed
(I guess incorrectly), that most software would interpret that as the
shortest possible line - a line with a length of 2 degrees, not a line with
a length of 358 degrees.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20091210/50ae5bfe/attachment-0001.html>
More information about the talk
mailing list