public class SpatialArgs extends Object
Shape and the SpatialOperation.| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_DIST_PRECISION |
| Constructor and Description |
|---|
SpatialArgs(SpatialOperation operation) |
SpatialArgs(SpatialOperation operation,
com.spatial4j.core.shape.Shape shape) |
| Modifier and Type | Method and Description |
|---|---|
Double |
getDistPrecision()
The fraction of the distance from the center of the query shape to its nearest edge
that is considered acceptable error.
|
Double |
getMax() |
Double |
getMin() |
SpatialOperation |
getOperation() |
com.spatial4j.core.shape.Shape |
getShape()
Considers
SpatialOperation.BBoxWithin in returning the shape. |
void |
setDistPrecision(Double distPrecision) |
void |
setMax(Double max) |
void |
setMin(Double min) |
void |
setOperation(SpatialOperation operation) |
void |
setShape(com.spatial4j.core.shape.Shape shape) |
String |
toString() |
void |
validate()
Check if the arguments make sense -- throw an exception if not
|
public static final double DEFAULT_DIST_PRECISION
public SpatialArgs(SpatialOperation operation)
public SpatialArgs(SpatialOperation operation, com.spatial4j.core.shape.Shape shape)
public void validate()
throws com.spatial4j.core.exception.InvalidSpatialArgument
com.spatial4j.core.exception.InvalidSpatialArgumentpublic SpatialOperation getOperation()
public void setOperation(SpatialOperation operation)
public com.spatial4j.core.shape.Shape getShape()
SpatialOperation.BBoxWithin in returning the shape.public void setShape(com.spatial4j.core.shape.Shape shape)
public Double getDistPrecision()
sqrt(shape.bbox.area)/2And the error distance is beyond the shape such that the shape is a minimum shape.
public void setDistPrecision(Double distPrecision)
public Double getMin()
public void setMin(Double min)
public Double getMax()
public void setMax(Double max)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.