Class NcWmsGetMetadataRequest


  • public class NcWmsGetMetadataRequest
    extends Object
    The Class NcWmsGetColorScaleRange.
    Author:
    Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Dec 1, 2015
    • Constructor Detail

      • NcWmsGetMetadataRequest

        public NcWmsGetMetadataRequest()
    • Method Detail

      • getColorScaleRange

        public static String[] getColorScaleRange​(String wmsServerUri,
                                                  String wmsVersion,
                                                  String bbox,
                                                  String layerName,
                                                  String crs,
                                                  String width,
                                                  String height,
                                                  int connectionTimeout)
                                           throws Exception
        Gets the color scale range Calls a ncWMS GetMetadata request with item = minmax. Returns minmax if GetMedatada works, a null array otherwise.
        Parameters:
        wmsServerUri - the WMS Server Uri
        wmsVersion - the wms version
        bbox - the bbox
        layerName - the layer name
        crs - the crs
        width - the width
        height - the height
        connectionTimeout - the connection timeout
        Returns:
        the color scale range - an array of 2 elements that contains min and max value for the COLORSCALERANGE
        Throws:
        Exception - the exception
      • main

        public static void main​(String[] args)
        The main method.
        Parameters:
        args - the arguments