com.supermap.services.providers
类 WFSFactory
- java.lang.Object
-
- com.supermap.services.providers.WFSFactory
-
public final class WFSFactory extends java.lang.ObjectWFS 服务工厂类。
用于获取 WFS 服务对支持的操作的获取对象、操作结果解析对象,以及 WFS 服务所支持的版本。 目前在 SuperMap iServer 中,发布的 WFS 服务支持的操作有 GetCapabilities、DescribeFeatureType、GetFeature 等,支持的版本有 1.0.0。
-
-
构造器概要
构造器 构造器和说明 WFSFactory(java.lang.String serviceURL, java.lang.String userName, java.lang.String password)根据 WFS 服务根目录、用户名、密码构建一个 WFSFactory 对象。
-
方法概要
方法 限定符和类型 方法和说明 WFSCapabilitiesParsergetCapabilitiesParser(java.lang.String version)获取指定版本的 GetCapabilities 操作结果解析器。AbstractCapabilitiesRequestgetCapabilitiesRequest(java.lang.String version)获取指定版本 WFS 服务的 GetCapabilities 请求对象。AbstractFeatureTypeRequestgetDescribeFeatureTypeRequest(WFSCapabilities capabilities)根据 WFS 服务能力信息获取 DescribeFeatureType 请求对象。AbstractExceptionParsergetExceptionParser(WFSCapabilities capabilities)根据 WFS 服务能力信息获取错误信息解析器。GMLParsergetFeatureParser(WFSCapabilities capabilities)根据 WFS 服务能力信息获取要素解析器。AbstractGetFeatureRequestgetFeatureRequest(WFSCapabilities capabilities)根据 WFS 服务能力信息获取 GetFeature 请求对象。AbstractFeatureTypeParsergetFeatureTypeParser(WFSCapabilities capabilities)根据 WFS 服务能力信息获取 DescribeFeatureType 操作结果解析器。java.lang.String[]getSupportedVersion()获取本 WFS 服务工厂支持的所有 WFS 版本号列表。
-
-
-
构造器详细资料
-
WFSFactory
public WFSFactory(java.lang.String serviceURL, java.lang.String userName, java.lang.String password)根据 WFS 服务根目录、用户名、密码构建一个 WFSFactory 对象。
- 参数:
serviceURL- WFS 服务的根目录。userName- 用户名。password- 密码。
-
-
方法详细资料
-
getSupportedVersion
public java.lang.String[] getSupportedVersion()
获取本 WFS 服务工厂支持的所有 WFS 版本号列表。
版本号列表经过降序排序,即最高的版本在第一个,最低的版本在最后一个。
- 返回:
- 版本号数组。
-
getCapabilitiesRequest
public AbstractCapabilitiesRequest getCapabilitiesRequest(java.lang.String version)
获取指定版本 WFS 服务的 GetCapabilities 请求对象。- 参数:
version- 版本。- 返回:
- GetCapabilities 请求对象。
-
getCapabilitiesParser
public WFSCapabilitiesParser getCapabilitiesParser(java.lang.String version)
获取指定版本的 GetCapabilities 操作结果解析器。- 参数:
version- 版本。- 返回:
- GetCapabilities 操作结果解析器。
-
getFeatureParser
public GMLParser getFeatureParser(WFSCapabilities capabilities)
根据 WFS 服务能力信息获取要素解析器。
- 参数:
capabilities- WFS 服务能力信息。- 返回:
- WFS 中的要素(Feature)解析器。
-
getFeatureRequest
public AbstractGetFeatureRequest getFeatureRequest(WFSCapabilities capabilities)
根据 WFS 服务能力信息获取 GetFeature 请求对象。- 参数:
capabilities- WFS 服务能力信息。- 返回:
- GetFeature 请求对象。
-
getFeatureTypeParser
public AbstractFeatureTypeParser getFeatureTypeParser(WFSCapabilities capabilities)
根据 WFS 服务能力信息获取 DescribeFeatureType 操作结果解析器。
- 参数:
capabilities- WFS 服务能力信息。- 返回:
- DescribeFeatureType 操作结果解析器。
-
getDescribeFeatureTypeRequest
public AbstractFeatureTypeRequest getDescribeFeatureTypeRequest(WFSCapabilities capabilities)
根据 WFS 服务能力信息获取 DescribeFeatureType 请求对象。
- 参数:
capabilities- WFS 服务能力信息。- 返回:
- DescribeFeatureType 请求对象。
-
getExceptionParser
public AbstractExceptionParser getExceptionParser(WFSCapabilities capabilities)
根据 WFS 服务能力信息获取错误信息解析器。
- 参数:
capabilities- WFS 服务能力信息 。- 返回:
- 错误信息解析器。
-
-