public class BufferGeometryMatcher extends java.lang.Object implements DiffGeometryMatcher
| Modifier and Type | Field and Description |
|---|---|
static double |
ERROR_TOLERANCE |
| Constructor and Description |
|---|
BufferGeometryMatcher(double tolerance) |
| Modifier and Type | Method and Description |
|---|---|
com.vividsolutions.jts.geom.Geometry |
getQueryGeometry() |
boolean |
isMatch(com.vividsolutions.jts.geom.Geometry geom) |
static boolean |
isMatch(com.vividsolutions.jts.geom.Geometry g1,
com.vividsolutions.jts.geom.Geometry g2,
double tolerance)
Computes whether two geometries match under
this similarity test.
|
static double |
maxOrthogonalDistance(com.vividsolutions.jts.geom.Envelope env1,
com.vividsolutions.jts.geom.Envelope env2) |
void |
setQueryGeometry(com.vividsolutions.jts.geom.Geometry geom) |
public static final double ERROR_TOLERANCE
public static boolean isMatch(com.vividsolutions.jts.geom.Geometry g1,
com.vividsolutions.jts.geom.Geometry g2,
double tolerance)
g1 - a Geometryg2 - a Geometrypublic static double maxOrthogonalDistance(com.vividsolutions.jts.geom.Envelope env1,
com.vividsolutions.jts.geom.Envelope env2)
public void setQueryGeometry(com.vividsolutions.jts.geom.Geometry geom)
setQueryGeometry in interface DiffGeometryMatcherpublic com.vividsolutions.jts.geom.Geometry getQueryGeometry()
getQueryGeometry in interface DiffGeometryMatcherpublic boolean isMatch(com.vividsolutions.jts.geom.Geometry geom)
isMatch in interface DiffGeometryMatcher