Class TLcdWCSProxyModelFactory
A proxy model uses a TLcdWCSClient
instance as interface to connect with a WCS server,
and to perform requests. A new TLcdWCSClient
instance is created for each proxy model
automatically, or it can be supplied manually, depending on the factory method used to create a proxy model.
To communicate with a WCS server, a proxy model uses the information published in its capabilities.
If a TLcdWCSClient
is supplied manually, the capabilities are automatically retrieved
through TLcdWCSClient.getCachedCapabilities()
. Otherwise, a TLcdWCSCapabilities
object
needs to be supplied manually. This can be obtained through a TLcdWCSCapabilitiesDecoder
.
The proxy model is an image model model, and can be painted using the standard image painting / styling
components available for GXY and Lightspeed layers. Once the model has been created,
the TLcdWCSProxy
object can be retrieved from it for further configuration.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateProxyModel
(TLcdWCSClient aClient, String aCoverageName) Given a WCS client and the name of a specific coverage, creates a proxy model for that coverage.createProxyModel
(TLcdWCSClient aClient, String aCoverageName, ALcdWCSCoverageDecoder[] aCoverageDecoders) Creates a proxy model for a coverage using the given coverage decoders.createProxyModel
(TLcdWCSClient aClient, String aCoverageName, ILcdWCSCoverageTileDecoder[] aWCSCoverageTileDecoder) Given a WCS client and the name of a specific coverage, creates a proxy model for that coverage.createProxyModel
(TLcdWCSDataSource aDataSource) Given a data source, creates a proxy model for that URI and coverage defined in data source.createProxyModel
(TLcdWCSCapabilities aCapabilities, String aCoverageName) Given a WCS capabilities document and the name of a specific coverage, creates a proxy model for that coverage.createProxyModel
(TLcdWCSCapabilities aCapabilities, String aCoverageName, ALcdWCSCoverageDecoder[] aCoverageDecoders) Given a WCS capabilities document and the name of a specific coverage, creates a proxy model for that coverage.createProxyModel
(TLcdWCSCapabilities aCapabilities, String aCoverageName, ILcdWCSCoverageTileDecoder[] aWCSCoverageTileDecoder) Given a WCS capabilities document and the name of a specific coverage, creates a proxy model for that coverage.void
setRequestProperty
(String aKey, String aValue) Sets the general request property.
-
Constructor Details
-
TLcdWCSProxyModelFactory
public TLcdWCSProxyModelFactory()
-
-
Method Details
-
createProxyModel
public TLcdWCSProxyModel createProxyModel(TLcdWCSClient aClient, String aCoverageName) throws IOException Given a WCS client and the name of a specific coverage, creates a proxy model for that coverage. The model contains a singleTLcdWCSProxy
object, and is described by aTLcdWCSProxyModelDescriptor
instance. By default, the proxy usesTLcdGeoTIFFWCSCoverageDecoder
to decodeGetCoverage
responses from the WCS, which provides support for theGeoTIFF
output format.- Parameters:
aClient
- a WCS client.aCoverageName
- the name of the coverage offering to be retrieved- Returns:
- the WCS proxy model.
- Throws:
IOException
- if the proxy model cannot be created
-
createProxyModel
public TLcdWCSProxyModel createProxyModel(TLcdWCSClient aClient, String aCoverageName, ILcdWCSCoverageTileDecoder[] aWCSCoverageTileDecoder) throws IOException Given a WCS client and the name of a specific coverage, creates a proxy model for that coverage. The model contains a singleTLcdWCSProxy
object, and is described by aTLcdWCSProxyModelDescriptor
instance. The proxy uses the supplied coverage tile decoders to choose a supported output format at the WCS.- Parameters:
aClient
- a WCS clientaCoverageName
- the name of the coverage offering to be retrievedaWCSCoverageTileDecoder
- an array of coverage tile decoders- Returns:
- the WCS proxy model
- Throws:
IOException
- if the proxy model cannot be created
-
createProxyModel
public TLcdWCSProxyModel createProxyModel(TLcdWCSClient aClient, String aCoverageName, ALcdWCSCoverageDecoder[] aCoverageDecoders) throws IOException Creates a proxy model for a coverage using the given coverage decoders. The model contains a singleTLcdWCSProxy
object, and is described by aTLcdWCSProxyModelDescriptor
. You can use this to decode custom WCS output formats other than GeoTIFF. If GeoTIFF is the only output format you need, you can also usecreateProxyModel(TLcdWCSClient, String)
.- Parameters:
aClient
- a WCS client, must never benull
aCoverageName
- the name of the coverage offering, must never benull
aCoverageDecoders
- the coverage decoders, which may be empty but nevernull
- Returns:
- the WCS proxy model
- Throws:
IOException
- Since:
- 2015.1
-
createProxyModel
public TLcdWCSProxyModel createProxyModel(TLcdWCSCapabilities aCapabilities, String aCoverageName) throws IOException Given a WCS capabilities document and the name of a specific coverage, creates a proxy model for that coverage. The model contains a singleTLcdWCSProxy
object, and is described by aTLcdWCSProxyModelDescriptor
instance.- Parameters:
aCapabilities
- the capabilities of the service to be queriedaCoverageName
- the name of the coverage offering to be retrieved- Returns:
- a TLcdWCSProxyModel
- Throws:
IOException
- if the proxy model cannot be created
-
createProxyModel
public TLcdWCSProxyModel createProxyModel(TLcdWCSCapabilities aCapabilities, String aCoverageName, ILcdWCSCoverageTileDecoder[] aWCSCoverageTileDecoder) throws IOException Given a WCS capabilities document and the name of a specific coverage, creates a proxy model for that coverage. The model contains a singleTLcdWCSProxy
object, and is described by aTLcdWCSProxyModelDescriptor
instance. The proxy uses the supplied coverage tile decoders to choose a supported output format at the WCS.- Parameters:
aCapabilities
- the capabilities of the service to be queriedaCoverageName
- the name of the coverage offering to be retrievedaWCSCoverageTileDecoder
- an array of coverage tile decoders- Returns:
- a TLcdWCSProxyModel
- Throws:
IOException
- if the proxy model cannot be created
-
createProxyModel
public TLcdWCSProxyModel createProxyModel(TLcdWCSCapabilities aCapabilities, String aCoverageName, ALcdWCSCoverageDecoder[] aCoverageDecoders) throws IOException Given a WCS capabilities document and the name of a specific coverage, creates a proxy model for that coverage. The model contains a singleTLcdWCSProxy
object, and is described by aTLcdWCSProxyModelDescriptor
instance. The proxy uses the supplied coverage decoders to choose a supported output format at the WCS.- Parameters:
aCapabilities
- the capabilities of the service to be queriedaCoverageName
- the name of the coverage offering to be retrievedaCoverageDecoders
- the coverage decoders, which may be empty but nevernull
- Returns:
- a TLcdWCSProxyModel
- Throws:
IOException
- if the proxy model cannot be created- Since:
- 2015.1
-
createProxyModel
Given a data source, creates a proxy model for that URI and coverage defined in data source. The model contains a singleTLcdWCSProxy
object, and is described by aTLcdWCSProxyModelDescriptor
instance. By default, the proxy usesTLcdGeoTIFFWCSCoverageDecoder
to decodeGetCoverage
responses from the WCS, which provides support for theGeoTIFF
output format.- Parameters:
aDataSource
- The data source which includes URI and coverage name.- Returns:
- the WCS proxy model.
- Throws:
IOException
- if the proxy model cannot be created- Since:
- 2018.0
-
setRequestProperty
Sets the general request property. If a property with the key already exists, overwrite its value with the new value. Ifnull
is specified as value, the property is removed.- Parameters:
aKey
- the keyword by which the request is known (e.g., "accept
").aValue
- the value associated with it.- See Also:
-