public final class WMTSLayerParam extends AbstractWMXLayerParams
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
baseURL
The ‘ResourceURL’ available in the WMTS capabilities.
|
PObject |
dimensionParams
Dictionary of dimensions name (Must be uppercase) => value.
|
java.lang.String[] |
dimensions
The "sample" dimensions or image color bands to retrieve.
|
double |
dpi
The dpi of the returned images.
|
java.lang.String |
imageFormat
The format of the image.
|
java.lang.String |
layer
The layer name.
|
Matrix[] |
matrices
Array of matrix ids.
|
java.lang.String |
matrixSet
Reference/Identifier to a tileMatrixSet and limits.
|
RequestEncoding |
requestEncoding
The way to make the requests.
|
java.lang.String |
style
The style name (for styles on the WMTS server).
|
java.lang.String |
version
The WMTS protocol version to use.
|
customParams, mergeableParamsrasterStylefailOnError, name, opacity| Constructor and Description |
|---|
WMTSLayerParam() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
createCommonUrl()
Create a URL that is common to all image requests for this layer.
|
java.lang.String |
getBaseUrl()
Get the base url for all tile requests.
|
void |
postConstruct()
Validate some of the properties of this layer.
|
boolean |
validateBaseUrl()
Validates the provided base url.
|
getCustomParams, getMergeableParams, setCustomParampublic java.lang.String baseURL
requestEncoding: "KVP"):
baseUrl: "http://domain.com/wmts"
Example (for requestEncoding: "REST"):
baseUrl: "http://domain.com/wmts/roads/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png"
The following URL template variables are replaced:
public java.lang.String layer
public java.lang.String version
public RequestEncoding requestEncoding
KVP or REST (default).public java.lang.String style
public java.lang.String[] dimensions
dimensionParams.public double dpi
public PObject dimensionParams
public java.lang.String imageFormat
public java.lang.String matrixSet
public Matrix[] matrices
[{
"identifier": "0",
"matrixSize": [1, 1],
"scaleDenominator": 4000,
"tileSize": [256, 256],
"topLeftCorner": [420000, 350000]
}, ...]
public java.lang.String getBaseUrl()
AbstractTiledLayerParamsgetBaseUrl in class AbstractTiledLayerParamspublic void postConstruct()
public java.lang.String createCommonUrl()
throws java.net.URISyntaxException,
java.io.UnsupportedEncodingException
AbstractTiledLayerParamscreateCommonUrl in class AbstractWMXLayerParamsjava.net.URISyntaxExceptionjava.io.UnsupportedEncodingExceptionpublic boolean validateBaseUrl()
AbstractTiledLayerParamsvalidateBaseUrl in class AbstractWMXLayerParams