public class WFSClient
extends java.lang.Object
WFS 服务客户端,即 WFS 接口的实现类。
| 构造器和说明 | 
|---|
WFSClient(java.lang.String serviceURL, java.lang.String userName, java.lang.String password)
根据 WFS 服务根目录、用户名、密码构建一个 WFSClient 对象。 
 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
FeatureType[] | 
describeFeatureType(java.lang.String featureTypeNames)
获取指定名称的要素类型信息,即执行 DescribeFeatureType 操作。 
 | 
WFSCapabilities | 
getCapabilities()
获取 WFS 服务能力信息,即 getCapabilities 操作的结果。 
 | 
FeatureCollection | 
getFeature(WFSQueryParameter wfsQueryParameter)
按指定的 WFS 要素查询参数查询,即执行 GetFeature 操作,获取地物要素信息。 
 | 
int | 
getFeatureCount(WFSQueryParameter wfsQueryParameter)
按指定的 WFS 要素查询参数查询,获取地物要素个数。 
 | 
com.supermap.services.ietf.geojson.FeatureCollection | 
getGeojsonFeatureCollection(WFSQueryParameter wfsQueryParameter)
按指定的 WFS 要素查询参数查询,即执行 GetFeature 操作,获取地物要素信息。 
 | 
FeatureCollection | 
lockFeature()
WFSClient 目前不支持该操作。 
 | 
TransactionResponse | 
transaction(TransactionParameter transactionParameter)
WFSClient 目前不支持该操作。 
 | 
public WFSClient(java.lang.String serviceURL,
         java.lang.String userName,
         java.lang.String password)
          throws NoSupportedVersionException,
                 OGCException
根据 WFS 服务根目录、用户名、密码构建一个 WFSClient 对象。
serviceURL - WFS 服务根目录。userName - 用户名,访问服务器不需要验证时可以为 null。password - 密码,访问服务器不需要验证时可以为 null。NoSupportedVersionException - 请求的 WFS 服务的版本不支持。OGCException - OGC 服务异常。
public FeatureType[] describeFeatureType(java.lang.String featureTypeNames)
                                  throws OGCException
获取指定名称的要素类型信息,即执行 DescribeFeatureType 操作。
featureTypeNames - 指定的要素类型名称,多个要素名称以“,”分隔。OGCException - OGC 服务异常。public WFSCapabilities getCapabilities()
获取 WFS 服务能力信息,即 getCapabilities 操作的结果。
public FeatureCollection getFeature(WFSQueryParameter wfsQueryParameter)
                             throws OGCException
按指定的 WFS 要素查询参数查询,即执行 GetFeature 操作,获取地物要素信息。
wfsQueryParameter - 指定的 WFS 要素查询参数。OGCException - OGC 服务异常。
public com.supermap.services.ietf.geojson.FeatureCollection getGeojsonFeatureCollection(WFSQueryParameter wfsQueryParameter)
                                                                                 throws OGCException
按指定的 WFS 要素查询参数查询,即执行 GetFeature 操作,获取地物要素信息。
wfsQueryParameter - 指定的 WFS 要素查询参数。OGCException - OGC 服务异常。public FeatureCollection lockFeature()
WFSClient 目前不支持该操作。
执行 LockFeature 操作。
public TransactionResponse transaction(TransactionParameter transactionParameter)
WFSClient 目前不支持该操作。
执行 Transaction 操作。
public int getFeatureCount(WFSQueryParameter wfsQueryParameter)
                    throws OGCException
按指定的 WFS 要素查询参数查询,获取地物要素个数。
wfsQueryParameter - 指定的 WFS 要素查询参数。OGCException - OGC 服务异常。