public abstract class AbstractGetTileRequest extends AbstractWMTSRequest implements GetTileRequest
Modifier and Type | Field and Description |
---|---|
protected WMTSCapabilities |
capabilities |
static String |
FORMAT |
protected WMTSLayer |
layer |
static String |
LAYER |
static String |
STYLE |
protected String |
styleName |
protected WMTSServiceType |
type |
EXCEPTION_XML, hints, onlineResource, properties
Constructor and Description |
---|
AbstractGetTileRequest(URL onlineResource,
Properties properties)
Constructs a GetMapRequest.
|
AbstractGetTileRequest(URL onlineResource,
Properties properties,
HTTPClient client) |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
createTemplateUrl(String tileMatrixSetName)
Used when creating WMTSTileService's based on a templateUrl.
|
CoordinateReferenceSystem |
getCrs() |
String |
getFormat() |
Map<String,String> |
getHeaders()
HTTP headers required for some WMTS *
|
protected String |
getRequestedTime() |
String |
getTemplateUrl()
Returns the resourceUrl specified in capabilities for a RESTful GetTile request.
|
protected Integer |
getTileCol() |
String |
getTileMatrix() |
protected String |
getTileMatrixSet()
Returns the tileMatrixSet for the request
|
protected Integer |
getTileRow() |
Set<Tile> |
getTiles()
Compute the set of tiles needed to generate the image.
|
protected void |
initRequest() |
protected abstract void |
initVersion()
Sets up the version number for this request.
|
void |
setCRS(CoordinateReferenceSystem coordinateReferenceSystem) |
void |
setFormat(String format) |
void |
setLayer(WMTSLayer layer) |
void |
setRequestedBBox(ReferencedEnvelope requestedBBox) |
void |
setRequestedHeight(int height) |
void |
setRequestedTime(String requestedTime) |
void |
setRequestedWidth(int width) |
void |
setStyle(String styleName)
Sets the style name for the request
|
void |
setTileCol(Integer tileCol) |
void |
setTileMatrix(String tileMatrix) |
void |
setTileMatrixSet(String tileMatrixSet)
Sets the tileMatrixSet for the request.
|
void |
setTileRow(Integer tileRow) |
initService
getFinalURL, getPostContentType, getProperties, getRequestHints, performPostOutput, processKey, requiresPost, setProperty, setRequestHints
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createResponse, getFinalURL, getPostContentType, getProperties, getRequestHints, performPostOutput, requiresPost, setProperty, setRequestHints
public static final String LAYER
public static final String STYLE
public static final String FORMAT
protected WMTSLayer layer
protected String styleName
protected WMTSServiceType type
protected WMTSCapabilities capabilities
public AbstractGetTileRequest(URL onlineResource, Properties properties)
onlineResource
- the location that the request should be applied toproperties
- pre-set properties to be used. Can be null.public AbstractGetTileRequest(URL onlineResource, Properties properties, HTTPClient client)
protected abstract void initVersion()
AbstractRequest
initVersion
in class AbstractRequest
protected void initRequest()
initRequest
in class AbstractRequest
public void setLayer(WMTSLayer layer)
setLayer
in interface GetTileRequest
public void setStyle(String styleName)
setStyle
in interface GetTileRequest
public String getFormat()
public void setFormat(String format)
setFormat
in interface GetTileRequest
public void setTileMatrixSet(String tileMatrixSet)
setTileMatrixSet
in interface GetTileRequest
protected String getTileMatrixSet()
public void setTileMatrix(String tileMatrix)
setTileMatrix
in interface GetTileRequest
public String getTileMatrix()
public void setTileRow(Integer tileRow)
setTileRow
in interface GetTileRequest
protected Integer getTileRow()
public void setTileCol(Integer tileCol)
setTileCol
in interface GetTileRequest
protected Integer getTileCol()
public void setRequestedHeight(int height)
setRequestedHeight
in interface GetTileRequest
public void setRequestedWidth(int width)
setRequestedWidth
in interface GetTileRequest
public void setRequestedBBox(ReferencedEnvelope requestedBBox)
setRequestedBBox
in interface GetTileRequest
protected String getRequestedTime()
public void setRequestedTime(String requestedTime)
setRequestedTime
in interface GetTileRequest
public Map<String,String> getHeaders()
GetTileRequest
getHeaders
in interface GetTileRequest
public CoordinateReferenceSystem getCrs()
public void setCRS(CoordinateReferenceSystem coordinateReferenceSystem)
setCRS
in interface GetTileRequest
public Set<Tile> getTiles() throws ServiceException
getTiles
in interface GetTileRequest
ServiceException
protected abstract String createTemplateUrl(String tileMatrixSetName)
If the server supports RESTful calls. It will use that. Otherwise it will create a similar template for KVP requests.
tileMatrixSetName
- the name of the tileMatrixSet. This is expected to be UTF-8 encodedpublic String getTemplateUrl()
Connected to a separate layer and format
Copyright © 1996–2023 Geotools. All rights reserved.