com.supermap.services.providers

Class WFSClient

  • java.lang.Object
    • com.supermap.services.providers.WFSClient


  • public class WFSClient
    extends java.lang.Object
    

    WFS service client, that is, the implementation class for the WFS interface.

    • 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.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WFSClient

        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.

        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 OGCException
        

        Gets 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 OGCException
        

        Queries 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 OGCException
        

        Queries 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.