com.supermap.services.wmts
Class WMTSConfigTool
- java.lang.Object
-
- com.supermap.services.wmts.WMTSConfigTool
-
public final class WMTSConfigTool extends java.lang.ObjectWMTS service configuration tool.
-
-
Constructor Summary
Constructors Constructor and Description WMTSConfigTool()
-
Method Summary
Methods Modifier and Type Method and Description static WellknownScaleSetsfillCustomScaleMembers(double[] scales, double dpi, Unit unit, WellknownScaleSets wkScaleSets)static PrjCoordSysgetPrjCoordSys(TileMatrixSet tileMatrixSet)Get the corresponding projection system of the tile matrix set.static java.util.List<ScaleMember>getScaleMembers(MapParameter defaultParam, double[] scales)Get the corresponding scale member of the tile matrix according to the custom scale.static Rectangle2DgetTileBounds(TileMatrix tileMatrix, int tileRow, int tileCol, double pixelSpan, PrjCoordSys prjCoordSys)Get the geographical range of the specific tile.static TileMatrixgetTileMatrix(TileMatrixSet tileMatrixSet, java.lang.String tileMatrix)Select the tile matrix.static TileMatrixSetgetTileMatrixSet(java.util.List<TileMatrixSet> tileMatrixSets, java.lang.String tileMatrixSet)Select the tile matrix set.static RectanglegetTileViewer(TileMatrix tileMatrix)Get the size of each tile image in the tile matrix, the unit is pixel.
-
-
-
Method Detail
-
getTileMatrixSet
public static TileMatrixSet getTileMatrixSet(java.util.List<TileMatrixSet> tileMatrixSets, java.lang.String tileMatrixSet)
Select the tile matrix set.
Select the tile matrix set with specific name from the tile matrix set list.
- Parameters:
tileMatrixSets- the tile matrix set list to select.tileMatrixSet- the tile matrix set name.- Returns:
- the tile matrix set.
-
getTileMatrix
public static TileMatrix getTileMatrix(TileMatrixSet tileMatrixSet, java.lang.String tileMatrix)
Select the tile matrix.
Select the tile matrix with specific name from the tile matrix set.
- Parameters:
tileMatrixSet- the tile matrix set to select.tileMatrix- the tile matrix name.- Returns:
- the tile matrix.
-
getTileBounds
public static Rectangle2D getTileBounds(TileMatrix tileMatrix, int tileRow, int tileCol, double pixelSpan, PrjCoordSys prjCoordSys)
Get the geographical range of the specific tile.
- Parameters:
tileMatrix- the tile matrix the tile is in.tileRow- Row number of tiles in tile matrix (counting from 0).tileCol- column number of tiles in tile matrix (counting from 0).xPixelSpan- the geographical length of a pixel in X axis (the actual geographical length multiplied by the scale).yPixelSpan- the geographical length of a pixel in Y axis (the actual geographical length multiplied by the scale).epsgCode- epsgCode in the map- Returns:
- the geographical range of the specific tile.
-
getTileViewer
public static Rectangle getTileViewer(TileMatrix tileMatrix)
Get the size of each tile image in the tile matrix, the unit is pixel.
- Parameters:
tileMatrix- the specific tile matrix.- Returns:
- The size of the image.
-
getPrjCoordSys
public static PrjCoordSys getPrjCoordSys(TileMatrixSet tileMatrixSet)
Get the corresponding projection system of the tile matrix set.
- Parameters:
tileMatrixSet- the specific tile matrix set.- Returns:
- the projected coordinate system.
-
getScaleMembers
public static java.util.List<ScaleMember> getScaleMembers(MapParameter defaultParam, double[] scales)
Get the corresponding scale member of the tile matrix according to the custom scale.
- Parameters:
defautParam- map parameter.scales- scale array, the value is like 1.0E10.- Returns:
- the scale member list of the tile matrix.
-
fillCustomScaleMembers
public static WellknownScaleSets fillCustomScaleMembers(double[] scales, double dpi, Unit unit, WellknownScaleSets wkScaleSets)
- Parameters:
scales-dpi-wkScaleSets-- Returns:
-
-