|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.palnet.comn.utils; |
|
|
|
package com.palnet.comn.utils; |
|
|
|
|
|
|
|
|
|
|
|
import java.io.BufferedReader; |
|
|
|
import java.io.BufferedReader; |
|
|
|
|
|
|
|
import java.io.File; |
|
|
|
import java.io.FileInputStream; |
|
|
|
import java.io.FileInputStream; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.InputStreamReader; |
|
|
|
import java.io.InputStreamReader; |
|
|
@ -156,21 +157,14 @@ public class FlightUtils { |
|
|
|
|
|
|
|
|
|
|
|
while(true) { |
|
|
|
while(true) { |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
File file = new File(path+baseFileName); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!file.exists()) return obj; |
|
|
|
|
|
|
|
|
|
|
|
obj = parseGeoJson(path+baseFileName, coordinate); |
|
|
|
obj = parseGeoJson(path+baseFileName, coordinate); |
|
|
|
|
|
|
|
|
|
|
|
path += obj.get("CD")+"\\"; |
|
|
|
path += obj.get("CD")+"\\"; |
|
|
|
|
|
|
|
|
|
|
|
System.out.println(obj.toString()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}catch(Exception e) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.error("error>>>> : {}" , e); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return obj; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -188,6 +182,7 @@ public class FlightUtils { |
|
|
|
Point point = geometryFactory.createPoint(coordinate); |
|
|
|
Point point = geometryFactory.createPoint(coordinate); |
|
|
|
String type = (String) jsonObject.get("type"); |
|
|
|
String type = (String) jsonObject.get("type"); |
|
|
|
Object airArea = jsonObject; |
|
|
|
Object airArea = jsonObject; |
|
|
|
|
|
|
|
|
|
|
|
List<JSONObject> features = (List<JSONObject>) jsonObject.get("features"); |
|
|
|
List<JSONObject> features = (List<JSONObject>) jsonObject.get("features"); |
|
|
|
|
|
|
|
|
|
|
|
fileInputStream.close(); |
|
|
|
fileInputStream.close(); |
|
|
|