Class GeometryUtilities


  • public class GeometryUtilities
    extends Object
    Set of geometry utilities used throughout the project.
    Author:
    Thaddeus Gholston, Data Mining Lab, Georgia State University
    • Constructor Detail

      • GeometryUtilities

        public GeometryUtilities()
    • Method Detail

      • scaleEnvelope

        public static org.locationtech.jts.geom.Envelope scaleEnvelope​(org.locationtech.jts.geom.Envelope env,
                                                                       int divisor)
        Scales an Envelope by the divisor value
        Parameters:
        env - The envelope geometry to scale
        divisor - The divisor used to scale
        Returns:
        A envelope scaled to the appropriate size based upon the input
      • scaleGeometry

        public static org.locationtech.jts.geom.Geometry scaleGeometry​(org.locationtech.jts.geom.Geometry geom,
                                                                       int divisor)
        Scales a Geometry by the divisor value
        Parameters:
        geom - The geometry to scale
        divisor - The divisor used to scale
        Returns:
        A scaled geometry