public class Extents extends Object
Modifier and Type | Method and Description |
---|---|
static org.opengis.geometry.Envelope |
calculateEnvelope(NodeList geomNodes)
Calculates the envelope that covers the given collection of GML geometry
elements.
|
static Document |
envelopeAsGML(org.opengis.geometry.Envelope envelope)
Generates a standard GML representation (gml:Envelope) of an Envelope
object.
|
static com.vividsolutions.jts.geom.Polygon |
envelopeAsPolygon(org.opengis.geometry.Envelope envelope)
Creates a JTS Polygon having the same extent as the given envelope.
|
public static org.opengis.geometry.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(org.opengis.geometry.Envelope envelope)
envelope
- An Envelope defining a bounding rectangle (or prism).public static com.vividsolutions.jts.geom.Polygon envelopeAsPolygon(org.opengis.geometry.Envelope envelope)
envelope
- An Envelope defining a bounding rectangle.Copyright © 2014. All rights reserved.