|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface including all functions needed for creating geometry objects.
Method Summary | |
CurvePolygon |
createCircle(double xCenter,
double yCenter,
double radius)
Creates a 2-D circle (special case of CurvePolygon geometry). |
CurvePolygon |
createCurvePolygon(CurveString[] rings)
Creates a CurvePolygon geometry. |
CurvePolygon |
createCurvePolygon(CurveString exteriorRing,
CurveString[] interiorRings)
Creates a CurvePolygon geometry. |
CurveString |
createCurveString(Segment[] segments)
Creates a CurveString geometry. |
GeometryCollection |
createGeometryCollection(Geometry[] geometries)
Creates a GeometryCollection . |
LineString |
createLineString(CoordPoint[] pointArray)
Creates a LineString geometry. |
LineString |
createLineString(double[] xyArray)
Creates a LineString geometry in a 2-dimensional domain. |
LineString |
createLineString(int nDim,
double[] coordArray)
Creates a LineString geometry in an n-dimensional domain. |
Point |
createPoint(CoordPoint point)
Creates a Point geometry. |
Point |
createPoint(double[] ordArray)
Creates a Point geometry. |
Point |
createPoint(double x,
double y)
Creates a Point geometry in a 2-dimensional domain. |
Point |
createPoint(double x,
double y,
double z)
Creates a Point geometry in a 3-dimensional domain. |
Polygon |
createPolygon(LineString[] rings)
Creates a Polygon geometry. |
Polygon |
createPolygon(LineString exteriorRing,
LineString[] interiorRings)
Creates a Polygon geometry. |
Polygon |
createRectangle(double xMin,
double yMin,
double xMax,
double yMax)
Creates a 2-D rectangle (special case of Polygon geometry). |
Segment |
createSegment(java.lang.Class segmentType,
CoordPoint[] pointArray)
Creates a Segment object for the use of CurveString
construction. |
Segment |
createSegment(java.lang.Class segmentType,
int nDim,
double[] coordArray)
Creates a Segment object for the use of CurveString
construction. |
SpatialReference |
getSpatialReference()
Gets the SpatialReference of this
GeometryFactory . |
void |
setSpatialReference(SpatialReference spatialRef)
Sets the SpatialReference for this
GeometryFactory . |
Method Detail |
public SpatialReference getSpatialReference()
SpatialReference
of this
GeometryFactory
.SpatialReference
objectpublic void setSpatialReference(SpatialReference spatialRef)
SpatialReference
for this
GeometryFactory
.spatialRef
- a SpatialReference
objectpublic Point createPoint(CoordPoint point) throws InvalidGeometryException
Point
geometry.point
- a CoordPoint
Object
defining the coordinates of the
Point
.Point
geometry objectInvalidGeometryException
- if the specified parameter does
not define a valid
Point
geometry objectpublic Point createPoint(double x, double y) throws InvalidGeometryException
Point
geometry in a 2-dimensional domain.x
- a double
value
defining the x-coordinate of the
Point
.y
- a double
value
defining the y-coordinate of the
Point
.Point
geometry objectInvalidGeometryException
- if the specified parameter does
not define a valid
Point
geometry objectpublic Point createPoint(double x, double y, double z) throws InvalidGeometryException
Point
geometry in a 3-dimensional domain.x
- a double
value
defining the x-coordinate of the
Point
.y
- a double
value
defining the y-coordinate of the
Point
.z
- a double
value
defining the z-coordinate of the
Point
.Point
geometry objectInvalidGeometryException
- if the specified parameter does
not define a valid
Point
geometry objectpublic Point createPoint(double[] ordArray) throws InvalidGeometryException
Point
geometry.ordArray
- an array of double
values defining the coordinates of
the Point
.Point
geometry objectInvalidGeometryException
- if the specified parameter does
not define a valid
Point
geometry objectpublic CurveString createCurveString(Segment[] segments) throws InvalidGeometryException
CurveString
geometry.segments
- an array of Segment
objects defining the
CurveString
.CurveString
geometry
objectInvalidGeometryException
- if the specified parameter does
not define a valid
CurveString
geometry
objectpublic LineString createLineString(CoordPoint[] pointArray) throws InvalidGeometryException
LineString
geometry.pointArray
- an array of points defining the
LineString
. Each point
is a CoordPoint
object.LineString
geometry
objectInvalidGeometryException
- if the specified parameter does
not define a valid
LineString
geometry
objectpublic LineString createLineString(double[] xyArray) throws InvalidGeometryException
LineString
geometry in a 2-dimensional domain.xyArray
- an array of coordinates defining a
2-D LineString
.LineString
geometry
objectInvalidGeometryException
- if the specified parameter does
not define a valid
LineString
geometry
objectpublic LineString createLineString(int nDim, double[] coordArray) throws InvalidGeometryException
LineString
geometry in an n-dimensional domain.nDim
- the number of dimensionscoordArray
- an array of coordinates defining a
2-D or higher dimensional
LineString
LineString
geometry
objectInvalidGeometryException
- if the specified parameter does
not define a valid
LineString
geometry
objectpublic CurvePolygon createCurvePolygon(CurveString exteriorRing, CurveString[] interiorRings) throws InvalidGeometryException
CurvePolygon
geometry.exteriorRing
- a CurveString
object
defining the exterior ring of the
CurvePolygon
. There is
exactly one exterior ring for a
Polygon
.interiorRings
- an array of CurveString
objects defining the interior rings
of the CurvePolygon
.
There can be none or several
interior rings for a
Polygon
.CurvePolygon
geometry objectInvalidGeometryException
- if the specified parameter does
not define a valid
CurvePolygon
geometry
objectpublic CurvePolygon createCurvePolygon(CurveString[] rings) throws InvalidGeometryException
CurvePolygon
geometry.rings
- an array of CurveString
objects defining the exterior and
interior rings of the
CurvePolygon
. There
can be none or several interior
rings and exactly one exterior ring
for a Polygon
.CurvePolygon
geometry objectInvalidGeometryException
- if the specified parameter does
not define a valid
CurvePolygon
geometry
objectpublic Polygon createPolygon(LineString exteriorRing, LineString[] interiorRings) throws InvalidGeometryException
Polygon
geometry.exteriorRing
- a LineString
object
defining the exterior ring of the
Polygon
. There is
exactly one exterior ring for a
Polygon
.interiorRings
- an array of LineString
objects defining the interior rings
of the Polygon
. There
can be none or several interior
rings for a Polygon
.Polygon
geometry
objectInvalidGeometryException
- if the specified parameter does
not define a valid
Polygon
geometry objectpublic Polygon createPolygon(LineString[] rings) throws InvalidGeometryException
Polygon
geometry.rings
- an array of LineString
objects defining the exterior and
interior rings of the
Polygon
. There can be
none or several interior rings and
exactly one exterior ring for a
Polygon
.Polygon
geometry
objectInvalidGeometryException
- if the specified parameter does
not define a valid
Polygon
geometry objectpublic CurvePolygon createCircle(double xCenter, double yCenter, double radius) throws InvalidGeometryException
CurvePolygon
geometry).xCenter
- x coordinate of the centeryCenter
- y coordinate of the centerradius
- radius of the circleCurvePolygon
geometry
representing the desired circleInvalidGeometryException
- if the specified parameter does
not define a valid circlepublic Polygon createRectangle(double xMin, double yMin, double xMax, double yMax) throws InvalidGeometryException
Polygon
geometry).xMin
- x coordinate of the lower-left corneryMin
- y coordinate of the lower-left cornerxMax
- x coordinate of the upper-right corneryMax
- y coordinate of the upper-right cornerPolygon
geometry
representing the desired rectangleInvalidGeometryException
- if the specified parameter does
not define a valid rectanglepublic GeometryCollection createGeometryCollection(Geometry[] geometries) throws InvalidGeometryException
GeometryCollection
. This method may return a subtype
of GeometryCollection
, such as MultiPoint
.geometries
- an array of Geometry
objects to create a collection from.GeometryCollection
objectInvalidGeometryException
- if the specified parameter does
not represent a valid array of
Geometry
objectspublic Segment createSegment(java.lang.Class segmentType, CoordPoint[] pointArray) throws InvalidGeometryException
Segment
object for the use of CurveString
construction.segmentType
- the type of Segment
object to create.pointArray
- an array of coordinate points.Segment
objectInvalidGeometryException
- if the specified segment type is not
supported or the specified coordinate
points do not define a valid
Segment
objectpublic Segment createSegment(java.lang.Class segmentType, int nDim, double[] coordArray) throws InvalidGeometryException
Segment
object for the use of CurveString
construction.nDim
- the number of dimensionssegmentType
- the type of Segment
object to create.coordArray
- an array of coordinates (x, y, z, etc).Segment
objectInvalidGeometryException
- if the specified segment type is not
supported or the specified coordinates
do not define a valid
Segment
object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |