Class PolygonizerGeometryValidator

  • All Implemented Interfaces:
    IGeometryValidator

    public class PolygonizerGeometryValidator
    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. If the geometry is a polygon or multi polygon, self intersections / inconsistencies are fixed. Otherwise the geometry is returned. 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 Detail

      • PolygonizerGeometryValidator

        public PolygonizerGeometryValidator()
    • 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 interface IGeometryValidator
        Parameters:
        geom - The input geometry to force to conform to a set of validity rules.
        Returns:
        A valid copy of the input geometry.