|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.geometry.utils.GeometryUtils
public class GeometryUtils
GeometryUtils
| Constructor Summary | |
|---|---|
GeometryUtils()
|
|
| Method Summary | |
|---|---|
static Envelope |
createConvertedEnvelope(Envelope sourceEnvelope,
CRS 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 java.util.LinkedList<java.lang.Double> |
measurePathLengths(java.awt.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 java.lang.String |
prettyPrintShape(java.awt.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 java.lang.String prettyPrintShape(java.awt.Shape shape)
shape -
public static java.util.LinkedList<java.lang.Double> measurePathLengths(java.awt.Shape shape)
shape -
TextStroke
public static Envelope createConvertedEnvelope(Envelope sourceEnvelope,
CRS 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 | |||||||||