I'm surprised nobody has brought this up before :-) It's always been a limitation of the polygon task.<br><br>Osmosis uses the Java 2D libraries to do the polygon calculations. Please read the "Definition of insideness" in the following link which explains why you're seeing this issue.<br>
<a href="http://download.oracle.com/javase/6/docs/api/java/awt/Shape.html">http://download.oracle.com/javase/6/docs/api/java/awt/Shape.html</a><br><br>We have no way of changing the functionality of the inbuilt java libraries we're stuck with this one.<br>
<br>I wonder if we should even have points existing on both 0 and 180 longitudes in the database given that they're the same location. Perhaps a number of tools rely on it though.<br><br>Can you modify your polygon to extend to 181°? I don't think I've ever tried it, but it should work in theory.<br>
<br><div class="gmail_quote">On Tue, Jun 14, 2011 at 7:04 AM, WanMil <span dir="ltr"><<a href="mailto:wmgcnfg@web.de">wmgcnfg@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
today I tried to cut out the data of asia from a planet file using the attached asia.poly file.<br>
Osmosis is doing fine with the exception that the points at +180° longitude are missing.<br>
<br>
I created a little test osm file (180.osm) with one node at +180° and it's removed by the asia.poly polygon.<br>
<br>
This is a real problem because there are (a few) points which really lie on the +180° longitude, e.g. <a href="http://www.openstreetmap.org/browse/node/1113705746" target="_blank">http://www.openstreetmap.org/<u></u>browse/node/1113705746</a><br>
<br>
Without this node there are problems to calculate the multipolygon of the russian country. So there is a specific need for that.<br>
<br>
Can you change the osmosis behaviour so that +180° longitude is supported?<br><font color="#888888">
<br>
WanMil<br>
</font><br>_______________________________________________<br>
osmosis-dev mailing list<br>
<a href="mailto:osmosis-dev@openstreetmap.org">osmosis-dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/osmosis-dev" target="_blank">http://lists.openstreetmap.org/listinfo/osmosis-dev</a><br>
<br></blockquote></div><br>