com.supermap.services.providers
类 WFSClient
- java.lang.Object
 - 
- com.supermap.services.providers.WFSClient
 
 
- 
public class WFSClient extends java.lang.ObjectWFS 服务客户端,即
WFS接口的实现类。 
- 
- 
构造器概要
构造器 构造器和说明 WFSClient(java.lang.String serviceURL, java.lang.String userName, java.lang.String password)根据 WFS 服务根目录、用户名、密码构建一个 WFSClient 对象。 
- 
方法概要
方法 限定符和类型 方法和说明 FeatureType[]describeFeatureType(java.lang.String featureTypeNames)获取指定名称的要素类型信息,即执行 DescribeFeatureType 操作。WFSCapabilitiesgetCapabilities()获取 WFS 服务能力信息,即 getCapabilities 操作的结果。FeatureCollectiongetFeature(WFSQueryParameter wfsQueryParameter)按指定的 WFS 要素查询参数查询,即执行 GetFeature 操作,获取地物要素信息。intgetFeatureCount(WFSQueryParameter wfsQueryParameter)按指定的 WFS 要素查询参数查询,获取地物要素个数。com.supermap.services.ietf.geojson.FeatureCollectiongetGeojsonFeatureCollection(WFSQueryParameter wfsQueryParameter)按指定的 WFS 要素查询参数查询,即执行 GetFeature 操作,获取地物要素信息。FeatureCollectionlockFeature()WFSClient 目前不支持该操作。TransactionResponsetransaction(TransactionParameter transactionParameter)WFSClient 目前不支持该操作。 
 - 
 
- 
- 
构造器详细资料
- 
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 服务异常。
 
 - 
 
- 
方法详细资料
- 
describeFeatureType
public FeatureType[] describeFeatureType(java.lang.String featureTypeNames) throws OGCException获取指定名称的要素类型信息,即执行 DescribeFeatureType 操作。
- 参数:
 featureTypeNames- 指定的要素类型名称,多个要素名称以“,”分隔。- 返回:
 - WFS 服务实现中定义的要素类型数组。
 - 抛出:
 OGCException- OGC 服务异常。
 
- 
getCapabilities
public WFSCapabilities getCapabilities()
获取 WFS 服务能力信息,即 getCapabilities 操作的结果。
- 返回:
 - WFS 服务能力信息。
 
 
- 
getFeature
public FeatureCollection getFeature(WFSQueryParameter wfsQueryParameter) throws OGCException按指定的 WFS 要素查询参数查询,即执行 GetFeature 操作,获取地物要素信息。
- 参数:
 wfsQueryParameter- 指定的 WFS 要素查询参数。- 返回:
 - WFS 实现中定义的地物要素集合。
 - 抛出:
 OGCException- OGC 服务异常。
 
- 
getGeojsonFeatureCollection
public com.supermap.services.ietf.geojson.FeatureCollection getGeojsonFeatureCollection(WFSQueryParameter wfsQueryParameter) throws OGCException按指定的 WFS 要素查询参数查询,即执行 GetFeature 操作,获取地物要素信息。
- 参数:
 wfsQueryParameter- 指定的 WFS 要素查询参数。- 返回:
 - WFS 实现中定义的地物要素集合。
 - 抛出:
 OGCException- OGC 服务异常。
 
- 
lockFeature
public FeatureCollection lockFeature()
WFSClient 目前不支持该操作。
执行 LockFeature 操作。
- 返回:
 - 要素集合。
 
 
- 
transaction
public TransactionResponse transaction(TransactionParameter transactionParameter)
WFSClient 目前不支持该操作。
执行 Transaction 操作。
- 返回:
 - 要素集合。
 
 
- 
getFeatureCount
public int getFeatureCount(WFSQueryParameter wfsQueryParameter) throws OGCException按指定的 WFS 要素查询参数查询,获取地物要素个数。
- 参数:
 wfsQueryParameter- 指定的 WFS 要素查询参数。- 返回:
 - 地物要素个数。
 - 抛出:
 OGCException- OGC 服务异常。
 
 - 
 
 -