fix radius-calculation, clockwise windingnumber and wp-init
This commit is contained in:
parent
144c0018de
commit
1fc6c9e62c
3 changed files with 36 additions and 38 deletions
|
|
@ -62,7 +62,7 @@ public class OsmNogoPolygonTest {
|
|||
double py = toOsmLat(lats[i]);
|
||||
double dpx = (toOsmLon(lons[i]) - p.ilon) * coslat(p.ilat);
|
||||
double dpy = py - p.ilat;
|
||||
double r1 = Math.sqrt(dpx * dpx + dpy * dpy);
|
||||
double r1 = Math.sqrt(dpx * dpx + dpy * dpy) * 0.000001;
|
||||
double diff = r-r1;
|
||||
assertTrue("i: "+i+" r("+r+") >= r1("+r1+")", diff >= 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue