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 ofGeoPositions 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 booleancontains(GeoPosition position)booleanequals(Object obj)org.joda.time.ChronologygetChronology()BoundingBoxgetCoordinateBounds()Array1D<GeoPosition>getDomainObjects()Returns anArrayof domain objects that comprise this domain.org.opengis.referencing.crs.CoordinateReferenceSystemgetHorizontalCrs()Extent<org.joda.time.DateTime>getTimeExtent()VerticalCrsgetVerticalCrs()Extent<Double>getVerticalExtent()inthashCode()intsize()
-
-
-
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
BoundingBoxwhich fully contains thisTrajectoryDomain
-
getTimeExtent
public Extent<org.joda.time.DateTime> getTimeExtent()
- Returns:
- An
Extentwhich fully contains thisTrajectoryDomain
-
getVerticalExtent
public Extent<Double> getVerticalExtent()
- Returns:
- An
Extentwhich fully contains thisTrajectoryDomain
-
size
public int size()
- Returns:
- The number of
GeoPositionobjects in thisTrajectoryDomain
-
getDomainObjects
public Array1D<GeoPosition> getDomainObjects()
Description copied from interface:DiscreteDomainReturns anArrayof domain objects that comprise this domain.- Specified by:
getDomainObjectsin interfaceDiscreteDomain<GeoPosition,GeoPosition>
-
contains
public boolean contains(GeoPosition position)
- Specified by:
containsin interfaceDomain<GeoPosition>- Returns:
- true if the given position is contained within this domain.
-
-