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 PlottingDomainParams
plottingDomainParams
protected String
wmsVersion
-
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()
String
getFormatString()
int
getFrameRate()
ImageFormat
getImageFormat()
PlottingDomainParams
getPlottingDomainParameters()
GetMapStyleParams
getStyleParameters()
String
getWmsVersion()
boolean
isAnimation()
-
-
-
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
- ARequestParams
object representing the URL parameters to parsecatalogue
- AWmsCatalogue
. This is used to determine theChronology
of 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
ImageFormat
corresponding 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
-
-