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 ofHorizontalPositions 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 booleancontains(HorizontalPosition position)booleanequals(Object obj)BoundingBoxgetBoundingBox()Returns the bounding box of the domain in the domain's own coordinate reference system.BoundingBoxgetCoordinateBounds()org.opengis.referencing.crs.CoordinateReferenceSystemgetCoordinateReferenceSystem()Returns the co-ordinate reference system of this domainArray1D<HorizontalPosition>getDomainObjects()Returns anArrayof domain objects that comprise this domain.org.opengis.metadata.extent.GeographicBoundingBoxgetGeographicBoundingBox()Returns the bounding box of the domain in WGS84 latitude-longitude coordinates.org.joda.time.DateTimegetTime()VerticalPositiongetVerticalPosition()inthashCode()longsize()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
BoundingBoxwhich fully contains thisPointCollectionDomain
-
getTime
public org.joda.time.DateTime getTime()
- Returns:
- The time common to all points in the
PointCollectionDomain(nullif none is defined)
-
getVerticalPosition
public VerticalPosition getVerticalPosition()
- Returns:
- The vertical position common to all points in this
PointCollectionDomain(nullif none is defined)
-
getDomainObjects
public Array1D<HorizontalPosition> getDomainObjects()
Description copied from interface:DiscreteDomainReturns anArrayof domain objects that comprise this domain.- Specified by:
getDomainObjectsin interfaceDiscreteDomain<HorizontalPosition,HorizontalPosition>
-
contains
public boolean contains(HorizontalPosition position)
- Specified by:
containsin interfaceDomain<HorizontalPosition>- Returns:
- true if the given position is contained within this domain.
-
getBoundingBox
public BoundingBox getBoundingBox()
Description copied from interface:HorizontalDomainReturns 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 aBoundingBoxin a different CRS. Consequently thisBoundingBoxis not guaranteed to be a tight bound around the domain.- Specified by:
getBoundingBoxin interfaceHorizontalDomain
-
getGeographicBoundingBox
public org.opengis.metadata.extent.GeographicBoundingBox getGeographicBoundingBox()
Description copied from interface:HorizontalDomainReturns the bounding box of the domain in WGS84 latitude-longitude coordinates.- Specified by:
getGeographicBoundingBoxin interfaceHorizontalDomain
-
getCoordinateReferenceSystem
public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
Description copied from interface:HorizontalDomainReturns the co-ordinate reference system of this domain- Specified by:
getCoordinateReferenceSystemin interfaceHorizontalDomain
-
size
public long size()
Description copied from interface:DiscreteHorizontalDomainReturns the size of this domain- Specified by:
sizein interfaceDiscreteHorizontalDomain<HorizontalPosition>
-
-