public class WFSClient
extends java.lang.Object
WFS service client, that is, the implementation class for the WFS
interface.
Constructor and Description |
---|
WFSClient(java.lang.String serviceURL, java.lang.String userName, java.lang.String password)
Builds a WFSClient object based on the WFS service root, user name, and password.
|
Modifier and Type | Method and Description |
---|---|
FeatureType[] |
describeFeatureType(java.lang.String featureTypeNames)
Gets the feature type information for the specified name, that is, executes the DescribeFeatureType operation.
|
WFSCapabilities |
getCapabilities()
Obtains WFS service capability information, that is, the result of the getCapabilities operation.
|
FeatureCollection |
getFeature(WFSQueryParameter wfsQueryParameter)
Queries the parameter query by the specified WFS feature, that is, executes the GetFeature operation to get the feature information.
|
int |
getFeatureCount(WFSQueryParameter wfsQueryParameter)
Queries the parameters by querying the specified WFS elements to get the number of feature elements.
|
FeatureCollection |
lockFeature()
WFSClient does not currently support this operation.
|
TransactionResponse |
transaction(TransactionParameter transactionParameter)
WFSClient does not currently support this operation.
|
public WFSClient(java.lang.String serviceURL, java.lang.String userName, java.lang.String password) throws NoSupportedVersionException, OGCException
Builds a WFSClient object based on the WFS service root, user name, and password.
serviceURL
- WFS service root directory.userName
- username, the access server can be null when it does not require authentication.password,
- the access server can be null when it does not require authentication.NoSupportedVersionException
- The version of the requested WFS service is not supported.OGCException
- OGC service exception.public FeatureType[] describeFeatureType(java.lang.String featureTypeNames) throws OGCException
Gets the feature type information for the specified name, that is, executes the DescribeFeatureType operation.
featureTypeNames
- Specifies the feature type name, with multiple feature names separated by ",".OGCException
- OGC service exception.public WFSCapabilities getCapabilities()
Obtains WFS service capability information, that is, the result of the getCapabilities operation.
public FeatureCollection getFeature(WFSQueryParameter wfsQueryParameter) throws OGCException
Queries the parameter query by the specified WFS feature, that is, executes the GetFeature operation to get the feature information.
wfsQueryParameter
- Specifies the WFS feature query parameter.OGCException
- OGC service exception.public FeatureCollection lockFeature()
WFSClient does not currently support this operation.
Executes the LockFeature operation.
public TransactionResponse transaction(TransactionParameter transactionParameter)
WFSClient does not currently support this operation.
Executes the Transaction action.
public int getFeatureCount(WFSQueryParameter wfsQueryParameter) throws OGCException
Queries the parameters by querying the specified WFS elements to get the number of feature elements.
wfsQueryParameter
- Specifies the WFS feature query parameter.OGCException
- OGC service exception.