public class NumberRangePrefixTree.SpanUnitsNRShape extends Object implements NumberRangePrefixTree.NRShape
NumberRangePrefixTree.UnitNRShape
.
Spatially speaking, it's analogous to a Rectangle but 1D. It might have been named with Range in the name but it
may be confusing since even the NumberRangePrefixTree.UnitNRShape
is in some sense a range.Modifier and Type | Method and Description |
---|---|
NumberRangePrefixTree.SpanUnitsNRShape |
clone()
A deep clone.
|
boolean |
equals(Object o) |
double |
getArea(org.locationtech.spatial4j.context.SpatialContext spatialContext) |
org.locationtech.spatial4j.shape.Rectangle |
getBoundingBox() |
org.locationtech.spatial4j.shape.Shape |
getBuffered(double v,
org.locationtech.spatial4j.context.SpatialContext spatialContext) |
org.locationtech.spatial4j.shape.Point |
getCenter() |
org.locationtech.spatial4j.context.SpatialContext |
getContext() |
NumberRangePrefixTree.UnitNRShape |
getMaxUnit() |
NumberRangePrefixTree.UnitNRShape |
getMinUnit() |
boolean |
hasArea() |
int |
hashCode() |
boolean |
isEmpty() |
org.locationtech.spatial4j.shape.SpatialRelation |
relate(NumberRangePrefixTree.SpanUnitsNRShape ext) |
org.locationtech.spatial4j.shape.SpatialRelation |
relate(org.locationtech.spatial4j.shape.Shape shape) |
NumberRangePrefixTree.NRShape |
roundToLevel(int targetLevel)
Returns this shape rounded to the target level.
|
String |
toString()
The result should be parseable by
NumberRangePrefixTree.parseShape(String) . |
public org.locationtech.spatial4j.context.SpatialContext getContext()
getContext
in interface org.locationtech.spatial4j.shape.Shape
public NumberRangePrefixTree.UnitNRShape getMinUnit()
public NumberRangePrefixTree.UnitNRShape getMaxUnit()
public NumberRangePrefixTree.NRShape roundToLevel(int targetLevel)
NumberRangePrefixTree.NRShape
roundToLevel
in interface NumberRangePrefixTree.NRShape
public org.locationtech.spatial4j.shape.SpatialRelation relate(org.locationtech.spatial4j.shape.Shape shape)
relate
in interface org.locationtech.spatial4j.shape.Shape
public org.locationtech.spatial4j.shape.SpatialRelation relate(NumberRangePrefixTree.SpanUnitsNRShape ext)
public org.locationtech.spatial4j.shape.Rectangle getBoundingBox()
getBoundingBox
in interface org.locationtech.spatial4j.shape.Shape
public boolean hasArea()
hasArea
in interface org.locationtech.spatial4j.shape.Shape
public double getArea(org.locationtech.spatial4j.context.SpatialContext spatialContext)
getArea
in interface org.locationtech.spatial4j.shape.Shape
public org.locationtech.spatial4j.shape.Point getCenter()
getCenter
in interface org.locationtech.spatial4j.shape.Shape
public org.locationtech.spatial4j.shape.Shape getBuffered(double v, org.locationtech.spatial4j.context.SpatialContext spatialContext)
getBuffered
in interface org.locationtech.spatial4j.shape.Shape
public boolean isEmpty()
isEmpty
in interface org.locationtech.spatial4j.shape.Shape
public NumberRangePrefixTree.SpanUnitsNRShape clone()
public String toString()
NumberRangePrefixTree.NRShape
NumberRangePrefixTree.parseShape(String)
.toString
in interface NumberRangePrefixTree.NRShape
toString
in class Object
public boolean equals(Object o)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.