public class WebMapTileServer extends AbstractOpenWebService<WMTSCapabilities,Layer>
It is used to access the Capabilities document and perform requests. It will perform version negotiation automatically and use the highest known version that the server can communicate.
capabilities, headers, hints, info, LOGGER, resourceInfo, serverURL, specification, specs
Constructor and Description |
---|
WebMapTileServer(URL serverURL)
Set up the WebMapTileServer by calling serverURL with the default http client.
|
WebMapTileServer(URL serverURL,
HTTPClient httpClient)
Set up the WebMapTileServer by the given serverUrl using the given http client.
|
WebMapTileServer(URL serverURL,
HTTPClient httpClient,
Map<String,String> headers)
Set up the WebMapTileServer by the given serverUrl, using the http client with additional
headers.
|
WebMapTileServer(URL serverURL,
HTTPClient httpClient,
WMTSCapabilities capabilities)
Set up the WebMapTileServer by the given capabilities, with the given serverURL.
|
WebMapTileServer(URL serverURL,
HTTPClient httpClient,
WMTSCapabilities capabilities,
Map<String,Object> hints)
Set up the WebMapTileServer by the given capabilities, with the given serverURL and
additional hints.
|
WebMapTileServer(URL serverURL,
WMTSCapabilities capabilities)
Set up the WebMapTileServer by the given capabilities, with the given serverURL.
|
WebMapTileServer(WebMapTileServer delegate)
Set up a WebMapTileServer by the same serverURL, httpClient, capabilities and hints as
delegate
|
WebMapTileServer(WMTSCapabilities capabilities)
Deprecated.
Use constructor with serverUrl and capabilities
|
WebMapTileServer(WMTSCapabilities capabilities,
HTTPClient httpClient)
Deprecated.
Use constructor with serverUrl, capabilities and httpClient.
|
Modifier and Type | Method and Description |
---|---|
GetFeatureInfoRequest |
createGetFeatureInfoRequest(GetTileRequest getmap) |
GetTileRequest |
createGetTileRequest()
Creates a GetMultiTileRequest.
|
GetTileRequest |
createGetTileRequest(boolean multiTile)
Creates a GetTileRequest.
|
protected ServiceInfo |
createInfo()
Implemented by a subclass to describe service
|
protected ResourceInfo |
createInfo(Layer resource) |
WMTSCapabilities |
getCapabilities()
Get the getCapabilities document.
|
GeneralEnvelope |
getEnvelope(Layer layer,
CoordinateReferenceSystem crs) |
WMTSServiceType |
getType() |
GetFeatureInfoResponse |
issueRequest(GetFeatureInfoRequest request) |
Set<Tile> |
issueRequest(GetTileRequest tileRequest)
Deprecated.
- change to tileRequest.getTiles()
|
GetTileResponse |
issueRequest(WMTSSpecification.GetSingleTileRequest tileRequest)
The new issueRequest, which gives a GetTileResponse in response for a GetSingleTileRequest.
|
TileMatrixSet |
selectMatrixSet(WMTSLayer layer,
CoordinateReferenceSystem requestCRS)
Selects the tileMatrixSet that is linked to this layer with the given CRS
|
void |
setType(WMTSServiceType type) |
protected void |
setupSpecifications()
Sets up the specifications/versions that this server is capable of communicating with.
|
getHints, getHTTPClient, getInfo, getInfo, internalIssueRequest, issueRequest, negotiateVersion, setHints, setHttpClient, setLoggingLevel
public WebMapTileServer(URL serverURL, HTTPClient httpClient) throws ServiceException, IOException
serverURL
- httpClient
- ServiceException
IOException
public WebMapTileServer(URL serverURL, HTTPClient httpClient, Map<String,String> headers) throws ServiceException, IOException
serverURL
- httpClient
- headers
- ServiceException
IOException
public WebMapTileServer(URL serverURL, WMTSCapabilities capabilities) throws ServiceException, IOException
serverURL
- capabilities
- ServiceException
IOException
public WebMapTileServer(URL serverURL, HTTPClient httpClient, WMTSCapabilities capabilities) throws ServiceException, IOException
serverURL
- httpClient
- capabilities
- ServiceException
IOException
public WebMapTileServer(URL serverURL, HTTPClient httpClient, WMTSCapabilities capabilities, Map<String,Object> hints) throws ServiceException, IOException
serverURL
- httpClient
- capabilities
- hints
- ServiceException
IOException
public WebMapTileServer(URL serverURL) throws IOException, ServiceException
serverURL
- IOException
ServiceException
@Deprecated public WebMapTileServer(WMTSCapabilities capabilities) throws ServiceException, IOException
capabilities
- ServiceException
IOException
@Deprecated public WebMapTileServer(WMTSCapabilities capabilities, HTTPClient httpClient) throws ServiceException, IOException
capabilities
- ServiceException
IOException
public WebMapTileServer(WebMapTileServer delegate) throws ServiceException, IOException
delegate
- ServiceException
IOException
public WMTSCapabilities getCapabilities()
AbstractOpenWebService
getCapabilities
in class AbstractOpenWebService<WMTSCapabilities,Layer>
protected ServiceInfo createInfo()
AbstractOpenWebService
createInfo
in class AbstractOpenWebService<WMTSCapabilities,Layer>
protected ResourceInfo createInfo(Layer resource)
createInfo
in class AbstractOpenWebService<WMTSCapabilities,Layer>
protected void setupSpecifications()
AbstractOpenWebService
setupSpecifications
in class AbstractOpenWebService<WMTSCapabilities,Layer>
@Deprecated public Set<Tile> issueRequest(GetTileRequest tileRequest) throws ServiceException
ServiceException
public GetTileResponse issueRequest(WMTSSpecification.GetSingleTileRequest tileRequest) throws IOException, ServiceException
IOException
ServiceException
public GetTileRequest createGetTileRequest()
public GetTileRequest createGetTileRequest(boolean multiTile)
GetSingleTileRequest is either KVP or REST
The url served to GetRestTileRequest is just the serverUrl. The proper templateUrl is found at a later stage.
public TileMatrixSet selectMatrixSet(WMTSLayer layer, CoordinateReferenceSystem requestCRS) throws ServiceException
ServiceException
public GetFeatureInfoRequest createGetFeatureInfoRequest(GetTileRequest getmap)
public GetFeatureInfoResponse issueRequest(GetFeatureInfoRequest request)
public void setType(WMTSServiceType type)
type
- public WMTSServiceType getType()
public GeneralEnvelope getEnvelope(Layer layer, CoordinateReferenceSystem crs)
Copyright © 1996–2023 Geotools. All rights reserved.