Fix default nogo weight for polygons
This commit is contained in:
parent
1ea350cb04
commit
c3a4b43085
1 changed files with 5 additions and 1 deletions
|
@ -280,9 +280,13 @@ public class ServerHandler extends RequestHandler {
|
|||
int lat = (int)( ( Double.parseDouble(slat) + 90. ) *1000000. + 0.5);
|
||||
polygon.addVertex(lon, lat);
|
||||
}
|
||||
|
||||
String nogoWeight = "NaN";
|
||||
if (j < lonLatList.length) {
|
||||
polygon.nogoWeight = Double.parseDouble( lonLatList[j] );
|
||||
nogoWeight = lonLatList[j];
|
||||
}
|
||||
polygon.nogoWeight = Double.parseDouble( nogoWeight );
|
||||
|
||||
if ( polygon.points.size() > 0 )
|
||||
{
|
||||
polygon.calcBoundingCircle();
|
||||
|
|
Loading…
Reference in a new issue