org.deegree_impl.model.geometry
Class GeometryFactory

java.lang.Object
  extended byorg.deegree_impl.model.geometry.GeometryFactory

public final class GeometryFactory
extends java.lang.Object

------------------------------------------------------------

Version:
$Revision: 1.21 $ $Date: 2004/03/31 07:12:07 $
Author:
Andreas Poth

Constructor Summary
GeometryFactory()
           
 
Method Summary
static GM_Curve createGM_Curve(byte[] wkb, CS_CoordinateSystem crs)
          creates a GM_Curve from a wkb.
static GM_Curve createGM_Curve(GM_CurveSegment segment)
          creates a GM_Curve from one curve segment.
static GM_Curve createGM_Curve(GM_CurveSegment[] segments)
          creates a GM_Curve from an array of curve segments.
static GM_Curve createGM_Curve(GM_Position[] positions, CS_CoordinateSystem crs)
          creates a GM_Curve from an array of GM_Positions.
static GM_CurveSegment createGM_CurveSegment(GM_Position[] points, CS_CoordinateSystem crs)
          creates a GM_CurveSegment from an array of points.
static GM_Envelope createGM_Envelope(double minx, double miny, double maxx, double maxy)
          creates a GM_Envelope object out from two croner coordinates
static GM_Envelope createGM_Envelope(GM_Position min, GM_Position max)
          creates a GM_Envelope object out from two croner coordinates
static GM_MultiCurve createGM_MultiCurve(byte[] wkb, CS_CoordinateSystem crs)
          creates a GM_MultiCurve from a wkb.
static GM_MultiCurve createGM_MultiCurve(GM_Curve[] curves)
          creates a GM_MultiCurve from an array of GM_Curves.
static GM_MultiPoint createGM_MultiPoint(byte[] wkb, CS_CoordinateSystem crs)
          creates a GM_MultiPoint from a wkb.
static GM_MultiPoint createGM_MultiPoint(GM_Point[] points)
          creates a GM_MultiPoint from an array of GM_Point.
static GM_MultiSurface createGM_MultiSurface(byte[] wkb, CS_CoordinateSystem crs, GM_SurfaceInterpolation si)
          creates a GM_MultiSurface from a wkb
static GM_MultiSurface createGM_MultiSurface(GM_Surface[] surfaces)
          creates a GM_MultiSurface from a wkb
static GM_Point createGM_Point(byte[] wkb, CS_CoordinateSystem srs)
          creates a GM_Point from a wkb.
static GM_Point createGM_Point(double x, double y, CS_CoordinateSystem crs)
          creates a GM_Point from two coordinates.
static GM_Point createGM_Point(GM_Position position, CS_CoordinateSystem crs)
          creates a GM_Point from a position.
static GM_Position createGM_Position(double[] p)
          creates a GM_Position from an array of double.
static GM_Position createGM_Position(double x, double y)
          creates a GM_Position from two coordinates.
static GM_Position createGM_Position(double x, double y, double z)
          creates a GM_Position from two coordinates.
static GM_Surface createGM_Surface(byte[] wkb, CS_CoordinateSystem crs, GM_SurfaceInterpolation si)
          creates a GM_Surface from a wkb.
static GM_Surface createGM_Surface(GM_Envelope bbox, CS_CoordinateSystem crs)
          Creates a GM_Surface from a GM_Envelope.
static GM_Surface createGM_Surface(GM_Position[] exteriorRing, GM_Position[][] interiorRings, GM_SurfaceInterpolation si, CS_CoordinateSystem crs)
          creates a GM_Surface composed of one GM_SurfacePatch from array(s) of GM_Position
static GM_Surface createGM_Surface(GM_SurfacePatch patch)
          creates a GM_Surface from an array of GM_SurfacePatch.
static GM_SurfacePatch createGM_SurfacePatch(GM_Position[] exteriorRing, GM_Position[][] interiorRings, GM_SurfaceInterpolation si, CS_CoordinateSystem crs)
          creates a GM_SurfacePatch from array(s) of GM_Position
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryFactory

public GeometryFactory()
Method Detail

createGM_Envelope

public static GM_Envelope createGM_Envelope(double minx,
                                            double miny,
                                            double maxx,
                                            double maxy)
creates a GM_Envelope object out from two croner coordinates


createGM_Envelope

public static GM_Envelope createGM_Envelope(GM_Position min,
                                            GM_Position max)
creates a GM_Envelope object out from two croner coordinates


createGM_Position

public static GM_Position createGM_Position(double x,
                                            double y)
creates a GM_Position from two coordinates.


createGM_Position

public static GM_Position createGM_Position(double x,
                                            double y,
                                            double z)
creates a GM_Position from two coordinates.


createGM_Position

public static GM_Position createGM_Position(double[] p)
creates a GM_Position from an array of double.


createGM_Point

public static GM_Point createGM_Point(double x,
                                      double y,
                                      CS_CoordinateSystem crs)
creates a GM_Point from two coordinates.


createGM_Point

public static GM_Point createGM_Point(GM_Position position,
                                      CS_CoordinateSystem crs)
creates a GM_Point from a position.


createGM_Point

public static GM_Point createGM_Point(byte[] wkb,
                                      CS_CoordinateSystem srs)
                               throws GM_Exception
creates a GM_Point from a wkb.

Throws:
GM_Exception

createGM_CurveSegment

public static GM_CurveSegment createGM_CurveSegment(GM_Position[] points,
                                                    CS_CoordinateSystem crs)
                                             throws GM_Exception
creates a GM_CurveSegment from an array of points.

Parameters:
points - array of GM_Point
crs - spatial reference system of the curve
Throws:
GM_Exception

createGM_Curve

public static GM_Curve createGM_Curve(GM_Position[] positions,
                                      CS_CoordinateSystem crs)
                               throws GM_Exception
creates a GM_Curve from an array of GM_Positions.

Parameters:
positions - positions
crs - geometries coordinate reference system
Throws:
GM_Exception

createGM_Curve

public static GM_Curve createGM_Curve(GM_CurveSegment segment)
                               throws GM_Exception
creates a GM_Curve from one curve segment.

Parameters:
segment - GM_CurveSegments
Throws:
GM_Exception

createGM_Curve

public static GM_Curve createGM_Curve(GM_CurveSegment[] segments)
                               throws GM_Exception
creates a GM_Curve from an array of curve segments.

Parameters:
segments - array of GM_CurveSegments
Throws:
GM_Exception

createGM_SurfacePatch

public static GM_SurfacePatch createGM_SurfacePatch(GM_Position[] exteriorRing,
                                                    GM_Position[][] interiorRings,
                                                    GM_SurfaceInterpolation si,
                                                    CS_CoordinateSystem crs)
                                             throws GM_Exception
creates a GM_SurfacePatch from array(s) of GM_Position

Parameters:
exteriorRing - exterior ring of the patch
interiorRings - interior rings of the patch
si - GM_SurfaceInterpolation
crs - spatial reference system of the surface patch
Throws:
GM_Exception

createGM_Curve

public static GM_Curve createGM_Curve(byte[] wkb,
                                      CS_CoordinateSystem crs)
                               throws GM_Exception
creates a GM_Curve from a wkb.

Parameters:
wkb - byte stream that contains the wkb information
crs - spatial reference system of the curve
Throws:
GM_Exception

createGM_Surface

public static GM_Surface createGM_Surface(GM_Position[] exteriorRing,
                                          GM_Position[][] interiorRings,
                                          GM_SurfaceInterpolation si,
                                          CS_CoordinateSystem crs)
                                   throws GM_Exception
creates a GM_Surface composed of one GM_SurfacePatch from array(s) of GM_Position

Parameters:
exteriorRing - exterior ring of the patch
interiorRings - interior rings of the patch
si - GM_SurfaceInterpolation
crs - spatial reference system of the surface patch
Throws:
GM_Exception

createGM_Surface

public static GM_Surface createGM_Surface(GM_SurfacePatch patch)
                                   throws GM_Exception
creates a GM_Surface from an array of GM_SurfacePatch.

Parameters:
patch - patches that build the surface
Throws:
GM_Exception

createGM_Surface

public static GM_Surface createGM_Surface(byte[] wkb,
                                          CS_CoordinateSystem crs,
                                          GM_SurfaceInterpolation si)
                                   throws GM_Exception
creates a GM_Surface from a wkb.

Parameters:
wkb - byte stream that contains the wkb information
crs - spatial reference system of the curve
si - GM_SurfaceInterpolation
Throws:
GM_Exception

createGM_Surface

public static GM_Surface createGM_Surface(GM_Envelope bbox,
                                          CS_CoordinateSystem crs)
                                   throws GM_Exception
Creates a GM_Surface from a GM_Envelope.

Parameters:
bbox - envelope to be converted
crs - spatial reference system of the surface
Returns:
corresponding surface
Throws:
GM_Exception

createGM_MultiPoint

public static GM_MultiPoint createGM_MultiPoint(GM_Point[] points)
                                         throws GM_Exception
creates a GM_MultiPoint from an array of GM_Point.

Parameters:
points - array of GM_Points
Throws:
GM_Exception

createGM_MultiPoint

public static GM_MultiPoint createGM_MultiPoint(byte[] wkb,
                                                CS_CoordinateSystem crs)
                                         throws GM_Exception
creates a GM_MultiPoint from a wkb.

Parameters:
wkb - byte stream that contains the wkb information
crs - spatial reference system of the curve
Throws:
GM_Exception

createGM_MultiCurve

public static GM_MultiCurve createGM_MultiCurve(GM_Curve[] curves)
                                         throws GM_Exception
creates a GM_MultiCurve from an array of GM_Curves.

Parameters:
curves -
Throws:
GM_Exception

createGM_MultiCurve

public static GM_MultiCurve createGM_MultiCurve(byte[] wkb,
                                                CS_CoordinateSystem crs)
                                         throws GM_Exception
creates a GM_MultiCurve from a wkb.

Parameters:
wkb - byte stream that contains the wkb information
crs - spatial reference system of the curve
Throws:
GM_Exception

createGM_MultiSurface

public static GM_MultiSurface createGM_MultiSurface(GM_Surface[] surfaces)
                                             throws GM_Exception
creates a GM_MultiSurface from a wkb

Throws:
GM_Exception

createGM_MultiSurface

public static GM_MultiSurface createGM_MultiSurface(byte[] wkb,
                                                    CS_CoordinateSystem crs,
                                                    GM_SurfaceInterpolation si)
                                             throws GM_Exception
creates a GM_MultiSurface from a wkb

Throws:
GM_Exception