Constructor and Description |
---|
DefaultWMS(Map mapImpl, WMSConfig wmsConfig)
Construct the
DefaultWMS object according to the description information of the map service component, map name, and the published WMS service. |
Modifier and Type | Method and Description |
---|---|
protected Rectangle2D |
getApproximateBounds(Rectangle2D layerBounds, Rectangle2D mapBounds) |
WMSCapabilities |
getCapabilities(java.lang.String version)
Get WMS service meta data.
|
protected static ServiceDescription |
getCapabilitiesHeadInfo()
Get the service description information of Capabilities.
|
WMSFeatureInfo[] |
getFeatureInfo(java.lang.String version, WMSQueryParameter wmsQueryParam)
Get the feature information.
|
byte[] |
getMap(java.lang.String version, WMSMapParameter wmsMapParam)
Get the binary stream of the map tiles.
|
protected static Point2D |
pointPixelToPoint2D(Point point, MapParameter mapParam)
Convert the pixel coordinates into 2D geographical coordinates.
|
public DefaultWMS(Map mapImpl, WMSConfig wmsConfig) throws OGCException
Construct the DefaultWMS
object according to the description information of the map service component, map name, and the published WMS service.
mapImpl
- the map service component.wmsConfig
- WMS configuration information.OGCException
- it occurs the exception when there is map name error.public WMSCapabilities getCapabilities(java.lang.String version) throws OGCException
Get WMS service meta data.
The method is used to obtain the service metadata, and the metadata is used to describe the server information content and the acceptable request parameter value, which is a machine readable (and suitable for people to read) description.
getCapabilities
in interface WMS
version
- WMS service version.OGCException
- OGC exception information.protected Rectangle2D getApproximateBounds(Rectangle2D layerBounds, Rectangle2D mapBounds)
protected static ServiceDescription getCapabilitiesHeadInfo() throws OGCException
OGCException
- OGC exception information.public WMSFeatureInfo[] getFeatureInfo(java.lang.String version, WMSQueryParameter wmsQueryParam) throws OGCException
Get the feature information.
This method is used to get the map element information, and the map is returned by the GetMap operation, therefore, to access the GetFeatureInfo operation should first visit the GetMap operation to obtain the map, the user selects a point in the acquired map (point (i, j)) for more information. The user can specify the pixels to be searched, the layers of the query, and the format of the returned information.
The operation is valid for the layer whose queryable attribute is "1", for other layers the client can not send GetFeatureInfo operation request. When the WMS service receives an unsupported GetFeatureInfo
getFeatureInfo
in interface WMS
version
- WMS service version.wmsQueryParam
- WMS query parameters.OGCException
- OGC exception information.protected static Point2D pointPixelToPoint2D(Point point, MapParameter mapParam)
point
- pixel coordinates.mapParam
- map parameters.public byte[] getMap(java.lang.String version, WMSMapParameter wmsMapParam) throws OGCException
Get the binary stream of the map tiles.
getMap
in interface WMS
version
- WMS service version.wmsMapParam
- WMS map parameters.OGCException
- OGC exception information.