|
GeoAPI 1.0 Build 2004-05-18 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The Bounds interface serves as the base interface
for all objects that represent a geometric boundary of some kind.
The implementation of the contains method should determine
whether a given point lies inside or outside of this boundary.
| Method Summary | |
|---|---|
boolean |
contains(DirectPosition location)
This function determines if the given point lies within the boundary represented by this object. |
void |
expandToInclude(DirectPosition location)
Calling this method should enlarge the boundary represented by this object such that it includes the given point. |
CoordinateReferenceSystem |
getCoordinateReferenceSystem()
Returns the Coordinate Reference System for this Bounds. |
boolean |
isValid()
This function returns true if two conditions are met: first, that the object has been initialized with valid values; and second, that those values form a valid, non-empty boundary. |
void |
setCoordinateReferenceSystem(CoordinateReferenceSystem crs)
Sets the Coordinate Reference System for this Bounds. |
void |
setValid(boolean newValue)
This function sets a flag that indicates whether or not this object represents a valid boundary. |
| Method Detail |
|---|
boolean isValid()
Bounds and may depend on the types of coordinates used
or the coordinate space in which they reside. An XY
bounding rectangle on a map canvas may not be valid if its "upper left"
is to the right of its "lower right".
void setValid(boolean newValue)
boolean contains(DirectPosition location)
void expandToInclude(DirectPosition location)
location - The location to include.CoordinateReferenceSystem getCoordinateReferenceSystem()
void setCoordinateReferenceSystem(CoordinateReferenceSystem crs)
crs - the Coordinate Reference System for this Bounds.
|
GeoAPI 1.0 Build 2004-05-18 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
|
Symbols, terms and definitions | Copyright OpenGIS® Consortium |