防经纬度为空
This commit is contained in:
+4
-1
@@ -1282,7 +1282,10 @@ public class WeiXinEvaluationController {
|
|||||||
Point point = new Point(Double.valueOf(ll[0]), Double.valueOf(ll[1]));
|
Point point = new Point(Double.valueOf(ll[0]), Double.valueOf(ll[1]));
|
||||||
points.add(point);
|
points.add(point);
|
||||||
}
|
}
|
||||||
Point point = new Point(district.getLng2()/10000000000.0, district.getLat2()/10000000000.0);
|
Point point = null;
|
||||||
|
if(district.getLng2()!=null){
|
||||||
|
point = new Point(district.getLng2()/10000000000.0, district.getLat2()/10000000000.0);
|
||||||
|
}
|
||||||
//boolean flag = InsidePolygon.aboutZone(point, points);
|
//boolean flag = InsidePolygon.aboutZone(point, points);
|
||||||
//boolean flag = InsidePolygon.isPtInPoly(point.getLon(), point.getLat(), points);
|
//boolean flag = InsidePolygon.isPtInPoly(point.getLon(), point.getLat(), points);
|
||||||
boolean flag = InsidePolygon2.checkIsInPolygon(point, points);
|
boolean flag = InsidePolygon2.checkIsInPolygon(point, points);
|
||||||
|
|||||||
Reference in New Issue
Block a user