Class EnvelopeUtil

java.lang.Object
com.vividsolutions.jump.geom.EnvelopeUtil

public class EnvelopeUtil extends Object
Utility functions for Envelopes.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.locationtech.jts.geom.Envelope
    bufferByFraction(org.locationtech.jts.geom.Envelope originalEnvelope, double extentFraction)
     
    static org.locationtech.jts.geom.Coordinate
    centre(org.locationtech.jts.geom.Envelope e)
     
    static org.locationtech.jts.geom.Envelope
    expand(org.locationtech.jts.geom.Envelope env, double distance)
    Expands an Envelope by a given distance.
    static org.locationtech.jts.geom.Geometry
    toGeometry(org.locationtech.jts.geom.Envelope envelope)
     
    static void
    translate(org.locationtech.jts.geom.Envelope e, org.locationtech.jts.geom.Coordinate displacement)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EnvelopeUtil

      public EnvelopeUtil()
  • Method Details

    • expand

      public static org.locationtech.jts.geom.Envelope expand(org.locationtech.jts.geom.Envelope env, double distance)
      Expands an Envelope by a given distance. Both positive and negative distances are handled.
      Parameters:
      env - the source envelope
      distance - the distance we want to expand the envelop in all directions
      Returns:
      the expanded envelope
    • translate

      public static void translate(org.locationtech.jts.geom.Envelope e, org.locationtech.jts.geom.Coordinate displacement)
    • bufferByFraction

      public static org.locationtech.jts.geom.Envelope bufferByFraction(org.locationtech.jts.geom.Envelope originalEnvelope, double extentFraction)
      Parameters:
      originalEnvelope - the original envelope
      extentFraction - the buffer distance expressed as a fraction of the average envelope extent
      Returns:
      the buffered envelope
    • centre

      public static org.locationtech.jts.geom.Coordinate centre(org.locationtech.jts.geom.Envelope e)
    • toGeometry

      public static org.locationtech.jts.geom.Geometry toGeometry(org.locationtech.jts.geom.Envelope envelope)