|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 StringBuffer |
export(Envelope envelope)
exports an Envelope as a BOX3D WKT string. |
static StringBuffer |
export(Geometry geom)
|
static Geometry |
wrap(String wkt,
CoordinateSystem crs)
|
static Curve |
wrapCurve(String wkt,
CoordinateSystem crs)
creates a Curve from a WKT. |
static MultiCurve |
wrapMultiCurve(String wkt,
CoordinateSystem crs)
creates a MultiCurve from a WKT |
static MultiPoint |
wrapMultiPoint(String wkt,
CoordinateSystem crs)
creates a MultiPoint from a WKT |
static MultiSurface |
wrapMultiSurface(String wkt,
CoordinateSystem crs)
creates a MultiSurface from a WKT |
static Point |
wrapPoint(String wkt,
CoordinateSystem crs)
creates a Point from a WKT. |
static Surface |
wrapSurface(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(String wkt, CoordinateSystem crs) throws GeometryException
wkt
-
GeometryException
- if type unsupported or conversion failedpublic static StringBuffer export(Geometry geom) throws GeometryException
geom
- geometry
GeometryException
public static StringBuffer export(Envelope envelope)
envelope
-
public static Point wrapPoint(String wkt, CoordinateSystem crs)
wkt
- a Point WKTpublic static Curve wrapCurve(String wkt, CoordinateSystem crs) throws GeometryException
wkt
- linestring a WKT
GeometryException
public static Surface wrapSurface(String wkt, CoordinateSystem crs) throws GeometryException
wkt
- polygon WKT
GeometryException
public static MultiPoint wrapMultiPoint(String wkt, CoordinateSystem crs)
wkt
- multipoint WKTpublic static MultiCurve wrapMultiCurve(String wkt, CoordinateSystem crs) throws GeometryException
wkt
- a WKT
GeometryException
public static MultiSurface wrapMultiSurface(String wkt, CoordinateSystem crs) throws GeometryException
wkt
- a WKT
GeometryException
|
deegree 2.2 (2008/12/22 11:33 build-3038-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://deegree.sourceforge.net