|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.model.geometry.JTSAdapter
Adapter between deegree-GM_Objects and JTS-Geometry objects.
Please note that the generated deegree-objects use null as CS_CoordinateSystem!
Field Summary | |
private static com.vividsolutions.jts.geom.GeometryFactory |
jtsFactory
|
private static PrecisionModel |
pm
|
Constructor Summary | |
JTSAdapter()
|
Method Summary | |
private static GM_Position[] |
createGMPositions(LineString line)
Converts a LineString to an array of GM_Positions. |
private static LineString |
export(GM_Curve curve)
Converts a GM_Curve to a LineString. |
private static MultiLineString |
export(GM_MultiCurve multi)
Converts a GM_MultiCurve to a MultiLineString. |
private static MultiPoint |
export(GM_MultiPoint gmMultiPoint)
Converts a GM_MultiPoint to a MultiPoint. |
private static GeometryCollection |
export(GM_MultiPrimitive multi)
Converts a GM_MultiPrimitive to a GeometryCollection. |
private static MultiPolygon |
export(GM_MultiSurface msurface)
Converts a GM_MultiSurface to a MultiPolygon. |
static Geometry |
export(GM_Object gmObject)
Converts a GM_Object to a corresponding JTS-Geometry object. |
private static Point |
export(GM_Point gmPoint)
Converts a GM_Point to a Point. |
private static LinearRing |
export(GM_Position[] positions)
Converts an array of GM_Positions to a LinearRing. |
private static Polygon |
export(GM_Surface surface)
Converts a GM_Surface to a Polygon. |
static GM_Object |
wrap(Geometry geometry)
Converts a JTS-Geometry object to a corresponding GM_Object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static PrecisionModel pm
private static com.vividsolutions.jts.geom.GeometryFactory jtsFactory
Constructor Detail |
public JTSAdapter()
Method Detail |
public static Geometry export(GM_Object gmObject) throws GM_Exception
Currently, the following conversions are supported:
gmObject
- the object to be converted
GM_Exception
- if type unsupported or conversion failedpublic static GM_Object wrap(Geometry geometry) throws GM_Exception
Currently, the following conversions are supported:
geometry
- the JTS-Geometry to be converted
GM_Exception
- if type unsupported or conversion failedprivate static Point export(GM_Point gmPoint)
gmPoint
- point to be converted
private static MultiPoint export(GM_MultiPoint gmMultiPoint)
gmMultiPoint
- multipoint to be converted
private static LineString export(GM_Curve curve) throws GM_Exception
curve
- GM_Curve to be converted
GM_Exception
private static MultiLineString export(GM_MultiCurve multi) throws GM_Exception
multi
- GM_MultiCurve to be converted
GM_Exception
private static LinearRing export(GM_Position[] positions)
positions
- an array of GM_Positions
private static Polygon export(GM_Surface surface)
Currently, the GM_Surface _must_ contain exactly one patch!
surface
- a GM_Surface
private static MultiPolygon export(GM_MultiSurface msurface)
Currently, the contained GM_Surface _must_ have exactly one patch!
msurface
- a GM_MultiSurface
private static GeometryCollection export(GM_MultiPrimitive multi) throws GM_Exception
multi
- a GM_MultiPrimtive
GM_Exception
private static GM_Position[] createGMPositions(LineString line)
line
- a LineString object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |