Class NcWmsGetMetadataRequest
- java.lang.Object
-
- org.gcube.spatial.data.geoutility.wms.NcWmsGetMetadataRequest
-
public class NcWmsGetMetadataRequest extends Object
The Class NcWmsGetColorScaleRange.- Author:
- Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Dec 1, 2015
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOLORSCALERANGEstatic StringCOLORSCALERANGE_DEFAULT_VALUEstatic intCONNECTION_TIMEOUTstatic StringGET_METADATAstatic org.apache.log4j.Loggerloggerstatic StringWMS_VERSION_1_3_0
-
Constructor Summary
Constructors Constructor Description NcWmsGetMetadataRequest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]getColorScaleRange(String wmsServerUri, String wmsVersion, String bbox, String layerName, String crs, String width, String height, int connectionTimeout)Gets the color scale range Calls a ncWMS GetMetadata request with item = minmax.static voidmain(String[] args)The main method.
-
-
-
Field Detail
-
GET_METADATA
public static final String GET_METADATA
- See Also:
- Constant Field Values
-
CONNECTION_TIMEOUT
public static final int CONNECTION_TIMEOUT
- See Also:
- Constant Field Values
-
logger
public static org.apache.log4j.Logger logger
-
COLORSCALERANGE
public static final String COLORSCALERANGE
- See Also:
- Constant Field Values
-
WMS_VERSION_1_3_0
public static final String WMS_VERSION_1_3_0
- See Also:
- Constant Field Values
-
COLORSCALERANGE_DEFAULT_VALUE
public static final String COLORSCALERANGE_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
-
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 UriwmsVersion- the wms versionbbox- the bboxlayerName- the layer namecrs- the crswidth- the widthheight- the heightconnectionTimeout- 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
-
-