com.supermap.services.providers

Class WMTSMapProvider

    • Constructor Detail

      • WMTSMapProvider

        public WMTSMapProvider()
        
      • WMTSMapProvider

        public WMTSMapProvider(WMTSMapProviderSetting setting)
        

        Constructors with parameters

        Parameters:
        setting - WMTS map service provider configures
    • Method Detail

      • initSupportedMapNames

        protected java.util.List<java.lang.String> initSupportedMapNames()
        

        Gets a list of supported maps

        Specified by:
        initSupportedMapNames in class TiledMapProviderBase
        Returns:
        The map name list.
      • initDefaultMapParameter

        protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
        

        Initializes the default map parameters

        Specified by:
        initDefaultMapParameter in class TiledMapProviderBase
        Returns:
        Map status mapping. The key is the map name, and the value is the map parameter object.
      • getTileImageUrl

        protected java.lang.String getTileImageUrl(java.lang.String mapName,
                                       int x,
                                       int y,
                                       double resolution)
        

        Gets the sliced Url according to the map name, the ranks and the resolution

        Parameters:
        mapName - map name.
        x - raw
        y - column
        resolution - resolution
      • isResolutionEquals

        protected boolean isResolutionEquals(double resolution1,
                                 double resolution2)
        
        Description copied from class: TiledMapProviderBase

        Determines if two resolutions are within the tolerance (1.0E-6)

        Overrides:
        isResolutionEquals in class TiledMapProviderBase
        Parameters:
        resolution1 - double
        resolution2 - double
        Returns:
        Is it equal
      • getOrigin

        protected Point2D getOrigin(java.lang.String mapName)
        

        Gets the origin of the slice

        Specified by:
        getOrigin in class TiledMapProviderBase
        Parameters:
        mapName - The map name.
        Returns:
        The geographical coordinate of left upper corner of the map.
      • getSupportResolutions

        public double[] getSupportResolutions(java.lang.String mapName)
        

        Gets a collection of supported resolutions

        Specified by:
        getSupportResolutions in class TiledMapProviderBase
        Parameters:
        mapName - The map name.
        Returns:
        The resolution array.
      • getSupportScales

        public double[] getSupportScales(java.lang.String mapName)
        

        According to the map name to get the scale set what the maps support.

        Parameters:
        mapName - Map name
        Returns:
      • getSupportImageFormat

        public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
        

        Gets the image format collection of map supported based on the map name

        Specified by:
        getSupportImageFormat in class TiledMapProviderBase
        Parameters:
        mapName -
        Returns:
        Supported image format array
      • requestCapabilities

        protected WMTSCapabilities requestCapabilities()
        
        Gets service metadata information
        Returns:
        service metadata