com.supermap.services.wmts
Class WMTSUtil
- java.lang.Object
-
- com.supermap.services.wmts.WMTSUtil
-
public class WMTSUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description WMTSUtil()
-
Method Summary
Methods Modifier and Type Method and Description static voidfillPublicTileParametersByRequest(WMTSGetTileParameter parameters, Request request)Obtain the relevant parameters of WMTS tiles according to Requets.static intgetIntegerFromString(java.lang.String param, java.lang.String locator)static java.lang.StringgetLastExtension(Reference reference)Gets the last extension string based on the request resource URLstatic MapParametergetWMTSTileParameter(WMTSGetCapabilities wmtsGC, Map mapComponent, java.lang.String layer, java.lang.String tileMatrixSetID, java.lang.String tileMatrixID, int tileRow, int tileCol)Get the corresponding MapParameter according to the WMTS service tile request parameters
-
-
-
Method Detail
-
getWMTSTileParameter
public static MapParameter getWMTSTileParameter(WMTSGetCapabilities wmtsGC, Map mapComponent, java.lang.String layer, java.lang.String tileMatrixSetID, java.lang.String tileMatrixID, int tileRow, int tileCol)
Get the corresponding MapParameter according to the WMTS service tile request parameters- Parameters:
wmtsGC- WMTS service descriptionmapComponent- map componentlayer- maptileMatrixSetID- the tile matrix set ID.tileMatrixID- the tile matrix ID.tileRow- the row of the tiletileCol- the column of the tile- Returns:
- the corresponding MapParameter
-
fillPublicTileParametersByRequest
public static void fillPublicTileParametersByRequest(WMTSGetTileParameter parameters, Request request)
Obtain the relevant parameters of WMTS tiles according to Requets.- Parameters:
parameters-
-
getIntegerFromString
public static int getIntegerFromString(java.lang.String param, java.lang.String locator)
-
getLastExtension
public static java.lang.String getLastExtension(Reference reference)
Gets the last extension string based on the request resource URL- Parameters:
reference- reference of the request resource- Returns:
- the last extension string
-
-