张洋洋
2025-02-27 50423e90b61aededf6e1ff6c4c423c84c4f39fa3
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,6 +60,7 @@
    }
    public static void main(String[] args) {
        System.out.println(get4548Point(116.66,39.8962));
        System.out.println(getPoint(469257.26224087493,4416938.9521611305));
        System.out.println(getPoint(116.64058,39.88605));
    }
}