com.supermap.services.providers

Class WMTSMapProviderSetting

    • Constructor Detail

      • WMTSMapProviderSetting

        public WMTSMapProviderSetting()
        
    • Method Detail

      • getResolutions

        public java.lang.String getResolutions()
        
        Gets resolution set.
        • By default, you do not need to set this configuration item, and you need to set the configuration item when the published map has an offset.
        • The resolution set is consistent with the TileMatrix of the selected scale set, and the adjacent resolution is separated by "," (eg "156543.0339280410, 78271.5169640205, 39135.75848201025").
        Returns:
      • setResolutions

        public void setResolutions(java.lang.String resolutions)
        

        Sets the resolution set.

    • By default, you do not need to set this configuration item, and you need to set the configuration item when the published map has an offset.
    • The resolution set is consistent with the TileMatrix of the selected scale set, and the adjacent resolution is separated by "," (eg "156543.0339280410, 78271.5169640205, 39135.75848201025").
Parameters:
resolutions -
  • setServiceRootURL

    public void setServiceRootURL(java.lang.String serviceRootURL)
    

    Sets the WMTS service address.

    Parameters:
    serviceRoot -
  • getServiceRootURL

    public java.lang.String getServiceRootURL()
    

    Gets the WMTS service address.

    Specified by:
    getServiceRootURL in interface OGCProviderSetting
    Returns:
    Since:
    7.0.0
  • getVersion

    public java.lang.String getVersion()
    

    Gets the WMTS service version.

    Returns:
  • setVersion

    public void setVersion(java.lang.String version)
    

    Sets the WMTS service version.

    Parameters:
    version -
  • getUserName

    public java.lang.String getUserName()
    

    Gets the WMTS service username.

    Returns:
  • setUserName

    public void setUserName(java.lang.String userName)
    

    Sets the WMTS service username.

    Parameters:
    userName -
  • getPassword

    public java.lang.String getPassword()
    

    Gets the WMTS service password.

    Returns:
  • setPassword

    public void setPassword(java.lang.String password)
    

    Sets the WMTS service password.

    Parameters:
    password -
  • setCacheEnabled

    public void setCacheEnabled(boolean cacheEnabled)
    

    Sets whether to use caching.

    Parameters:
    cacheEnable - whether to use caching
  • getCacheEnabled

    public boolean getCacheEnabled()
    

    Sets whether to use caching.

    Returns:
    Whether to use caching
  • getDpi

    public double getDpi()
    

    Gets slice dpi.

    Returns:
  • setDpi

    public void setDpi(double dpi)
    

    Sets slice dpi.

    The default dpi is 90.7142857142857

    Parameters:
    dpi -
  • getLayers

    public WMTSMapLayer[] getLayers()
    

    Gets a collection of layers in the WMTS service.

    Returns:
  • setLayers

    public void setLayers(WMTSMapLayer[] layers)
    

    Sets a collection of layers in the WMTS service.

    Parameters:
    layers -
  • getReverseTopLeftCorner

    public java.lang.String getReverseTopLeftCorner()
    

    Gets the TileMatrixSet Identifier collection that requires reverse resolution of TopLeftCorner.

    Multiple Identifiers are separated by commas (","). Such as "identifier1, identifier2".

    IServer The default parsing rules for TopLeftCorner are as follows:

    TileMatrixSet uses the geographic coordinate system and the SupportedCRS of TileMatrixSet uses the EPSG namespace to parse TopLeftCorner in the order of Y X; the rest is parsed in the order of X Y TopLeftCorner.
    Note: SupportedCRS uses the form of the EPSG namespace: urn: ogc: def: crs: EPSG: {version}: {EpsgCode}.

    If the use of the WMTS service TopLeftCorner does not meet the rules, you need to make TopLeftCorner corresponding to the TileMatrixSet tag under the Identifier added WMTSMapProvider reverseTopLeftCorner configuration items, and identify the reverse order of the default rules in order to resolve the TileMatrixSet TopLeftCorner.
    Returns:
  • setReverseTopLeftCorner

    public void setReverseTopLeftCorner(java.lang.String reverseTopLeftCorner)
    

    Sets the TileMatrixSet Identifier collection that requires reverse resolution of TopLeftCorner.

    Multiple Identifiers are separated by commas (","). Such as "identifier1, identifier2".

    IServer The default parsing rules for TopLeftCorner are as follows:

    TileMatrixSet uses the geographic coordinate system and the SupportedCRS of TileMatrixSet uses the EPSG namespace to parse TopLeftCorner in the order of Y X; the rest is parsed in the order of X Y TopLeftCorner.
    Note: SupportedCRS uses the form of the EPSG namespace: urn: ogc: def: crs: EPSG: {version}: {EpsgCode}.

    If the use of the WMTS service TopLeftCorner does not meet the rules, you need to make TopLeftCorner corresponding to the TileMatrixSet tag under the Identifier added WMTSMapProvider reverseTopLeftCorner configuration items, and identify the reverse order of the default rules in order to resolve the TileMatrixSet TopLeftCorner.
  • getReverseBoundingBox

    public java.lang.String getReverseBoundingBox()
    

    Gets the set of crs for the BoundingBox that needs to be parsed in reverse order

    Multiple Identifiers are separated by commas (","). Such as: "crs1, crs2"

    Returns:
  • setReverseBoundingBox

    public void setReverseBoundingBox(java.lang.String reverseBoundingBox)
    

    Sets the set of crs for the BoundingBox that needs to be parsed in reverse order

    Multiple Identifiers are separated by commas (","). Such as: "crs1, crs2"

    Parameters:
    reverseBoundingBox -
  • equals

    public boolean equals(java.lang.Object obj)
    

    Determines whether two objects are equal.

    Overrides:
    equals in class java.lang.Object
    Parameters:
    obj - the object to be compared.
    Returns:
    whether or not equal,and true mean that the two objects are equal.
  • hashCode

    public int hashCode()
    
    Gets the hash value of the object instance
    Overrides:
    hashCode in class java.lang.Object
    Returns:
    hash value