com.vividsolutions.jump.geom
Class EnvelopeUtil

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

public class EnvelopeUtil
extends java.lang.Object

Utility functions for Envelopes.


Constructor Summary
EnvelopeUtil()
           
 
Method Summary
static com.vividsolutions.jts.geom.Envelope bufferByFraction(com.vividsolutions.jts.geom.Envelope originalEnvelope, double extentFraction)
           
static com.vividsolutions.jts.geom.Coordinate centre(com.vividsolutions.jts.geom.Envelope e)
           
static com.vividsolutions.jts.geom.Envelope expand(com.vividsolutions.jts.geom.Envelope env, double distance)
          Expands an Envelope by a given distance.
static com.vividsolutions.jts.geom.Geometry toGeometry(com.vividsolutions.jts.geom.Envelope envelope)
           
static void translate(com.vividsolutions.jts.geom.Envelope e, com.vividsolutions.jts.geom.Coordinate displacement)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvelopeUtil

public EnvelopeUtil()
Method Detail

expand

public static com.vividsolutions.jts.geom.Envelope expand(com.vividsolutions.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(com.vividsolutions.jts.geom.Envelope e,
                             com.vividsolutions.jts.geom.Coordinate displacement)

bufferByFraction

public static com.vividsolutions.jts.geom.Envelope bufferByFraction(com.vividsolutions.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 com.vividsolutions.jts.geom.Coordinate centre(com.vividsolutions.jts.geom.Envelope e)

toGeometry

public static com.vividsolutions.jts.geom.Geometry toGeometry(com.vividsolutions.jts.geom.Envelope envelope)