没有经纬度判断
This commit is contained in:
+10
-8
@@ -1285,15 +1285,17 @@ public class WeiXinEvaluationController {
|
|||||||
Point point = null;
|
Point point = null;
|
||||||
if(district.getLng2()!=null){
|
if(district.getLng2()!=null){
|
||||||
point = new Point(district.getLng2()/10000000000.0, district.getLat2()/10000000000.0);
|
point = new Point(district.getLng2()/10000000000.0, district.getLat2()/10000000000.0);
|
||||||
|
|
||||||
|
//boolean flag = InsidePolygon.aboutZone(point, points);
|
||||||
|
//boolean flag = InsidePolygon.isPtInPoly(point.getLon(), point.getLat(), points);
|
||||||
|
boolean flag = InsidePolygon2.checkIsInPolygon(point, points);
|
||||||
|
if(flag){
|
||||||
|
pbObj = pb;
|
||||||
|
System.out.println(district.getRegion()+" "+district.getName()+" "+pb.getName());
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//boolean flag = InsidePolygon.aboutZone(point, points);
|
|
||||||
//boolean flag = InsidePolygon.isPtInPoly(point.getLon(), point.getLat(), points);
|
|
||||||
boolean flag = InsidePolygon2.checkIsInPolygon(point, points);
|
|
||||||
if(flag){
|
|
||||||
pbObj = pb;
|
|
||||||
System.out.println(district.getRegion()+" "+district.getName()+" "+pb.getName());
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Integer yearAge = getBuildYear(district.getFinishBuildingDate());
|
Integer yearAge = getBuildYear(district.getFinishBuildingDate());
|
||||||
if(pbObj!=null){
|
if(pbObj!=null){
|
||||||
|
|||||||
@@ -111,9 +111,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="content-block">
|
<div class="content-block">
|
||||||
<p>
|
<p>
|
||||||
<#if districtStatBo?? && districtStatBo.districtStat??>
|
<a href="../weiXinEvaluation/form?id=${id}" class="button button-big button-fill evaluation_btn external">房产评估</a>
|
||||||
<a href="../weiXinEvaluation/form?id=${id}" class="button button-big button-fill evaluation_btn external">房产评估</a>
|
|
||||||
</#if>
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</#if>
|
</#if>
|
||||||
|
|||||||
Reference in New Issue
Block a user