public class TLcdWMTSClient extends Object
To create ILcdModel
s that can be used in LuciadLightspeed views, you can use
TLcdWMTSModelDecoder
.
This client connects to the WMTS once. If you need to refresh the capabilities
, create a new client.
You can list the available WMTS layers
.
Limitations on what WMTS layers are supported are described here
.
TLcdWMTSModelDecoder
Constructor and Description |
---|
TLcdWMTSClient(URI aUri)
Create a client.
|
TLcdWMTSClient(URI aUri,
ILcdOWSTransport aTransport)
Create a client.
|
TLcdWMTSClient(URI aUri,
ILcdTransport aTransport)
Create a client.
|
Modifier and Type | Method and Description |
---|---|
TLcdOWSCapabilitiesBase |
getCapabilities()
Returns the capabilities of the WMTS.
|
TLcdOWSInputStream |
getFeatureInfo(TLcdWMTSGetFeatureInfoContext aContext)
Performs the 'GetFeatureInfo' request.
|
Collection<TLcdWMTSLayer> |
getLayers()
Returns the layers available on the WMTS server, as well as their exposed formats and styles.
|
public TLcdWMTSClient(URI aUri) throws TLcdOWSDecodingException, TLcdOWSTransportException, TLcdOWSServerException, TLcdOWSUnsupportedVersionException
aUri
- The URI of the WMTS serverTLcdOWSDecodingException
TLcdOWSTransportException
TLcdOWSServerException
TLcdOWSUnsupportedVersionException
public TLcdWMTSClient(URI aUri, ILcdTransport aTransport) throws TLcdOWSDecodingException, TLcdOWSTransportException, TLcdOWSServerException, TLcdOWSUnsupportedVersionException
aUri
- The URI of the WMTS serveraTransport
- The transport used to do the connections to the server.TLcdOWSDecodingException
TLcdOWSTransportException
TLcdOWSServerException
TLcdOWSUnsupportedVersionException
TLcdTransportFactory: create a default transport
public TLcdWMTSClient(URI aUri, ILcdOWSTransport aTransport) throws TLcdOWSDecodingException, TLcdOWSTransportException, TLcdOWSServerException, TLcdOWSUnsupportedVersionException
aUri
- The URI of the WMTS serveraTransport
- The transport used to do the connections to the server.TLcdOWSDecodingException
TLcdOWSTransportException
TLcdOWSServerException
TLcdOWSUnsupportedVersionException
TLcdOWSHTTPTransport: the default OWS transport
public TLcdOWSCapabilitiesBase getCapabilities()
Subsequent calls will always return the same capabilities, it does not re-connect to the WMTS to refresh the capabilities.
If you need to refresh the capabilities, create a new client.public TLcdOWSInputStream getFeatureInfo(TLcdWMTSGetFeatureInfoContext aContext) throws TLcdOWSDecodingException, TLcdOWSTransportException, TLcdOWSServerException
aContext
- The context object containing the GetFeatureInfo parametersTLcdOWSDecodingException
- If an error occurred while decoding the 'GetFeatureInfo' responseTLcdOWSTransportException
- If an error occurred in the transport while accessing the web serviceTLcdOWSServerException
- If the server returned a service exceptionpublic Collection<TLcdWMTSLayer> getLayers()
Use TLcdWMTSLayer.isTileStructureQuadTree()
to check if a layer can be
visualized at the full detail it exposes.