Package uk.ac.rdg.resc.edal.wms
Class GetMapParameters
- java.lang.Object
-
- uk.ac.rdg.resc.edal.wms.GetMapParameters
-
- Direct Known Subclasses:
GetFeatureInfoParameters
public class GetMapParameters extends Object
Object representing a request to the GetMap operation. This simply parses the request and only does very basic sanity checking on the parameters (e.g. checking for valid integers).- Author:
- Guy Griffiths
-
-
Field Summary
Fields Modifier and Type Field Description protected PlottingDomainParamsplottingDomainParamsprotected StringwmsVersion
-
Constructor Summary
Constructors Constructor Description GetMapParameters(RequestParams params, WmsCatalogue catalogue)Creates a new instance of GetMapParameter from the given RequestParams
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.joda.time.DateTime>getAnimationTimesteps()StringgetFormatString()intgetFrameRate()ImageFormatgetImageFormat()PlottingDomainParamsgetPlottingDomainParameters()GetMapStyleParamsgetStyleParameters()StringgetWmsVersion()booleanisAnimation()
-
-
-
Field Detail
-
wmsVersion
protected String wmsVersion
-
plottingDomainParams
protected PlottingDomainParams plottingDomainParams
-
-
Constructor Detail
-
GetMapParameters
public GetMapParameters(RequestParams params, WmsCatalogue catalogue) throws EdalException
Creates a new instance of GetMapParameter from the given RequestParams- Parameters:
params- ARequestParamsobject representing the URL parameters to parsecatalogue- AWmsCatalogue. This is used to determine theChronologyof the dataset being referred to so that the time values can be parsed correctly- Throws:
EdalException- if the request is invalid
-
-
Method Detail
-
getPlottingDomainParameters
public PlottingDomainParams getPlottingDomainParameters()
-
getStyleParameters
public GetMapStyleParams getStyleParameters()
-
getWmsVersion
public String getWmsVersion()
-
isAnimation
public boolean isAnimation()
-
getAnimationTimesteps
public List<org.joda.time.DateTime> getAnimationTimesteps()
-
getFrameRate
public int getFrameRate()
-
getImageFormat
public ImageFormat getImageFormat() throws InvalidFormatException
- Returns:
- The
ImageFormatcorresponding to the supplied FORMAT argument - Throws:
InvalidFormatException- if the supplied FORMAT does not represent a supportedImageFormat
-
getFormatString
public String getFormatString()
- Returns:
- The supplied format string, regardless of whether it represents a supported image type
-
-