com.vividsolutions.jump.geom
Class EnvelopeUtil
java.lang.Object
com.vividsolutions.jump.geom.EnvelopeUtil
public class EnvelopeUtil
- extends java.lang.Object
Utility functions for Envelopes.
|
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnvelopeUtil
public EnvelopeUtil()
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:
originalEnvelope - the original envelopeextentFraction - 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)