| 构造器和说明 | 
|---|
DefaultWMS(Map mapImpl, Image imageImpl, WMSConfig wmsConfig)
根据地图服务组件、地图名称、发布的 WMS 服务的描述信息构建  
DefaultWMS 对象。 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
java.awt.image.BufferedImage | 
getBufferedImage(java.lang.String imagePath, int width, int height)  | 
WMSCapabilities | 
getCapabilities(java.lang.String version)
获取 WMS 服务级元数据。 
 | 
protected static ServiceDescription | 
getCapabilitiesHeadInfo()
获取 Capabilities 中的服务描述信息。 
 | 
FeatureCollection | 
getFeatureCollection(java.lang.String version, WMSQueryParameter wmsQueryParam)  | 
WMSFeatureInfo[] | 
getFeatureInfo(java.lang.String version, WMSQueryParameter wmsQueryParam)
获取地物要素信息。 
 | 
java.util.List<QueryResult> | 
getFeatureInfos(java.lang.String version, WMSQueryParameter wmsQueryParam)  | 
byte[] | 
getLegendGraphic(java.lang.String version, WMSMapParameter wmsMapParam)
获取图例图片的二进制流。 
 | 
byte[] | 
getMap(java.lang.String version, WMSMapParameter wmsMapParam)
获取地图图片的二进制流。 
 | 
protected boolean | 
isLayerExist(Layer layer, java.lang.String name, java.util.List<Layer> requestedLayer, java.util.List<Layer> layersToSetVisible, java.util.List<Layer> layersVisible)
在图层及其子图层中查找指定名称的图层是否存在,如果存在,则把位置提到最前。 
 | 
protected static Point2D | 
pointPixelToPoint2D(Point point, MapParameter mapParam)
将像素坐标点转换为二维地理坐标点。 
 | 
protected void | 
setLayerNamesTransformer(com.supermap.services.wms.WMSLayerNameTransformer layerNamesTransformer)  | 
public DefaultWMS(Map mapImpl, Image imageImpl, WMSConfig wmsConfig) throws OGCException
根据地图服务组件、地图名称、发布的 WMS 服务的描述信息构建 DefaultWMS 对象。
mapImpl - 地图服务组件。wmsConfig - WMS 配置信息。OGCException - 当地图名称错误时,抛出该异常。public WMSCapabilities getCapabilities(java.lang.String version) throws OGCException
获取 WMS 服务级元数据。
该方法用于获取服务元数据,元数据用于描述服务器信息内容和可接受的请求参数值,是一种机器可读(并适合人阅读)的描述。
getCapabilities 在接口中 WMSversion - WMS 服务版本号。OGCException - OGC 异常信息。protected static ServiceDescription getCapabilitiesHeadInfo() throws OGCException
OGCException - OGC 异常信息。public WMSFeatureInfo[] getFeatureInfo(java.lang.String version, WMSQueryParameter wmsQueryParam) throws OGCException
获取地物要素信息。
该方法用于获取地图上要素的信息,地图是通过 GetMap 操作返回的,因此,要访问 GetFeatureInfo 操作应该先访问 GetMap 操作获取地图,用户在获取的地图上选取一个点(point(i, j))来查询更加丰富的信息。用户可以指定要查询的像素、查询的图层以及返回信息的格式等。
该操作对于 queryable 属性为“1”的图层有效,对于其他图层客户端不能发送 GetFeatureInfo 操作请求。当 WMS 服务接收到不支持的 GetFeatureInfo 操作请求时,会返回服务异常信息。
getFeatureInfo 在接口中 WMSversion - WMS 服务版本号。wmsQueryParam - WMS 查询参数。OGCException - OGC 异常信息。public java.util.List<QueryResult> getFeatureInfos(java.lang.String version, WMSQueryParameter wmsQueryParam) throws OGCException
OGCException
public FeatureCollection getFeatureCollection(java.lang.String version,
                                     WMSQueryParameter wmsQueryParam)
                                       throws OGCException
OGCExceptionprotected static Point2D pointPixelToPoint2D(Point point, MapParameter mapParam)
point - 像素坐标点。mapParam - 地图参数。
public byte[] getMap(java.lang.String version,
            WMSMapParameter wmsMapParam)
              throws OGCException
获取地图图片的二进制流。
getMap 在接口中 WMSversion - WMS 服务版本号。wmsMapParam - WMS 地图参数。OGCException - OGC 异常信息。
public byte[] getLegendGraphic(java.lang.String version,
                      WMSMapParameter wmsMapParam)
                        throws MapException
WMS获取图例图片的二进制流。
getLegendGraphic 在接口中 WMSversion - WMS 服务版本号。wmsMapParam - WMS 地图参数。MapException - 异常信息。
public java.awt.image.BufferedImage getBufferedImage(java.lang.String imagePath,
                                            int width,
                                            int height)
protected boolean isLayerExist(Layer layer, java.lang.String name, java.util.List<Layer> requestedLayer, java.util.List<Layer> layersToSetVisible, java.util.List<Layer> layersVisible) throws OGCException
layer -name -requestedLayer -OGCExceptionprotected void setLayerNamesTransformer(com.supermap.services.wms.WMSLayerNameTransformer layerNamesTransformer)