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 PointDomain
getDomain()
GeoPosition
getGeoPosition()
Convenience method for returning the 4d position of this feature.HorizontalPosition
getHorizontalPosition()
Convenience method for returning the horizontal position.Number
getValue(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:
getDomain
in interfaceDiscreteFeature<GeoPosition,GeoPosition>
- Specified by:
getDomain
in interfaceFeature<GeoPosition>
- Overrides:
getDomain
in 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
HorizontalPosition
of 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
GeoPosition
of this feature
-
getValues
public Array1D<Number> getValues(String paramId)
Description copied from interface:DiscreteFeature
Gets 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:
getValues
in interfaceDiscreteFeature<GeoPosition,GeoPosition>
- Overrides:
getValues
in classAbstractDiscreteFeature<GeoPosition,GeoPosition>
- Parameters:
paramId
- The identifier from theFeature.getVariableIds()
set of parameter IDs.- Returns:
- the list of values for the requested member
-
-