|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.geometry.utils.GeometryUtils
public class GeometryUtils
GeometryUtils
Constructor Summary | |
---|---|
GeometryUtils()
|
Method Summary | |
---|---|
static Envelope |
createConvertedEnvelope(Envelope sourceEnvelope,
ICRS targetCRS)
Converts the given Envelope into an envelope with the given coordinate system. |
static float[] |
createEnvelope(Envelope validDomain)
Creates float array out of an envelope (Geometry). |
static Envelope |
createEnvelope(float[] env,
CRS crs)
|
static Polygon |
envelopeToPolygon(Envelope env)
|
static LinkedList<Double> |
measurePathLengths(Shape shape)
This method flattens the path with a flatness parameter of 1. |
static Geometry |
move(Geometry geom,
double offx,
double offy)
Moves the coordinates of a geometry. |
static String |
prettyPrintShape(Shape shape)
|
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 Polygon envelopeToPolygon(Envelope env)
env
-
public static Geometry move(Geometry geom, double offx, double offy)
geom
- use only surfaces, line strings or points, and only with dim == 2offx
- offy
-
public static String prettyPrintShape(Shape shape)
shape
-
public static LinkedList<Double> measurePathLengths(Shape shape)
shape
-
public static Envelope createConvertedEnvelope(Envelope sourceEnvelope, ICRS targetCRS) throws TransformationException
GeometryTransformer
.
sourceEnvelope
- to converttargetCRS
-
TransformationException
TransformationException
- if the transformation between the source and target crs cannot be created.public static final float[] createEnvelope(Envelope validDomain)
validDomain
-
public static final Envelope createEnvelope(float[] env, CRS crs)
env
- crs
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |