Class GeoNcWMSMetadataUtility
- java.lang.Object
-
- org.gcube.spatial.data.geoutility.GeoNcWMSMetadataUtility
-
public class GeoNcWMSMetadataUtility extends Object
The Class GeoNcWMSMetadataUtility.- Author:
- Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Feb 9, 2016
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOLORSCALERANGEstatic StringCOLORSCALERANGE_DEFAULT_VALUEstatic intDEFAULT_CONNECTION_TIMEOUTThe Constant CONNECTION_TIMEOUT.static org.apache.log4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description GeoNcWMSMetadataUtility(String wmsRequest)Instantiates a new geo get styles utility.GeoNcWMSMetadataUtility(String wmsRequest, int connectionTimeout)Instantiates a new geo get styles utility.GeoNcWMSMetadataUtility(WmsUrlValidator validator)Instantiates a new geo get styles utility.GeoNcWMSMetadataUtility(WmsUrlValidator validator, int connectionTimeout)Instantiates a new geo get styles utility.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LayerStylesgetLayerStyles()Map<String,String>getMapWmsNoStandardParameters()Gets the map wms no standard parameters.StringgetWmsRequest()Gets the wms request.LayerZAxisgetZAxis()LayerStylesloadStyles()Load styles for a layer (WMS or ncWMS).LayerZAxisloadZAxis()Load z-axis values for a ncWMS layer and put it intogetZAxis()StringtoString()
-
-
-
Field Detail
-
logger
public static org.apache.log4j.Logger logger
-
COLORSCALERANGE
public static final String COLORSCALERANGE
- See Also:
- Constant Field Values
-
COLORSCALERANGE_DEFAULT_VALUE
public static final String COLORSCALERANGE_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
DEFAULT_CONNECTION_TIMEOUT
public static final int DEFAULT_CONNECTION_TIMEOUT
The Constant CONNECTION_TIMEOUT.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GeoNcWMSMetadataUtility
public GeoNcWMSMetadataUtility(String wmsRequest) throws Exception
Instantiates a new geo get styles utility.- Parameters:
wmsRequest- the wms request- Throws:
Exception- the exception
-
GeoNcWMSMetadataUtility
public GeoNcWMSMetadataUtility(String wmsRequest, int connectionTimeout) throws Exception
Instantiates a new geo get styles utility.- Parameters:
wmsRequest- the wms requestconnectionTimeout- the connection timeout sets a specified timeout value, in milliseconds, to be used when opening URLConnection.- Throws:
Exception- the exception
-
GeoNcWMSMetadataUtility
public GeoNcWMSMetadataUtility(WmsUrlValidator validator) throws Exception
Instantiates a new geo get styles utility.- Parameters:
validator- the validator- Throws:
Exception- the exception
-
GeoNcWMSMetadataUtility
public GeoNcWMSMetadataUtility(WmsUrlValidator validator, int connectionTimeout) throws Exception
Instantiates a new geo get styles utility.- Parameters:
validator- the validatorconnectionTimeout- the connection timeout sets a specified timeout value, in milliseconds, to be used when opening URLConnection.- Throws:
Exception- the exception
-
-
Method Detail
-
loadStyles
public LayerStyles loadStyles()
Load styles for a layer (WMS or ncWMS). This method puts styles for a layer into ListLayerStyles.getGeoStyles()and override the value ofNcWmsGetMetadataRequest.COLORSCALERANGEfor ncWMS styles and put it into MapLayerStyles.getMapNcWmsStyles()- Returns:
- the styles
-
loadZAxis
public LayerZAxis loadZAxis() throws Exception
Load z-axis values for a ncWMS layer and put it intogetZAxis()- Returns:
- Throws:
Exception
-
getZAxis
public LayerZAxis getZAxis()
- Returns:
- the zAxis
-
getLayerStyles
public LayerStyles getLayerStyles()
- Returns:
- the layerStyles
-
getWmsRequest
public String getWmsRequest()
Gets the wms request.- Returns:
- the wmsRequest
-
getMapWmsNoStandardParameters
public Map<String,String> getMapWmsNoStandardParameters()
Gets the map wms no standard parameters.- Returns:
- the map wms no standard parameters
-
-