Package cn.mapway.common.geo.gdal
Class GdalUtil
java.lang.Object
cn.mapway.common.geo.gdal.GdalUtil
Gdal工具类
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double[]calcPointByLonAndlat(double x, double y, double[] geoTransform) 根据传入的坐标计算所在的行列号 若geoTransform不是长度为6位的数组会报错static double[]calcPointByLonAndlat(double x, double y, List<Double> geoTransform) 根据传入的坐标计算所在的行列号 若geoTransform不是长度为6位的list会报错static cn.mapway.geo.shared.vector.PointcalcPointByRowAndCol(double x, double y, double[] geoTransform) 根据行列号计算经纬度 若geoTransform不是长度为6位的数组会报错static cn.mapway.geo.shared.vector.PointcalcPointByRowAndCol(double x, double y, Double[] geoTransform) 根据行列号计算经纬度 若geoTransform不是长度为6位的数组会报错static cn.mapway.geo.shared.vector.PointcalcPointByRowAndCol(int x, int y, double[] geoTransform) 根据行列号计算经纬度 若geoTransform不是长度为6位的数组会报错static cn.mapway.geo.shared.vector.PointcalcPointByRowAndCol(int x, int y, Double[] geoTransform) 根据行列号计算经纬度 若geoTransform不是长度为6位的数组会报错static cn.mapway.geo.shared.vector.PointcalcPointByRowAndCol(int i, int j, List<Double> geoTransform) 根据行列号计算经纬度 若geoTransform不是长度为6位的list会报错static voidstatic voidinit()static voidstatic void设置全局 PAM 数据 Persistent Auxiliary MetaData
-
Constructor Details
-
GdalUtil
public GdalUtil()
-
-
Method Details
-
main
-
init
public static void init() -
setPAM
设置全局 PAM 数据 Persistent Auxiliary MetaData- Parameters:
enable-pamDirectory-
-
enablePam
-
calcPointByLonAndlat
public static double[] calcPointByLonAndlat(double x, double y, double[] geoTransform) 根据传入的坐标计算所在的行列号 若geoTransform不是长度为6位的数组会报错- Parameters:
y- 109580123.7496164E7x-geoTransform-- Returns:
-
calcPointByLonAndlat
根据传入的坐标计算所在的行列号 若geoTransform不是长度为6位的list会报错- Parameters:
y-x-geoTransform-- Returns:
-
calcPointByRowAndCol
public static cn.mapway.geo.shared.vector.Point calcPointByRowAndCol(int x, int y, double[] geoTransform) 根据行列号计算经纬度 若geoTransform不是长度为6位的数组会报错- Parameters:
geoTransform-- Returns:
-
calcPointByRowAndCol
public static cn.mapway.geo.shared.vector.Point calcPointByRowAndCol(int x, int y, Double[] geoTransform) 根据行列号计算经纬度 若geoTransform不是长度为6位的数组会报错- Parameters:
y- 行号x- 列号geoTransform-- Returns:
-
calcPointByRowAndCol
public static cn.mapway.geo.shared.vector.Point calcPointByRowAndCol(double x, double y, Double[] geoTransform) 根据行列号计算经纬度 若geoTransform不是长度为6位的数组会报错- Parameters:
y- 行号x- 列号geoTransform-- Returns:
-
calcPointByRowAndCol
public static cn.mapway.geo.shared.vector.Point calcPointByRowAndCol(double x, double y, double[] geoTransform) 根据行列号计算经纬度 若geoTransform不是长度为6位的数组会报错- Parameters:
y- 行号x- 列号geoTransform-- Returns:
-
calcPointByRowAndCol
public static cn.mapway.geo.shared.vector.Point calcPointByRowAndCol(int i, int j, List<Double> geoTransform) 根据行列号计算经纬度 若geoTransform不是长度为6位的list会报错- Parameters:
i- 行号j- 列号geoTransform-- Returns:
-