Class GdalUtil

java.lang.Object
cn.mapway.common.geo.gdal.GdalUtil

public class GdalUtil extends Object
Gdal工具类
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.Point
    calcPointByRowAndCol(double x, double y, double[] geoTransform)
    根据行列号计算经纬度 若geoTransform不是长度为6位的数组会报错
    static cn.mapway.geo.shared.vector.Point
    calcPointByRowAndCol(double x, double y, Double[] geoTransform)
    根据行列号计算经纬度 若geoTransform不是长度为6位的数组会报错
    static cn.mapway.geo.shared.vector.Point
    calcPointByRowAndCol(int x, int y, double[] geoTransform)
    根据行列号计算经纬度 若geoTransform不是长度为6位的数组会报错
    static cn.mapway.geo.shared.vector.Point
    calcPointByRowAndCol(int x, int y, Double[] geoTransform)
    根据行列号计算经纬度 若geoTransform不是长度为6位的数组会报错
    static cn.mapway.geo.shared.vector.Point
    calcPointByRowAndCol(int i, int j, List<Double> geoTransform)
    根据行列号计算经纬度 若geoTransform不是长度为6位的list会报错
    static void
    enablePam(String pamDirectory)
     
    static void
     
    static void
    main(String[] args)
     
    static void
    setPAM(boolean enable, String pamDirectory)
    设置全局 PAM 数据 Persistent Auxiliary MetaData

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GdalUtil

      public GdalUtil()
  • Method Details

    • main

      public static void main(String[] args)
    • init

      public static void init()
    • setPAM

      public static void setPAM(boolean enable, String pamDirectory)
      设置全局 PAM 数据 Persistent Auxiliary MetaData
      Parameters:
      enable -
      pamDirectory -
    • enablePam

      public static void enablePam(String pamDirectory)
    • calcPointByLonAndlat

      public static double[] calcPointByLonAndlat(double x, double y, double[] geoTransform)
      根据传入的坐标计算所在的行列号 若geoTransform不是长度为6位的数组会报错
      Parameters:
      y - 109580123.7496164E7
      x -
      geoTransform -
      Returns:
    • calcPointByLonAndlat

      public static double[] calcPointByLonAndlat(double x, double y, List<Double> geoTransform)
      根据传入的坐标计算所在的行列号 若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: