public class Geo3dShape extends Object
GeoShape
("Geo3D") -- a 3D planar geometry based Spatial4j Shape implementation.
Geo3D implements shapes on the surface of a sphere or ellipsoid.Modifier and Type | Field and Description |
---|---|
SpatialContext |
ctx |
PlanetModel |
planetModel |
protected static double |
ROUNDOFF_ADJUSTMENT
The required size of this adjustment depends on the actual planetary model chosen.
|
GeoShape |
shape |
Constructor and Description |
---|
Geo3dShape(GeoShape shape,
SpatialContext ctx) |
Geo3dShape(PlanetModel planetModel,
GeoShape shape,
SpatialContext ctx) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
double |
getArea(SpatialContext ctx) |
Rectangle |
getBoundingBox() |
Shape |
getBuffered(double distance,
SpatialContext ctx) |
Point |
getCenter() |
SpatialContext |
getContext() |
boolean |
hasArea() |
int |
hashCode() |
boolean |
isEmpty() |
protected SpatialRelation |
relate(Point p) |
protected SpatialRelation |
relate(Rectangle r) |
SpatialRelation |
relate(Shape other) |
String |
toString() |
protected static final double ROUNDOFF_ADJUSTMENT
public final SpatialContext ctx
public final GeoShape shape
public final PlanetModel planetModel
public Geo3dShape(GeoShape shape, SpatialContext ctx)
public Geo3dShape(PlanetModel planetModel, GeoShape shape, SpatialContext ctx)
public SpatialContext getContext()
public SpatialRelation relate(Shape other)
protected SpatialRelation relate(Rectangle r)
protected SpatialRelation relate(Point p)
public Rectangle getBoundingBox()
public boolean hasArea()
public double getArea(SpatialContext ctx)
public Point getCenter()
public Shape getBuffered(double distance, SpatialContext ctx)
public boolean isEmpty()