public class Extents extends Object
| Modifier and Type | Method and Description |
|---|---|
static Envelope |
calculateEnvelope(NodeList geomNodes)
Calculates the envelope that covers the given collection of GML geometry
elements.
|
static Document |
envelopeAsGML(Envelope envelope)
Generates a standard GML representation (gml:Envelope) of an Envelope
object.
|
static Polygon |
envelopeAsPolygon(Envelope envelope)
Creates a JTS Polygon having the same extent as the given envelope.
|
public static Envelope calculateEnvelope(NodeList geomNodes) throws JAXBException
geomNodes - A NodeList containing GML geometry elements; it is assumed
these all refer to the same CRS.JAXBException - If a node cannot be unmarshalled to a geometry object.public static Document envelopeAsGML(Envelope envelope)
envelope - An Envelope defining a bounding rectangle (or prism).Copyright © 2014 Open Geospatial Consortium. All rights reserved.