张洋洋
2025-02-25 1af1a0d208cd223be9bc574eebf1c21b45b3b117
src/main/java/com/se/simu/utils/ProjectionToGeographicUtil.java
@@ -7,6 +7,15 @@
import org.osgeo.proj4j.ProjCoordinate;
public class ProjectionToGeographicUtil {
    public static JSONArray getPointAndHight(Double x,Double y) {
        // 创建 CRSFactory 对象
        JSONArray vertice = new JSONArray();
        vertice.add(x);
        vertice.add(y);
        vertice.add(0.0);
        return vertice;
    }
    public static JSONArray getPoint(Double x,Double y) {
        // 创建 CRSFactory 对象
        CRSFactory crsFactory = new CRSFactory();
@@ -51,7 +60,7 @@
    }
    public static void main(String[] args) {
        System.out.println(getPoint(470554.2614775232,4416699.023973457));
        System.out.println(get4548Point(116.65575979450138,39.883938395445966));
        System.out.println(getPoint(469257.26224087493,4416938.9521611305));
        System.out.println(getPoint(116.64058,39.88605));
    }
}