public class GeoCompositePolygon extends GeoBaseCompositeShape<T> implements GeoPolygon
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
|
shapes
planetModel
Constructor and Description |
---|
GeoCompositePolygon(PlanetModel planetModel)
Constructor.
|
GeoCompositePolygon(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, write
getPlanetModel
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
intersects
getEdgePoints, intersects
getPlanetModel
readBitSet, 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, writeString
computeOutsideDistance, computeOutsideDistance
isWithin, isWithin
getRelationship
protected static final int ALL_INSIDE
protected static final int SOME_INSIDE
protected static final int NONE_INSIDE
public GeoCompositePolygon(PlanetModel planetModel)
public GeoCompositePolygon(PlanetModel planetModel, InputStream inputStream) throws IOException
planetModel
- is the planet model.inputStream
- is the input stream.IOException
public boolean equals(Object o)
equals
in class GeoBaseCompositeShape<GeoPolygon>
public boolean intersects(GeoShape geoShape)
GeoAreaShape
intersects
in interface GeoAreaShape
geoShape
- is the shape to assess for intersection with this shape's edges.public int getRelationship(GeoShape geoShape)
GeoArea
getRelationship
in interface GeoArea
geoShape
- 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)
GeoOutsideDistance
computeOutsideDistance
in interface GeoOutsideDistance
distanceStyle
- is the distance style.point
- is the point to compute the distance to.public double computeOutsideDistance(DistanceStyle distanceStyle, double x, double y, double z)
GeoOutsideDistance
computeOutsideDistance
in interface GeoOutsideDistance
distanceStyle
- 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.