Class WFSClient
- java.lang.Object
-
- com.supermap.services.providers.WFSClient
-
public class WFSClient extends java.lang.ObjectWFS service client, that is, the implementation class for the
WFSinterface.
-
-
Constructor Summary
Constructors 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.
-
Method Summary
Methods 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.WFSCapabilitiesgetCapabilities()Obtains WFS service capability information, that is, the result of the getCapabilities operation.FeatureCollectiongetFeature(WFSQueryParameter wfsQueryParameter)Queries the parameter query by the specified WFS feature, that is, executes the GetFeature operation to get the feature information.intgetFeatureCount(WFSQueryParameter wfsQueryParameter)Queries the parameters by querying the specified WFS elements to get the number of feature elements.FeatureCollectionlockFeature()WFSClient does not currently support this operation.TransactionResponsetransaction(TransactionParameter transactionParameter)WFSClient does not currently support this operation.
-
-
-
Constructor Detail
-
WFSClient
public WFSClient(java.lang.String serviceURL, java.lang.String userName, java.lang.String password) throws NoSupportedVersionException, OGCExceptionBuilds a WFSClient object based on the WFS service root, user name, and password.
- Parameters:
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.- Throws:
NoSupportedVersionException- The version of the requested WFS service is not supported.OGCException- OGC service exception.
-
-
Method Detail
-
describeFeatureType
public FeatureType[] describeFeatureType(java.lang.String featureTypeNames) throws OGCExceptionGets the feature type information for the specified name, that is, executes the DescribeFeatureType operation.
- Parameters:
featureTypeNames- Specifies the feature type name, with multiple feature names separated by ",".- Returns:
- An array of feature types defined in the WFS service implementation.
- Throws:
OGCException- OGC service exception.
-
getCapabilities
public WFSCapabilities getCapabilities()
Obtains WFS service capability information, that is, the result of the getCapabilities operation.
- Returns:
- WFS service capability information.
-
getFeature
public FeatureCollection getFeature(WFSQueryParameter wfsQueryParameter) throws OGCExceptionQueries the parameter query by the specified WFS feature, that is, executes the GetFeature operation to get the feature information.
- Parameters:
wfsQueryParameter- Specifies the WFS feature query parameter.- Returns:
- WFS feature set defined in the implementation.
- Throws:
OGCException- OGC service exception.
-
lockFeature
public FeatureCollection lockFeature()
WFSClient does not currently support this operation.
Executes the LockFeature operation.
- Returns:
- feature set.
-
transaction
public TransactionResponse transaction(TransactionParameter transactionParameter)
WFSClient does not currently support this operation.
Executes the Transaction action.
- Returns:
- feature set.
-
getFeatureCount
public int getFeatureCount(WFSQueryParameter wfsQueryParameter) throws OGCExceptionQueries the parameters by querying the specified WFS elements to get the number of feature elements.
- Parameters:
wfsQueryParameter- Specifies the WFS feature query parameter.- Returns:
- Number of feature elements.
- Throws:
OGCException- OGC service exception.
-
-