Package uk.ac.rdg.resc.edal.domain
Class PointCollectionDomain
- java.lang.Object
-
- uk.ac.rdg.resc.edal.domain.PointCollectionDomain
-
- All Implemented Interfaces:
DiscreteDomain<HorizontalPosition,HorizontalPosition>
,DiscreteHorizontalDomain<HorizontalPosition>
,Domain<HorizontalPosition>
,HorizontalDomain
public class PointCollectionDomain extends Object implements DiscreteHorizontalDomain<HorizontalPosition>
The domain of aPointCollectionFeature
: a set ofHorizontalPosition
s with a fixed vertical position and time- Author:
- Guy Griffiths
-
-
Constructor Summary
Constructors Constructor Description PointCollectionDomain(List<HorizontalPosition> positions, VerticalPosition zPos, org.joda.time.DateTime time)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(HorizontalPosition position)
boolean
equals(Object obj)
BoundingBox
getBoundingBox()
Returns the bounding box of the domain in the domain's own coordinate reference system.BoundingBox
getCoordinateBounds()
org.opengis.referencing.crs.CoordinateReferenceSystem
getCoordinateReferenceSystem()
Returns the co-ordinate reference system of this domainArray1D<HorizontalPosition>
getDomainObjects()
Returns anArray
of domain objects that comprise this domain.org.opengis.metadata.extent.GeographicBoundingBox
getGeographicBoundingBox()
Returns the bounding box of the domain in WGS84 latitude-longitude coordinates.org.joda.time.DateTime
getTime()
VerticalPosition
getVerticalPosition()
int
hashCode()
long
size()
Returns the size of this domain
-
-
-
Constructor Detail
-
PointCollectionDomain
public PointCollectionDomain(List<HorizontalPosition> positions, VerticalPosition zPos, org.joda.time.DateTime time) throws MismatchedCrsException, IncorrectDomainException
-
-
Method Detail
-
getCoordinateBounds
public BoundingBox getCoordinateBounds()
- Returns:
- A
BoundingBox
which fully contains thisPointCollectionDomain
-
getTime
public org.joda.time.DateTime getTime()
- Returns:
- The time common to all points in the
PointCollectionDomain
(null
if none is defined)
-
getVerticalPosition
public VerticalPosition getVerticalPosition()
- Returns:
- The vertical position common to all points in this
PointCollectionDomain
(null
if none is defined)
-
getDomainObjects
public Array1D<HorizontalPosition> getDomainObjects()
Description copied from interface:DiscreteDomain
Returns anArray
of domain objects that comprise this domain.- Specified by:
getDomainObjects
in interfaceDiscreteDomain<HorizontalPosition,HorizontalPosition>
-
contains
public boolean contains(HorizontalPosition position)
- Specified by:
contains
in interfaceDomain<HorizontalPosition>
- Returns:
- true if the given position is contained within this domain.
-
getBoundingBox
public BoundingBox getBoundingBox()
Description copied from interface:HorizontalDomain
Returns the bounding box of the domain in the domain's own coordinate reference system. For domains which do not have a native co-ordinate reference system this may return aBoundingBox
in a different CRS. Consequently thisBoundingBox
is not guaranteed to be a tight bound around the domain.- Specified by:
getBoundingBox
in interfaceHorizontalDomain
-
getGeographicBoundingBox
public org.opengis.metadata.extent.GeographicBoundingBox getGeographicBoundingBox()
Description copied from interface:HorizontalDomain
Returns the bounding box of the domain in WGS84 latitude-longitude coordinates.- Specified by:
getGeographicBoundingBox
in interfaceHorizontalDomain
-
getCoordinateReferenceSystem
public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
Description copied from interface:HorizontalDomain
Returns the co-ordinate reference system of this domain- Specified by:
getCoordinateReferenceSystem
in interfaceHorizontalDomain
-
size
public long size()
Description copied from interface:DiscreteHorizontalDomain
Returns the size of this domain- Specified by:
size
in interfaceDiscreteHorizontalDomain<HorizontalPosition>
-
-