|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.index.strtree.GeometryItemDistance
public class GeometryItemDistance
An ItemDistance function for
items which are Geometry
s,
using the Geometry.distance(Geometry)
method.
Constructor Summary | |
---|---|
GeometryItemDistance()
|
Method Summary | |
---|---|
double |
distance(ItemBoundable item1,
ItemBoundable item2)
Computes the distance between two Geometry items,
using the Geometry.distance(Geometry) method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeometryItemDistance()
Method Detail |
---|
public double distance(ItemBoundable item1, ItemBoundable item2)
Geometry
items,
using the Geometry.distance(Geometry)
method.
distance
in interface ItemDistance
item1
- an item which is a Geometryitem2
- an item which is a Geometry
java.lang.ClassCastException
- if either item is not a Geometry
|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |