liusuyi
2025-10-13 9f2c6b21bcfce0ddb912792b5431088d225cdc71
优化
2 files modified
4 ■■■■■ changed files
ard-work/src/main/java/com/ard/work/config/GeoserverConfig.java 1 ●●●●● patch | view | raw | blame | history
ard-work/src/main/java/com/ard/work/service/impl/GeoToolsServiceImpl.java 3 ●●●●● patch | view | raw | blame | history
ard-work/src/main/java/com/ard/work/config/GeoserverConfig.java
@@ -10,5 +10,4 @@
public class GeoserverConfig {
    private String deviceCoordinateType;
    private String tifPath;//用于仿地飞行的地形文件
}
ard-work/src/main/java/com/ard/work/service/impl/GeoToolsServiceImpl.java
@@ -29,6 +29,7 @@
    //坐标类型转换
    @Override
    public Vertex gcj02ToTargetCoordinate(Vertex gcjVertex){
        Vertex newVertex = new Vertex(0,0);
        if(geoserverConfig.getDeviceCoordinateType().equals("WGS84")){
@@ -39,6 +40,7 @@
        return newVertex;
    }
    @Override
    public Vertex targetCoordinateToGcj02(Vertex targetVertex){
        Vertex newVertex = new Vertex(0,0);
        if(geoserverConfig.getDeviceCoordinateType().equals("WGS84")){
@@ -49,6 +51,7 @@
        return newVertex;
    }
    @Override
    public List<ArdPositionDTO> calConvexHull(List<ArdPositionDTO> polygonPoints){
        //缓冲距离
        List<ArdPositionDTO> convexHullPoints = new ArrayList<>();