|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.framework.xml.GeometryUtils
public class GeometryUtils
Utility methods for handling geometries within XSLT transformations
Constructor Summary | |
---|---|
GeometryUtils()
|
Method Summary | |
---|---|
static double |
calcArea(org.w3c.dom.Node node)
|
static double |
calcOuterBoundaryLength(org.w3c.dom.Node node)
|
static double |
getCentroidX(org.w3c.dom.Node node,
java.lang.String targetCRS)
returns the X coordinate of the centroid of the geometry represented by the passed Node |
static double |
getCentroidY(org.w3c.dom.Node node,
java.lang.String targetCRS)
returns the y coordinate of the centroid of the geometry represented by the passed Node |
static java.lang.String |
getCurveCoordinates(org.w3c.dom.Node node)
Searches for a gml:poslist, gml:pos or gml:coordinates and creates a String from them. |
static java.lang.String |
getEnvelopeFromGeometry(org.w3c.dom.Node node)
|
static java.lang.String |
getPolygonCoordinatesFromEnvelope(org.w3c.dom.Node node)
|
static java.lang.String |
getPolygonInnerRing(org.w3c.dom.Node node,
int index,
java.lang.String sourceCRS,
java.lang.String targetCRS)
|
static java.lang.String |
getPolygonOuterRing(org.w3c.dom.Node node,
java.lang.String sourceCRS,
java.lang.String targetCRS)
returns the coordinates of the out ring of a polygon as comma separated list. |
static java.lang.String |
toGML2Coordinates(java.lang.String input,
int dimension)
Transforms the string contents of a GML 3.1.1-style gml:posList into a GML 2.1-style
gml:coordinates element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeometryUtils()
Method Detail |
---|
public static java.lang.String getPolygonCoordinatesFromEnvelope(org.w3c.dom.Node node)
node
- (an Element) describing an envelope to get the coordinates from.
public static java.lang.String getEnvelopeFromGeometry(org.w3c.dom.Node node)
node
- (an Element) describing a geometry from which the bbox (envelope) will be returned.
public static java.lang.String getPolygonOuterRing(org.w3c.dom.Node node, java.lang.String sourceCRS, java.lang.String targetCRS)
node
- sourceCRS
- targetCRS
-
public static java.lang.String getPolygonInnerRing(org.w3c.dom.Node node, int index, java.lang.String sourceCRS, java.lang.String targetCRS)
node
- index
- sourceCRS
- targetCRS
-
public static double calcArea(org.w3c.dom.Node node)
node
- to extract the geometry from
public static double calcOuterBoundaryLength(org.w3c.dom.Node node)
node
- to extract the geometry from from which the length of the outerboundary will be calculated
public static double getCentroidX(org.w3c.dom.Node node, java.lang.String targetCRS)
node
- to calculate the centroid from.targetCRS
- of resulting centroid, may be null
public static double getCentroidY(org.w3c.dom.Node node, java.lang.String targetCRS)
node
- to calculate the centroid from.targetCRS
- of resulting centroid, may be null
public static java.lang.String getCurveCoordinates(org.w3c.dom.Node node)
node
- to get the coordinates from
public static java.lang.String toGML2Coordinates(java.lang.String input, int dimension)
gml:posList
into a GML 2.1-style
gml:coordinates
element.
input
- coordinates string that separates all number using withspace charactersdimension
-
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org