org.geolatte.geom.ApproximateGeometryEquality Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geolatte-geom Show documentation
Show all versions of geolatte-geom Show documentation
This geoLatte-geom library offers a geometry model that conforms to the OGC Simple Features for SQL
specification.
The newest version!
package org.geolatte.geom;
/**
* Created by Karel Maesen, Geovise BVBA on 2019-03-27.
*/
public class ApproximateGeometryEquality extends GeometryPositionEquality {
/**
* Constructs an instance that determines equality by comparing the positions to within the
* specified precision
*
* @param precision the precision to use when determining equality
*/
public ApproximateGeometryEquality(double precision) {
super(new WithinTolerancePositionEquality(precision));
}
@Override
public boolean equals(Geometry
first, Geometry
second) {
return super.equals(first, second);
}
}