Package org.geotools.ows.wmts.request
Class AbstractGetTileRequest
Object
AbstractRequest
AbstractWMTSRequest
AbstractGetTileRequest
- All Implemented Interfaces:
Request
,GetTileRequest
- Direct Known Subclasses:
WMTSSpecification.GetMultiTileRequest
,WMTSSpecification.GetSingleTileRequest
(Based on existing work by rgould for WMS service)
- Author:
- ian, Emanuele Tajariol (etj at geo-solutions dot it)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected WMTSCapabilities
static final String
protected WMTSLayer
static final String
static final String
protected String
protected WMTSServiceType
Fields inherited from class AbstractRequest
EXCEPTION_XML, hints, onlineResource, properties
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractGetTileRequest
(URL onlineResource, Properties properties) Constructs a GetMapRequest.AbstractGetTileRequest
(URL onlineResource, Properties properties, HTTPClient client) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
createTemplateUrl
(String tileMatrixSetName) Used when creating WMTSTileService's based on a templateUrl.getCrs()
HTTP headers required for some WMTS *protected String
Returns the resourceUrl specified in capabilities for a RESTful GetTile request.protected Integer
protected String
Returns the tileMatrixSet for the requestprotected Integer
getTiles()
Compute the set of tiles needed to generate the image.protected void
protected abstract void
Sets up the version number for this request.void
setCRS
(CoordinateReferenceSystem coordinateReferenceSystem) void
void
void
setRequestedBBox
(ReferencedEnvelope requestedBBox) void
setRequestedHeight
(int height) void
setRequestedTime
(String requestedTime) void
setRequestedWidth
(int width) void
Sets the style name for the requestvoid
setTileCol
(Integer tileCol) void
setTileMatrix
(String tileMatrix) void
setTileMatrixSet
(String tileMatrixSet) Sets the tileMatrixSet for the request.void
setTileRow
(Integer tileRow) Methods inherited from class AbstractWMTSRequest
initService
Methods inherited from class AbstractRequest
getFinalURL, getPostContentType, getProperties, getRequestHints, performPostOutput, processKey, requiresPost, setProperty, setRequestHints
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface Request
createResponse, getFinalURL, getPostContentType, getProperties, getRequestHints, performPostOutput, requiresPost, setProperty, setRequestHints
-
Field Details
-
LAYER
- See Also:
-
STYLE
- See Also:
-
FORMAT
- See Also:
-
layer
-
styleName
-
type
-
capabilities
-
-
Constructor Details
-
AbstractGetTileRequest
Constructs a GetMapRequest. The data passed in represents valid values that can be used.- Parameters:
onlineResource
- the location that the request should be applied toproperties
- pre-set properties to be used. Can be null.
-
AbstractGetTileRequest
-
-
Method Details
-
initVersion
protected abstract void initVersion()Description copied from class:AbstractRequest
Sets up the version number for this request. Typically something like setProperty("VERSION", "1.1.1");- Specified by:
initVersion
in classAbstractRequest
-
initRequest
protected void initRequest()- Specified by:
initRequest
in classAbstractRequest
-
setLayer
- Specified by:
setLayer
in interfaceGetTileRequest
-
setStyle
Sets the style name for the request- Specified by:
setStyle
in interfaceGetTileRequest
-
getFormat
-
setFormat
- Specified by:
setFormat
in interfaceGetTileRequest
-
setTileMatrixSet
Sets the tileMatrixSet for the request.- Specified by:
setTileMatrixSet
in interfaceGetTileRequest
-
getTileMatrixSet
Returns the tileMatrixSet for the request -
setTileMatrix
- Specified by:
setTileMatrix
in interfaceGetTileRequest
-
getTileMatrix
-
setTileRow
- Specified by:
setTileRow
in interfaceGetTileRequest
-
getTileRow
-
setTileCol
- Specified by:
setTileCol
in interfaceGetTileRequest
-
getTileCol
-
setRequestedHeight
public void setRequestedHeight(int height) - Specified by:
setRequestedHeight
in interfaceGetTileRequest
-
setRequestedWidth
public void setRequestedWidth(int width) - Specified by:
setRequestedWidth
in interfaceGetTileRequest
-
setRequestedBBox
- Specified by:
setRequestedBBox
in interfaceGetTileRequest
-
getRequestedTime
-
setRequestedTime
- Specified by:
setRequestedTime
in interfaceGetTileRequest
-
getHeaders
Description copied from interface:GetTileRequest
HTTP headers required for some WMTS *- Specified by:
getHeaders
in interfaceGetTileRequest
-
getCrs
- Returns:
- the crs
-
setCRS
- Specified by:
setCRS
in interfaceGetTileRequest
-
getTiles
Compute the set of tiles needed to generate the image.- Specified by:
getTiles
in interfaceGetTileRequest
- Throws:
ServiceException
-
createTemplateUrl
Used when creating WMTSTileService's based on a templateUrl.If the server supports RESTful calls. It will use that. Otherwise it will create a similar template for KVP requests.
- Parameters:
tileMatrixSetName
- the name of the tileMatrixSet. This is expected to be UTF-8 encoded- Returns:
- template URL used containing placeholders for request parameters
-
getTemplateUrl
Returns the resourceUrl specified in capabilities for a RESTful GetTile request.Connected to a separate layer and format
-