com.supermap.services.components.spi.ogc
Class WMSClient
- java.lang.Object
-
- com.supermap.services.components.spi.ogc.WMSClient
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringURL_CHARSETThe character set used for URL encoding.
-
Constructor Summary
Constructors Constructor and Description WMSClient(java.lang.String url, java.lang.String userName, java.lang.String password)${services_components_spi_ogc_WMSClient111_contructor_WMSClient111_Title}
-
Method Summary
Methods Modifier and Type Method and Description WMSCapabilitiesgetCapabilities(java.lang.String version)${services_components_spi_ogc_WMSClient111_method_getCapabilities_Title}WMSFeatureInfo[]getFeatureInfo(java.lang.String version, WMSQueryParameter wmsQueryParam)${services_components_spi_ogc_WMSClient111_method_getFeatureInfo_Title}byte[]getMap(java.lang.String version, WMSMapParameter wmsMapParam)${services_components_spi_ogc_WMSClient111_method_getMap_Title}java.lang.StringgetMapUrl(java.lang.String version, WMSMapParameter wmsMapParam)Gets the url corresponding to the image
-
-
-
Field Detail
-
URL_CHARSET
public static final java.lang.String URL_CHARSET
The character set used for URL encoding.The default is UTF-8.
-
-
Constructor Detail
-
WMSClient
public WMSClient(java.lang.String url, java.lang.String userName, java.lang.String password)${services_components_spi_ogc_WMSClient111_contructor_WMSClient111_Title}
${services_components_spi_ogc_WMSClient111_contructor_WMSClient111_Description}
- Parameters:
url${services_components_spi_ogc_WMSClient111_contructor_param_url}-userName${services_components_spi_ogc_WMSClient111_contructor_param_userName}-password${services_components_spi_ogc_WMSClient111_contructor_param_password}-
-
-
Method Detail
-
getCapabilities
public WMSCapabilities getCapabilities(java.lang.String version) throws WMSServiceException
${services_components_spi_ogc_WMSClient111_method_getCapabilities_Title}
${services_components_spi_ogc_WMSClient111_method_getCapabilities_Description}
- Specified by:
getCapabilitiesin interfaceWMS- Parameters:
version${services_components_spi_ogc_WMSClient111_method_getCapabilities_param_version}-- Returns:
- ${services_components_spi_ogc_WMSClient111_method_getCapabilities_return}
- Throws:
WMSServiceException${services_components_spi_ogc_WMSClient111_method_getCapabilities_throws_WMSServiceException}WMSServiceException
-
getFeatureInfo
public WMSFeatureInfo[] getFeatureInfo(java.lang.String version, WMSQueryParameter wmsQueryParam) throws WMSServiceException
${services_components_spi_ogc_WMSClient111_method_getFeatureInfo_Title}
${services_components_spi_ogc_WMSClient111_method_getFeatureInfo_Description}
- Specified by:
getFeatureInfoin interfaceWMS- Parameters:
version${services_components_spi_ogc_WMSClient111_method_getFeatureInfo_param_version}-wmsQueryParam${services_components_spi_ogc_WMSClient111_method_getFeatureInfo_param_wmsQueryParam}-- Returns:
- ${services_components_spi_ogc_WMSClient111_method_getFeatureInfo_return}
- Throws:
WMSServiceException${services_components_spi_ogc_WMSClient111_method_getFeatureInfo_throws_WMSServiceException}WMSServiceException
-
getMap
public byte[] getMap(java.lang.String version, WMSMapParameter wmsMapParam) throws WMSServiceException${services_components_spi_ogc_WMSClient111_method_getMap_Title}
${services_components_spi_ogc_WMSClient111_method_getMap_Description}
- Specified by:
getMapin interfaceWMS- Parameters:
version${services_components_spi_ogc_WMSClient111_method_getMap_param_version}-wmsMapParam${services_components_spi_ogc_WMSClient111_method_getMap_param_wmsMapParam}-- Returns:
- ${services_components_spi_ogc_WMSClient111_method_getMap_return}
- Throws:
WMSServiceException${services_components_spi_ogc_WMSClient111_method_getMap_throws_WMSServiceException}WMSServiceException
-
getMapUrl
public java.lang.String getMapUrl(java.lang.String version, WMSMapParameter wmsMapParam) throws java.lang.IllegalArgumentExceptionGets the url corresponding to the image- Parameters:
version- VersionwmsMapParamwms- Parameter information- Returns:
- Image url address
- Throws:
java.lang.IllegalArgumentException- Exception information
-
-