[OSM-talk] And the prize for the largest closed way goes to...

Anthony osm at inbox.org
Fri Dec 11 17:54:21 GMT 2009


2009/12/11 Dirk-Lüder Kreie <osm-list at deelkar.net>

> Anthony schrieb:
>
>> 2009/12/10 Dirk-Lüder Kreie <osm-list at deelkar.net <mailto:
>> 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?
>>
>
> The "first" node is simply referenced a second time at the "end".


I know that's the standard, but what does that have to do with the API?
Looking at http://wiki.openstreetmap.org/index.php/OSM_Protocol_Version_0.6,
I don't see anything about this.  As far as the API is concerned a way
is
a way is a way.  There are no "closed ways" and "open ways".

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.
>>
>
> Yes, your assumption was wrong, the software does no wrapping around at the
> 180° Meridian. (currently)
>

When you say "the" software, is there a particular program you're talking
about, or are you just referring to all the editors/renderers you know of?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20091211/a7d4bf40/attachment.html>


More information about the talk mailing list