Package com.luciad.ogc.wfs.client
Class TLcdWFSCapabilitiesDecoder
java.lang.Object
com.luciad.ogc.wfs.client.TLcdWFSCapabilitiesDecoder
The
TLcdWFSCapabilitiesDecoder
class allows to decode WFS capabilities
from a WFS server, with support for version 1.0 and 1.1.
The decoded capabilities can be used with TLcdWFSProxyModel.Builder
to create a WFS proxy model.
An alternative and preferred approach is to create a TLcdWFSClient
instance,
which gives access to the capabilities and also can be used to create a WFS proxy model.- Since:
- 6.2
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecodeCapabilities
(String aLocation) Retrieves and decodes the WFS capabilities from the server specified by the given URL.void
setRequestProperty
(String aKey, String aValue) Sets the general request property.
-
Constructor Details
-
TLcdWFSCapabilitiesDecoder
public TLcdWFSCapabilitiesDecoder()
-
-
Method Details
-
decodeCapabilities
Retrieves and decodes the WFS capabilities from the server specified by the given URL. Both version 1.0 and 1.1 of the WFS capabilities are supported.- Parameters:
aLocation
- the location (URL or filename) of the capabilities document- Returns:
- the WFS capabilities.
- Throws:
IOException
- if the capabilities document can not be read
-
setRequestProperty
Sets the general request property. If a property with the key already exists, overwrite its value with the new value.- Parameters:
aKey
- the keyword by which the request is known (e.g., "accept
").aValue
- the value associated with it.- See Also:
-