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