public interface WMS
WMS Service Interface.
WMS (Web Map Service) is one of the OGC (Open GIS Consortium) standards, which define three major operations for creating and displaying map images, including:
Modifier and Type | Method and Description |
---|---|
WMSCapabilities |
getCapabilities(java.lang.String version)
Get WMS service meta data.
|
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.
|
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.
version
- WMS service version.OGCException
- OGC exception information.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
version
- WMS service version.wmsQueryParam
- WMS query parameters.OGCException
- OGC exception information.byte[] getMap(java.lang.String version, WMSMapParameter wmsMapParam) throws OGCException
Get the binary stream of the map tiles.
version
- WMS service version.wmsMapParam
- WMS map parameters.OGCException
- OGC exception information.