Fix default nogo weight for polygons

This commit is contained in:
Phyks (Lucas Verney) 2019-05-08 22:51:07 +02:00
parent 1ea350cb04
commit c3a4b43085

View file

@ -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();