public class Geo3dShape extends Object implements org.locationtech.spatial4j.shape.Shape
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 |
|---|---|
org.locationtech.spatial4j.context.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,
org.locationtech.spatial4j.context.SpatialContext ctx) |
Geo3dShape(PlanetModel planetModel,
GeoShape shape,
org.locationtech.spatial4j.context.SpatialContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
double |
getArea(org.locationtech.spatial4j.context.SpatialContext ctx) |
org.locationtech.spatial4j.shape.Rectangle |
getBoundingBox() |
org.locationtech.spatial4j.shape.Shape |
getBuffered(double distance,
org.locationtech.spatial4j.context.SpatialContext ctx) |
org.locationtech.spatial4j.shape.Point |
getCenter() |
org.locationtech.spatial4j.context.SpatialContext |
getContext() |
boolean |
hasArea() |
int |
hashCode() |
boolean |
isEmpty() |
protected org.locationtech.spatial4j.shape.SpatialRelation |
relate(org.locationtech.spatial4j.shape.Point p) |
protected org.locationtech.spatial4j.shape.SpatialRelation |
relate(org.locationtech.spatial4j.shape.Rectangle r) |
org.locationtech.spatial4j.shape.SpatialRelation |
relate(org.locationtech.spatial4j.shape.Shape other) |
String |
toString() |
protected static final double ROUNDOFF_ADJUSTMENT
public final org.locationtech.spatial4j.context.SpatialContext ctx
public final GeoShape shape
public final PlanetModel planetModel
public Geo3dShape(GeoShape shape, org.locationtech.spatial4j.context.SpatialContext ctx)
public Geo3dShape(PlanetModel planetModel, GeoShape shape, org.locationtech.spatial4j.context.SpatialContext ctx)
public org.locationtech.spatial4j.context.SpatialContext getContext()
getContext in interface org.locationtech.spatial4j.shape.Shapepublic org.locationtech.spatial4j.shape.SpatialRelation relate(org.locationtech.spatial4j.shape.Shape other)
relate in interface org.locationtech.spatial4j.shape.Shapeprotected org.locationtech.spatial4j.shape.SpatialRelation relate(org.locationtech.spatial4j.shape.Rectangle r)
protected org.locationtech.spatial4j.shape.SpatialRelation relate(org.locationtech.spatial4j.shape.Point p)
public org.locationtech.spatial4j.shape.Rectangle getBoundingBox()
getBoundingBox in interface org.locationtech.spatial4j.shape.Shapepublic boolean hasArea()
hasArea in interface org.locationtech.spatial4j.shape.Shapepublic double getArea(org.locationtech.spatial4j.context.SpatialContext ctx)
getArea in interface org.locationtech.spatial4j.shape.Shapepublic org.locationtech.spatial4j.shape.Point getCenter()
getCenter in interface org.locationtech.spatial4j.shape.Shapepublic org.locationtech.spatial4j.shape.Shape getBuffered(double distance,
org.locationtech.spatial4j.context.SpatialContext ctx)
getBuffered in interface org.locationtech.spatial4j.shape.Shapepublic boolean isEmpty()
isEmpty in interface org.locationtech.spatial4j.shape.Shapepublic boolean equals(Object other)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.