package com.sangeng;
import org.locationtech.proj4j.CRSFactory;
import org.locationtech.proj4j.CoordinateReferenceSystem;
import org.locationtech.proj4j.CoordinateTransform;
import org.locationtech.proj4j.CoordinateTransformFactory;
import org.locationtech.proj4j.ProjCoordinate;
import org.locationtech.proj4j.io.Proj4FileReader;
import java.io.IOException;
public class WGS84To4543 {
public static void main(String[] args) {
transform(101.60205056705729,26.5407382601306,1709.319362316199);
}
public static void transform(double x, double y, double z) {
Proj4FileReader proj4FileReader = new Proj4FileReader();
String[] paramStr = new String[0];
try {
paramStr = proj4FileReader.readParametersFromFile("epsg","4543");
} catch (IOException e) {
e.printStackTrace();
}
CRSFactory targetFactory = new CRSFactory();
//目标坐标系统
WGS84转投影坐标
最新推荐文章于 2024-07-31 21:43:11 发布