public class GeoCompositeAreaShape extends GeoBaseCompositeShape<T>
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ALL_INSIDE
All edgepoints inside shape
|
protected static int |
NONE_INSIDE
No edgepoints inside shape
|
protected static int |
SOME_INSIDE
Some edgepoints inside shape
|
shapesplanetModel| Constructor and Description |
|---|
GeoCompositeAreaShape(PlanetModel planetModel)
Constructor.
|
GeoCompositeAreaShape(PlanetModel planetModel,
InputStream inputStream)
Constructor for deserialization.
|
| Modifier and Type | Method and Description |
|---|---|
double |
computeOutsideDistance(DistanceStyle distanceStyle,
double x,
double y,
double z)
Compute this shape's distance to the GeoPoint.
|
double |
computeOutsideDistance(DistanceStyle distanceStyle,
GeoPoint point)
Compute this shape's distance to the GeoPoint.
|
boolean |
equals(Object o) |
int |
getRelationship(GeoShape geoShape)
Find the spatial relationship between a shape and the current geo area.
|
boolean |
intersects(GeoShape geoShape)
Assess whether a shape intersects with any of the edges of this shape.
|
protected int |
isGeoAreaShapeInsideShape(GeoShape geoshape)
Determine the relationship between the GeoAreShape's edgepoints and the
provided shape.
|
protected int |
isShapeInsideGeoAreaShape(GeoShape geoShape)
Determine the relationship between the GeoAreShape and the
shape's edgepoints.
|
String |
toString() |
addShape, getBounds, getEdgePoints, getShape, hashCode, intersects, isWithin, isWithin, size, writegetPlanetModelclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetEdgePoints, intersectsgetPlanetModelreadBitSet, readBoolean, readByteArray, readClass, readDouble, readHeterogeneousArray, readHomogeneousArray, readInt, readLong, readObject, readObject, readObject, readObject, readPlanetObject, readPointArray, readPolygonArray, readString, write, writeBitSet, writeBoolean, writeByteArray, writeClass, writeDouble, writeHeterogeneousArray, writeHeterogeneousArray, writeHomogeneousArray, writeHomogeneousArray, writeInt, writeLong, writeObject, writePlanetObject, writePointArray, writePointArray, writePolygonArray, writePolygonArray, writeStringcomputeOutsideDistance, computeOutsideDistanceisWithin, isWithinprotected static final int ALL_INSIDE
protected static final int SOME_INSIDE
protected static final int NONE_INSIDE
public GeoCompositeAreaShape(PlanetModel planetModel)
public GeoCompositeAreaShape(PlanetModel planetModel, InputStream inputStream) throws IOException
planetModel - is the planet model.inputStream - is the input stream.IOExceptionpublic boolean equals(Object o)
equals in class GeoBaseCompositeShape<GeoAreaShape>public boolean intersects(GeoShape geoShape)
GeoAreaShapeintersects in interface GeoAreaShapegeoShape - is the shape to assess for intersection with this shape's edges.public int getRelationship(GeoShape geoShape)
GeoAreagetRelationship in interface GeoAreageoShape - is the shape to consider.protected int isShapeInsideGeoAreaShape(GeoShape geoShape)
geoShape - is the shape.protected int isGeoAreaShapeInsideShape(GeoShape geoshape)
geoshape - is the shape.public double computeOutsideDistance(DistanceStyle distanceStyle, GeoPoint point)
GeoOutsideDistancecomputeOutsideDistance in interface GeoOutsideDistancedistanceStyle - is the distance style.point - is the point to compute the distance to.public double computeOutsideDistance(DistanceStyle distanceStyle, double x, double y, double z)
GeoOutsideDistancecomputeOutsideDistance in interface GeoOutsideDistancedistanceStyle - is the distance style.x - is the point's unit x coordinate (using U.S. convention).y - is the point's unit y coordinate (using U.S. convention).z - is the point's unit z coordinate (using U.S. convention).Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.