Class WMTSMapProviderSetting
- java.lang.Object
-
- com.supermap.services.components.spi.MapProviderSetting
-
- com.supermap.services.providers.WMTSMapProviderSetting
-
- All Implemented Interfaces:
- OGCProviderSetting, java.io.Serializable
public class WMTSMapProviderSetting extends MapProviderSetting implements OGCProviderSetting
WMTS map service provider configuration object.
This object is used for the relevant parameter information required by the WMTS map service provider.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.supermap.services.components.spi.MapProviderSetting
dataPrjCoordSysType, watermark
-
-
Constructor Summary
Constructors Constructor and Description WMTSMapProviderSetting()
-
Method Summary
Methods Modifier and Type Method and Description booleanequals(java.lang.Object obj)Determines whether two objects are equal.booleangetCacheEnabled()Sets whether to use caching.doublegetDpi()Gets slice dpi.WMTSMapLayer[]getLayers()Gets a collection of layers in the WMTS service.java.lang.StringgetPassword()Gets the WMTS service password.java.lang.StringgetResolutions()Gets resolution set.java.lang.StringgetReverseBoundingBox()Gets the set of crs for the BoundingBox that needs to be parsed in reverse orderjava.lang.StringgetReverseTopLeftCorner()Gets the TileMatrixSet Identifier collection that requires reverse resolution of TopLeftCorner.java.lang.StringgetServiceRootURL()Gets the WMTS service address.java.lang.StringgetUserName()Gets the WMTS service username.java.lang.StringgetVersion()Gets the WMTS service version.inthashCode()Gets the hash value of the object instancevoidsetCacheEnabled(boolean cacheEnabled)Sets whether to use caching.voidsetDpi(double dpi)Sets slice dpi.voidsetLayers(WMTSMapLayer[] layers)Sets a collection of layers in the WMTS service.voidsetPassword(java.lang.String password)Sets the WMTS service password.voidsetResolutions(java.lang.String resolutions)Sets the resolution set.voidsetReverseBoundingBox(java.lang.String reverseBoundingBox)Sets the set of crs for the BoundingBox that needs to be parsed in reverse ordervoidsetReverseTopLeftCorner(java.lang.String reverseTopLeftCorner)Sets the TileMatrixSet Identifier collection that requires reverse resolution of TopLeftCorner.voidsetServiceRootURL(java.lang.String serviceRootURL)Sets the WMTS service address.voidsetUserName(java.lang.String userName)Sets the WMTS service username.voidsetVersion(java.lang.String version)Sets the WMTS service version.-
Methods inherited from class com.supermap.services.components.spi.MapProviderSetting
getCacheMode, getCacheVersion, getName, getOutputPath, getOutputSite, getWatermark, setCacheMode, setCacheVersion, setName, setOutputPath, setOutputSite, setWatermark
-
-
-
-
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:
getServiceRootURLin interfaceOGCProviderSetting- 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:
equalsin classjava.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:
hashCodein classjava.lang.Object- Returns:
- hash value