Class BufferGeometryValidator
- java.lang.Object
-
- edu.gsu.cs.dmlab.geometry.validation.BufferGeometryValidator
-
- All Implemented Interfaces:
IGeometryValidator
public class BufferGeometryValidator extends Object implements IGeometryValidator
A geometry validator that takes an input geometry and attempts to ensure that it is valid by performing a set of functions to the geometry, ensuring that points are listed in the clockwise order. This functionality was produced for the work described in Boubrahimi et. al, 2018.- Author:
- Original Soukaina Filali Boubrahimi, refactored by Dustin Kempton, Surabhi Priya, Data Mining Lab, Georgia State University
-
-
Constructor Summary
Constructors Constructor Description BufferGeometryValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.locationtech.jts.geom.Geometry
produceValidGeometry(org.locationtech.jts.geom.Geometry geom)
Performs some validation function on the input geometry and returns a new geometry that conforms to that validation method.
-
-
-
Method Detail
-
produceValidGeometry
public org.locationtech.jts.geom.Geometry produceValidGeometry(org.locationtech.jts.geom.Geometry geom)
Description copied from interface:IGeometryValidator
Performs some validation function on the input geometry and returns a new geometry that conforms to that validation method. An example would be to ensure that the coordinate list is in a counterclockwise direction.- Specified by:
produceValidGeometry
in interfaceIGeometryValidator
- Parameters:
geom
- The input geometry to force to conform to a set of validity rules.- Returns:
- A valid copy of the input geometry.
-
-