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 void fillPublicTileParametersByRequest(WMTSGetTileParameter parameters, Request request)
      Obtain the relevant parameters of WMTS tiles according to Requets.
      static int getIntegerFromString(java.lang.String param, java.lang.String locator) 
      static java.lang.String getLastExtension(Reference reference)
      Gets the last extension string based on the request resource URL
      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
      • Methods inherited from class java.lang.Object

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

      • WMTSUtil

        public WMTSUtil()
        
    • 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 description
        mapComponent - map component
        layer - map
        tileMatrixSetID - the tile matrix set ID.
        tileMatrixID - the tile matrix ID.
        tileRow - the row of the tile
        tileCol - 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