public interface BoundingBox
| Modifier and Type | Method and Description |
|---|---|
BoundingBox |
clipToCoordinateSystem() |
BoundingBox |
convert(GeometryFactory geometryFactory) |
BoundingBox |
convert(GeometryFactory geometryFactory,
int axisCount) |
boolean |
coveredBy(double... bounds) |
boolean |
covers(BoundingBox other)
Tests if the
BoundingBox other
lies wholely inside this BoundingBox (inclusive of the boundary). |
boolean |
covers(double x,
double y)
Tests if the given point lies in or on the envelope.
|
boolean |
covers(Geometry geometry) |
boolean |
covers(Point point)
Tests if the given point lies in or on the envelope.
|
double |
distance(BoundingBox env)
Computes the distance between this and another
BoundingBox. |
double |
distance(Geometry point) |
BoundingBox |
expand(double maxDistance) |
BoundingBox |
expand(double deltaX,
double deltaY) |
BoundingBox |
expand(Point point) |
BoundingBox |
expandPercent(double d) |
BoundingBox |
expandPercent(double factorX,
double factorY) |
BoundingBox |
expandToInclude(BoundingBox boundingBox) |
BoundingBox |
expandToInclude(double... coordinates) |
BoundingBox |
expandToInclude(Geometry geometry) |
BoundingBox |
expandToInclude(Record record) |
double |
getArea()
Gets the area of this envelope.
|
double |
getAspectRatio() |
int |
getAxisCount() |
double[] |
getBounds() |
double[] |
getBounds(int axisCount) |
Point |
getCentre() |
double |
getCentreX() |
double |
getCentreY() |
CoordinateSystem |
getCoordinateSystem() |
Point |
getCornerPoint(int i)
maxX,minY
minX,minY
minX,maxY
maxX,maxY
|
LineString |
getCornerPoints() |
GeometryFactory |
getGeometryFactory() |
double |
getHeight()
Returns the difference between the maximum and minimum y values.
|
javax.measure.Measure<javax.measure.quantity.Length> |
getHeightLength() |
double |
getMax(int i) |
<Q extends javax.measure.quantity.Quantity> |
getMaximum(int axisIndex) |
<Q extends javax.measure.quantity.Quantity> |
getMaximum(int axisIndex,
javax.measure.unit.Unit convertUnit) |
double |
getMaxX()
Returns the
BoundingBoxs maximum x-value. |
double |
getMaxY()
Returns the
BoundingBoxs maximum y-value. |
double |
getMin(int i) |
<Q extends javax.measure.quantity.Quantity> |
getMinimum(int axisIndex) |
<Q extends javax.measure.quantity.Quantity> |
getMinimum(int axisIndex,
javax.measure.unit.Unit convertUnit) |
double |
getMinX()
Returns the
BoundingBoxs minimum x-value. |
double |
getMinY()
Returns the
BoundingBoxs minimum y-value. |
Point |
getRandomPointWithin() |
int |
getSrid() |
Point |
getTopLeftPoint() |
double |
getWidth()
Returns the difference between the maximum and minimum x values.
|
javax.measure.Measure<javax.measure.quantity.Length> |
getWidthLength() |
BoundingBox |
intersection(BoundingBox env)
Computes the intersection of two
BoundingBoxs. |
boolean |
intersects(BoundingBox other)
Check if the region defined by
other
overlaps (intersects) the region of this BoundingBox. |
boolean |
intersects(double x,
double y)
Check if the point
(x, y)
overlaps (lies inside) the region of this BoundingBox. |
boolean |
intersects(double x1,
double y1,
double x2,
double y2)
Check if the line
(x1, y1) -> (x2, y2)
intersects (covered by or crosses) the region of this BoundingBox. |
boolean |
intersects(Point p)
Check if the point
p
overlaps (lies inside) the region of this BoundingBox. |
boolean |
isEmpty() |
BoundingBox |
move(double deltaX,
double deltaY) |
Geometry |
toGeometry()
Creates a
Geometry with the same extent as the given envelope. |
Polygon |
toPolygon() |
Polygon |
toPolygon(GeometryFactory geometryFactory) |
Polygon |
toPolygon(GeometryFactory factory,
int numPoints) |
Polygon |
toPolygon(GeometryFactory geometryFactory,
int numX,
int numY) |
Polygon |
toPolygon(int numSegments) |
Polygon |
toPolygon(int numX,
int numY) |
BoundingBox clipToCoordinateSystem()
BoundingBox convert(GeometryFactory geometryFactory)
BoundingBox convert(GeometryFactory geometryFactory, int axisCount)
boolean coveredBy(double... bounds)
boolean covers(BoundingBox other)
BoundingBox other
lies wholely inside this BoundingBox (inclusive of the boundary).other - the BoundingBox to checkBoundingBox covers the otherboolean covers(double x,
double y)
x - the x-coordinate of the point which this BoundingBox is
being checked for containingy - the y-coordinate of the point which this BoundingBox is
being checked for containingtrue if (x, y) lies in the interior or
on the boundary of this BoundingBox.boolean covers(Geometry geometry)
boolean covers(Point point)
p - the point which this BoundingBox is
being checked for containingtrue if the point lies in the interior or
on the boundary of this BoundingBox.double distance(BoundingBox env)
BoundingBox.
The distance between overlapping BoundingBoxs is 0. Otherwise, the
distance is the Euclidean distance between the closest points.double distance(Geometry point)
BoundingBox expand(double maxDistance)
BoundingBox expand(double deltaX, double deltaY)
BoundingBox expand(Point point)
BoundingBox expandPercent(double d)
BoundingBox expandPercent(double factorX, double factorY)
BoundingBox expandToInclude(BoundingBox boundingBox)
BoundingBox expandToInclude(double... coordinates)
BoundingBox expandToInclude(Geometry geometry)
BoundingBox expandToInclude(Record record)
double getArea()
double getAspectRatio()
int getAxisCount()
double[] getBounds()
double[] getBounds(int axisCount)
Point getCentre()
double getCentreX()
double getCentreY()
CoordinateSystem getCoordinateSystem()
Point getCornerPoint(int i)
LineString getCornerPoints()
GeometryFactory getGeometryFactory()
double getHeight()
BoundingBoxjavax.measure.Measure<javax.measure.quantity.Length> getHeightLength()
double getMax(int i)
<Q extends javax.measure.quantity.Quantity> javax.measure.Measurable<Q> getMaximum(int axisIndex)
<Q extends javax.measure.quantity.Quantity> double getMaximum(int axisIndex,
javax.measure.unit.Unit convertUnit)
double getMaxX()
BoundingBoxs maximum x-value. min x > max x
indicates that this is a null BoundingBox.double getMaxY()
BoundingBoxs maximum y-value. min y > max y
indicates that this is a null BoundingBox.double getMin(int i)
<Q extends javax.measure.quantity.Quantity> javax.measure.Measurable<Q> getMinimum(int axisIndex)
<Q extends javax.measure.quantity.Quantity> double getMinimum(int axisIndex,
javax.measure.unit.Unit convertUnit)
double getMinX()
BoundingBoxs minimum x-value. min x > max x
indicates that this is a null BoundingBox.double getMinY()
BoundingBoxs minimum y-value. min y > max y
indicates that this is a null BoundingBox.Point getRandomPointWithin()
int getSrid()
Point getTopLeftPoint()
double getWidth()
BoundingBoxjavax.measure.Measure<javax.measure.quantity.Length> getWidthLength()
BoundingBox intersection(BoundingBox env)
BoundingBoxs.env - the envelope to intersect withboolean intersects(BoundingBox other)
other
overlaps (intersects) the region of this BoundingBox.other - the BoundingBox which this BoundingBox is
being checked for overlappingtrue if the BoundingBoxs overlapboolean intersects(double x,
double y)
(x, y)
overlaps (lies inside) the region of this BoundingBox.x - the x-ordinate of the pointy - the y-ordinate of the pointtrue if the point overlaps this BoundingBoxboolean intersects(double x1,
double y1,
double x2,
double y2)
(x1, y1) -> (x2, y2)
intersects (covered by or crosses) the region of this BoundingBox.true if the line overlaps this BoundingBoxboolean intersects(Point p)
p
overlaps (lies inside) the region of this BoundingBox.p - the Coordinate to be testedtrue if the point overlaps this BoundingBoxboolean isEmpty()
BoundingBox move(double deltaX, double deltaY)
Geometry toGeometry()
Geometry with the same extent as the given envelope.
The Geometry returned is guaranteed to be valid.
To provide this behaviour, the following cases occur:
If the BoundingBoxDoubleGf is:
Point
Point
LineString
Polygon> whose points are (minx, miny),
(minx, maxy), (maxx, maxy), (maxx, miny), (minx, miny).
envelope - the BoundingBoxDoubleGf to convertPoint (for null BoundingBoxDoubleGfs),
a Point (when min x = max x and min y = max y) or a
Polygon (in all other cases)Polygon toPolygon()
Polygon toPolygon(GeometryFactory geometryFactory)
Polygon toPolygon(GeometryFactory factory, int numPoints)
Polygon toPolygon(GeometryFactory geometryFactory, int numX, int numY)
Polygon toPolygon(int numSegments)
Polygon toPolygon(int numX, int numY)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.