public class ZTransformUtil
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
org.locationtech.jts.geom.GeometryFactory |
geoFactory |
| 构造器和说明 |
|---|
ZTransformUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static double |
degreeTometer(double degree) |
org.locationtech.jts.geom.Point |
fromLatLon(double latitude,
double longitude)
从经纬度坐标中获取点对象
|
static double |
meterTodegress(double meter) |
org.locationtech.jts.geom.Point |
projectTransform(org.locationtech.jts.geom.Point point,
java.lang.String sourceEpsg,
java.lang.String targetEpsg)
投影转换
|
double[] |
toLatLon(org.locationtech.jts.geom.Point point)
点对象转换成经度纬度数组
|
org.locationtech.jts.geom.Point |
transformBD09ToGCJ02(org.locationtech.jts.geom.Point point)
GCJ02坐标转百度(BD09)坐标
|
org.locationtech.jts.geom.Point |
transformBD09ToWGS84(org.locationtech.jts.geom.Point point)
百度(BD09)坐标转WGS84坐标
|
org.locationtech.jts.geom.Point |
transformGCJ02ToBD09(org.locationtech.jts.geom.Point point)
百度(BD09)坐标转GCJ02坐标
|
org.locationtech.jts.geom.Point |
transformGCJ02ToWGS84(org.locationtech.jts.geom.Point point)
GCJ02坐标转WGS84坐标
|
org.locationtech.jts.geom.Point |
transformWGS84ToBD09(org.locationtech.jts.geom.Point point)
WGS84坐标转百度(BD09)坐标
|
org.locationtech.jts.geom.Point |
transformWGS84ToGCJ02(org.locationtech.jts.geom.Point point)
WGS84坐标转GCJ02坐标
|
public org.locationtech.jts.geom.Point fromLatLon(double latitude,
double longitude)
latitude - 维度longitude - 经度public double[] toLatLon(org.locationtech.jts.geom.Point point)
point - 点对象public org.locationtech.jts.geom.Point projectTransform(org.locationtech.jts.geom.Point point,
java.lang.String sourceEpsg,
java.lang.String targetEpsg)
throws org.opengis.referencing.FactoryException,
org.opengis.referencing.operation.TransformException
point - 点对象sourceEpsg - 源投影(EPSG)targetEpsg - 目标投影(EPSG)org.opengis.referencing.FactoryException - 抛出异常org.opengis.referencing.operation.TransformException - 抛出异常public org.locationtech.jts.geom.Point transformWGS84ToGCJ02(org.locationtech.jts.geom.Point point)
point - 点对象public org.locationtech.jts.geom.Point transformGCJ02ToWGS84(org.locationtech.jts.geom.Point point)
point - 点对象public org.locationtech.jts.geom.Point transformGCJ02ToBD09(org.locationtech.jts.geom.Point point)
point - 点对象public org.locationtech.jts.geom.Point transformBD09ToGCJ02(org.locationtech.jts.geom.Point point)
point - 点对象public org.locationtech.jts.geom.Point transformWGS84ToBD09(org.locationtech.jts.geom.Point point)
point - 点对象public org.locationtech.jts.geom.Point transformBD09ToWGS84(org.locationtech.jts.geom.Point point)
point - 点对象public static double meterTodegress(double meter)
public static double degreeTometer(double degree)