com.supermap.services.wmts
类 WMTSMapUtil
- java.lang.Object
-
- com.supermap.services.wmts.WMTSMapUtil
-
public class WMTSMapUtil extends java.lang.Object
-
-
字段概要
字段 限定符和类型 字段和说明 static int
EPSG_CODE_CGCS2000
static int
EPSG_CODE_WEB_MERCATOR
static double
PRECISION
-
构造器概要
构造器 构造器和说明 WMTSMapUtil()
-
方法概要
方法 限定符和类型 方法和说明 static java.util.List<TileMatrix>
convertToTileMatrices(java.util.List<ScaleMember> scaleMembers, Rectangle2D boundingBox)
static boolean
equalDouble(double firstValue, double secondValue)
比较Double值static java.util.List<ScaleMember>
getCustomScales(Rectangle2D bounds, PrjCoordSys prjCoordSys, double dpi)
static Point2D
getOrigin(TileMatrixSet matrixSet)
得到切片原点static double[]
getPixelSizes(java.util.List<ScaleMember> scaleMembers)
static PrjCoordSys
getPrjCoorSys(TileMatrixSet tileMatrixSet)
通过传入瓦片矩阵返回投影信息static double[]
getScaleDenominators(java.util.List<ScaleMember> scaleMembers)
static java.lang.String
getSupportedCRS(PrjCoordSys prjCoordSys)
static int
getTileCount(double length, double pixelSize, int pixelLength)
根据长度和像素大小获取瓦片数目static TileMatrixSet
getTileMatrixSetFromWellKnownScale(WellknownScale wellknownScale)
static void
swapPointCoordinate(Point2D pt)
调换点坐标
-
-
-
字段详细资料
-
EPSG_CODE_CGCS2000
public static final int EPSG_CODE_CGCS2000
-
EPSG_CODE_WEB_MERCATOR
public static final int EPSG_CODE_WEB_MERCATOR
-
PRECISION
public static final double PRECISION
-
-
方法详细资料
-
getPrjCoorSys
public static PrjCoordSys getPrjCoorSys(TileMatrixSet tileMatrixSet)
通过传入瓦片矩阵返回投影信息- 参数:
tileMatrixSet
-- 返回:
-
getOrigin
public static Point2D getOrigin(TileMatrixSet matrixSet)
得到切片原点
-
swapPointCoordinate
public static void swapPointCoordinate(Point2D pt)
调换点坐标- 参数:
pt
-
-
equalDouble
public static boolean equalDouble(double firstValue, double secondValue)
比较Double值- 参数:
firstValue
-secondValue
-- 返回:
-
getSupportedCRS
public static java.lang.String getSupportedCRS(PrjCoordSys prjCoordSys)
-
getTileCount
public static int getTileCount(double length, double pixelSize, int pixelLength)
根据长度和像素大小获取瓦片数目- 参数:
length
-pixelSize
-- 返回:
-
getCustomScales
public static java.util.List<ScaleMember> getCustomScales(Rectangle2D bounds, PrjCoordSys prjCoordSys, double dpi)
-
getScaleDenominators
public static double[] getScaleDenominators(java.util.List<ScaleMember> scaleMembers)
-
getPixelSizes
public static double[] getPixelSizes(java.util.List<ScaleMember> scaleMembers)
-
convertToTileMatrices
public static java.util.List<TileMatrix> convertToTileMatrices(java.util.List<ScaleMember> scaleMembers, Rectangle2D boundingBox)
-
getTileMatrixSetFromWellKnownScale
public static TileMatrixSet getTileMatrixSetFromWellKnownScale(WellknownScale wellknownScale)
-
-