Class EnvelopeUtil


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

      Constructors 
      Constructor Description
      EnvelopeUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      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)  
    • Constructor Detail

      • EnvelopeUtil

        public EnvelopeUtil()
    • Method Detail

      • 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.
      • 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:
        minExtent - the minimum buffer distance
        extentFraction - the buffer distance expressed as a fraction of the average envelope extent
      • 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)