|
@@ -41,10 +41,10 @@ import java.nio.file.StandardCopyOption;
|
|
@ConfigurationProperties(prefix = "geoquery")
|
|
@ConfigurationProperties(prefix = "geoquery")
|
|
public class GeoQueryUtil {
|
|
public class GeoQueryUtil {
|
|
@Value("${geoquery.dataFilePath:/mnt/geoQuery/GeoJSON.json}")
|
|
@Value("${geoquery.dataFilePath:/mnt/geoQuery/GeoJSON.json}")
|
|
- private String dataFilePath="I:\\geoserver\\AreaCity-Query-Geometry\\GeoJSON-Polygon-ok_geo-240508-162233";
|
|
|
|
|
|
+ private String dataFilePath;
|
|
|
|
|
|
@Value("${geoquery.saveWkbsFilePath:/mnt/geoQuery/GeoJSON.wkbs}")
|
|
@Value("${geoquery.saveWkbsFilePath:/mnt/geoQuery/GeoJSON.wkbs}")
|
|
- private String saveWkbsFilePath="I:\\geoserver\\AreaCity-Query-Geometry\\GeoJSON.wkbs";
|
|
|
|
|
|
+ private String saveWkbsFilePath;
|
|
|
|
|
|
@PostConstruct
|
|
@PostConstruct
|
|
public void init() {
|
|
public void init() {
|
|
@@ -145,7 +145,7 @@ public class GeoQueryUtil {
|
|
public static void main(String[] args) throws Exception {
|
|
public static void main(String[] args) throws Exception {
|
|
GeoQueryUtil queryUtil = new GeoQueryUtil();
|
|
GeoQueryUtil queryUtil = new GeoQueryUtil();
|
|
queryUtil.init();
|
|
queryUtil.init();
|
|
- AreaCityQuery.QueryResult queryResult = queryUtil.queryPointInfo("113.541139,22.405310");
|
|
|
|
|
|
+ AreaCityQuery.QueryResult queryResult = queryUtil.queryPointInfo("120.885676,23.544815");
|
|
System.out.println(queryResult);
|
|
System.out.println(queryResult);
|
|
|
|
|
|
}
|
|
}
|