Package uk.ac.rdg.resc.edal.feature
Class PointFeature
- java.lang.Object
-
- uk.ac.rdg.resc.edal.feature.AbstractDiscreteFeature<GeoPosition,GeoPosition>
-
- uk.ac.rdg.resc.edal.feature.PointFeature
-
- All Implemented Interfaces:
Serializable,DiscreteFeature<GeoPosition,GeoPosition>,Feature<GeoPosition>
public class PointFeature extends AbstractDiscreteFeature<GeoPosition,GeoPosition>
A measurement at a single 4D point- Author:
- Guy Griffiths
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PointDomaingetDomain()GeoPositiongetGeoPosition()Convenience method for returning the 4d position of this feature.HorizontalPositiongetHorizontalPosition()Convenience method for returning the horizontal position.NumbergetValue(String varId)Convenience method for extracting the single value associated with a particular parameter.Array1D<Number>getValues(String paramId)Gets the array of values for the given parameter.-
Methods inherited from class uk.ac.rdg.resc.edal.feature.AbstractDiscreteFeature
getDescription, getFeatureProperties, getId, getName, getParameter, getParameterMap, getVariableIds
-
-
-
-
Method Detail
-
getDomain
public PointDomain getDomain()
Description copied from interface:DiscreteFeature- Specified by:
getDomainin interfaceDiscreteFeature<GeoPosition,GeoPosition>- Specified by:
getDomainin interfaceFeature<GeoPosition>- Overrides:
getDomainin classAbstractDiscreteFeature<GeoPosition,GeoPosition>- Returns:
- the domain of the values contained with the feature. May not
return
null
-
getHorizontalPosition
public HorizontalPosition getHorizontalPosition()
Convenience method for returning the horizontal position. This is equivalent to callinggetGeoPosition()and extracting the horizontal part of the position- Returns:
- The
HorizontalPositionof this feature
-
getGeoPosition
public GeoPosition getGeoPosition()
Convenience method for returning the 4d position of this feature. This is equivalent to callingPointDomain.getDomainObjects()and extracting the first (and only) position.- Returns:
- The
GeoPositionof this feature
-
getValues
public Array1D<Number> getValues(String paramId)
Description copied from interface:DiscreteFeatureGets the array of values for the given parameter. The shape of this array must match the shape of the array of domain objects (fromDiscreteDomain.getDomainObjects()).- Specified by:
getValuesin interfaceDiscreteFeature<GeoPosition,GeoPosition>- Overrides:
getValuesin classAbstractDiscreteFeature<GeoPosition,GeoPosition>- Parameters:
paramId- The identifier from theFeature.getVariableIds()set of parameter IDs.- Returns:
- the list of values for the requested member
-
-