com.supermap.services.components.spi.ogc

Class WMSClient

  • java.lang.Object
    • com.supermap.services.components.spi.ogc.WMSClient
  • All Implemented Interfaces:
    WMS


    public class WMSClient
    extends java.lang.Object
    implements WMS
    

    ${services_components_spi_ogc_WMSClient_Title}

    ${services_components_spi_ogc_WMSClient111_Description}

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String URL_CHARSET
      The 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
      WMSCapabilities getCapabilities(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.String getMapUrl(java.lang.String version, WMSMapParameter wmsMapParam)
      Gets the url corresponding to the image
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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:
        getCapabilities in interface WMS
        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:
        getFeatureInfo in interface WMS
        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:
        getMap in interface WMS
        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.IllegalArgumentException
        
        Gets the url corresponding to the image
        Parameters:
        version - Version
        wmsMapParamwms - Parameter information
        Returns:
        Image url address
        Throws:
        java.lang.IllegalArgumentException - Exception information