|
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.model.spatialschema.WKTAdapter
public class WKTAdapter
Adapter class for exporting deegree geometries to WKT and to wrap WKT code geometries to deegree geometries.
Constructor Summary | |
---|---|
WKTAdapter()
|
Method Summary | |
---|---|
static java.lang.StringBuffer |
export(Envelope envelope)
exports an Envelope as a BOX3D WKT string. |
static java.lang.StringBuffer |
export(Geometry geom)
|
static Geometry |
wrap(java.lang.String wkt,
CoordinateSystem crs)
|
static Curve |
wrapCurve(java.lang.String wkt,
CoordinateSystem crs)
creates a Curve from a WKT. |
static MultiCurve |
wrapMultiCurve(java.lang.String wkt,
CoordinateSystem crs)
creates a MultiCurve from a WKT |
static MultiPoint |
wrapMultiPoint(java.lang.String wkt,
CoordinateSystem crs)
creates a MultiPoint from a WKT |
static MultiSurface |
wrapMultiSurface(java.lang.String wkt,
CoordinateSystem crs)
creates a MultiSurface from a WKT |
static Point |
wrapPoint(java.lang.String wkt,
CoordinateSystem crs)
creates a Point from a WKT. |
static Surface |
wrapSurface(java.lang.String wkt,
CoordinateSystem crs)
creates a Surface |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WKTAdapter()
Method Detail |
---|
public static Geometry wrap(java.lang.String wkt, CoordinateSystem crs) throws GeometryException
wkt
- crs
-
GeometryException
- if type unsupported or conversion failedpublic static java.lang.StringBuffer export(Geometry geom) throws GeometryException
geom
- geometry
GeometryException
public static java.lang.StringBuffer export(Envelope envelope)
envelope
-
public static Point wrapPoint(java.lang.String wkt, CoordinateSystem crs) throws GeometryException
wkt
- a Point WKTcrs
-
GeometryException
public static Curve wrapCurve(java.lang.String wkt, CoordinateSystem crs) throws GeometryException
wkt
- linestring a WKTcrs
-
GeometryException
public static Surface wrapSurface(java.lang.String wkt, CoordinateSystem crs) throws GeometryException
wkt
- polygon WKTcrs
-
GeometryException
public static MultiPoint wrapMultiPoint(java.lang.String wkt, CoordinateSystem crs)
wkt
- multipoint WKTcrs
-
public static MultiCurve wrapMultiCurve(java.lang.String wkt, CoordinateSystem crs) throws GeometryException
wkt
- a WKTcrs
-
GeometryException
public static MultiSurface wrapMultiSurface(java.lang.String wkt, CoordinateSystem crs) throws GeometryException
wkt
- a WKTcrs
-
GeometryException
|
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