Package uk.ac.rdg.resc.edal.domain
Class TrajectoryDomain
- java.lang.Object
-
- uk.ac.rdg.resc.edal.domain.TrajectoryDomain
-
- All Implemented Interfaces:
DiscreteDomain<GeoPosition,GeoPosition>
,DiscretePointDomain<GeoPosition>
,Domain<GeoPosition>
public class TrajectoryDomain extends Object implements DiscretePointDomain<GeoPosition>
The domain of aTrajectoryFeature
: a set ofGeoPosition
s which are ordered in time.- Author:
- Guy Griffiths, Jon Blower
-
-
Constructor Summary
Constructors Constructor Description TrajectoryDomain(List<GeoPosition> positions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(GeoPosition position)
boolean
equals(Object obj)
org.joda.time.Chronology
getChronology()
BoundingBox
getCoordinateBounds()
Array1D<GeoPosition>
getDomainObjects()
Returns anArray
of domain objects that comprise this domain.org.opengis.referencing.crs.CoordinateReferenceSystem
getHorizontalCrs()
Extent<org.joda.time.DateTime>
getTimeExtent()
VerticalCrs
getVerticalCrs()
Extent<Double>
getVerticalExtent()
int
hashCode()
int
size()
-
-
-
Constructor Detail
-
TrajectoryDomain
public TrajectoryDomain(List<GeoPosition> positions) throws MismatchedCrsException, IncorrectDomainException
-
-
Method Detail
-
getVerticalCrs
public VerticalCrs getVerticalCrs()
- Returns:
- The vertical coordinate reference system used to reference the
positions
.
-
getHorizontalCrs
public org.opengis.referencing.crs.CoordinateReferenceSystem getHorizontalCrs()
- Returns:
- The horizontal coordinate reference system used to reference the
positions
.
-
getChronology
public org.joda.time.Chronology getChronology()
- Returns:
- The calendar system used to reference the temporal components of
the
positions
.
-
getCoordinateBounds
public BoundingBox getCoordinateBounds()
- Returns:
- A
BoundingBox
which fully contains thisTrajectoryDomain
-
getTimeExtent
public Extent<org.joda.time.DateTime> getTimeExtent()
- Returns:
- An
Extent
which fully contains thisTrajectoryDomain
-
getVerticalExtent
public Extent<Double> getVerticalExtent()
- Returns:
- An
Extent
which fully contains thisTrajectoryDomain
-
size
public int size()
- Returns:
- The number of
GeoPosition
objects in thisTrajectoryDomain
-
getDomainObjects
public Array1D<GeoPosition> getDomainObjects()
Description copied from interface:DiscreteDomain
Returns anArray
of domain objects that comprise this domain.- Specified by:
getDomainObjects
in interfaceDiscreteDomain<GeoPosition,GeoPosition>
-
contains
public boolean contains(GeoPosition position)
- Specified by:
contains
in interfaceDomain<GeoPosition>
- Returns:
- true if the given position is contained within this domain.
-
-