|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kaboum.geom.KaboumGeometryFactory
public class KaboumGeometryFactory
Basic implementation of GeometryFactory
.
Constructor Summary | |
---|---|
KaboumGeometryFactory()
|
Method Summary | |
---|---|
static KaboumGeometry |
buildGeometry(KaboumList geomKaboumList)
Build an appropriate Geometry , MultiGeometry , or
GeometryCollection to contain the Geometry s in
it; for example,If geomKaboumList contains a single Polygon ,
the Polygon is returned. |
static KaboumGeometryCollection |
createGeometryCollection(KaboumGeometry[] geometries)
|
static KaboumLinearRing |
createLinearRing(KaboumCoordinate[] coordinates)
|
static KaboumLineString |
createLineString(KaboumCoordinate[] coordinates)
|
static KaboumMultiLineString |
createMultiLineString(KaboumLineString[] lineStrings)
|
static KaboumMultiPoint |
createMultiPoint(KaboumCoordinate[] coordinates)
|
static KaboumMultiPoint |
createMultiPoint(KaboumPoint[] point)
|
static KaboumMultiPolygon |
createMultiPolygon(KaboumPolygon[] polygons)
|
static KaboumPoint |
createPoint(KaboumCoordinate coordinate)
|
static KaboumPolygon |
createPolygon(KaboumLinearRing shell,
KaboumLinearRing[] holes)
|
static KaboumGeometry |
toGeometry(KaboumExtent extent)
If the Extent is a null Extent , returns an
empty Point . |
static KaboumGeometry[] |
toGeometryArray(KaboumList geometrys)
Converts the KaboumList to an array. |
static KaboumLinearRing[] |
toLinearRingArray(KaboumList linearRings)
Converts the KaboumList to an array. |
static KaboumLineString[] |
toLineStringArray(KaboumList lineStrings)
Converts the KaboumList to an array. |
static KaboumMultiLineString[] |
toMultiLineStringArray(KaboumList multiLineStrings)
Converts the KaboumList to an array. |
static KaboumMultiPoint[] |
toMultiPointArray(KaboumList multiPoints)
Converts the KaboumList to an array. |
static KaboumMultiPolygon[] |
toMultiPolygonArray(KaboumList multiPolygons)
Converts the KaboumList to an array. |
static KaboumPoint[] |
toPointArray(KaboumList points)
Converts the KaboumList to an array. |
static KaboumPolygon[] |
toPolygonArray(KaboumList polygons)
Converts the KaboumList to an array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KaboumGeometryFactory()
Method Detail |
---|
public static KaboumPoint[] toPointArray(KaboumList points)
KaboumList
to an array.
points
- the KaboumList
to convertpublic static KaboumGeometry[] toGeometryArray(KaboumList geometrys)
KaboumList
to an array.
geometrys
- the KaboumList of Geometrys
to convertpublic static KaboumLinearRing[] toLinearRingArray(KaboumList linearRings)
KaboumList
to an array.
linearRings
- the KaboumList
to convertpublic static KaboumLineString[] toLineStringArray(KaboumList lineStrings)
KaboumList
to an array.
lineStrings
- the KaboumList
to convertpublic static KaboumPolygon[] toPolygonArray(KaboumList polygons)
KaboumList
to an array.
polygons
- the KaboumList
to convertpublic static KaboumMultiPolygon[] toMultiPolygonArray(KaboumList multiPolygons)
KaboumList
to an array.
multiPolygons
- the KaboumList
to convertpublic static KaboumMultiLineString[] toMultiLineStringArray(KaboumList multiLineStrings)
KaboumList
to an array.
multiLineStrings
- the KaboumList
to convertpublic static KaboumMultiPoint[] toMultiPointArray(KaboumList multiPoints)
KaboumList
to an array.
multiPoints
- the KaboumList
to convertpublic static KaboumGeometry toGeometry(KaboumExtent extent)
Extent
is a null Extent
, returns an
empty Point
. If the Extent
is a point, returns
a non-empty Point
. If the Extent
is a
rectangle, returns a Polygon
whose points are (minx, miny),
(maxx, miny), (maxx, maxy), (minx, maxy), (minx, miny).
extent
- the Extent
to convert to a Geometry
public static KaboumPoint createPoint(KaboumCoordinate coordinate)
public static KaboumMultiLineString createMultiLineString(KaboumLineString[] lineStrings)
public static KaboumGeometryCollection createGeometryCollection(KaboumGeometry[] geometries)
public static KaboumMultiPolygon createMultiPolygon(KaboumPolygon[] polygons)
public static KaboumLinearRing createLinearRing(KaboumCoordinate[] coordinates)
public static KaboumMultiPoint createMultiPoint(KaboumPoint[] point)
public static KaboumMultiPoint createMultiPoint(KaboumCoordinate[] coordinates)
public static KaboumPolygon createPolygon(KaboumLinearRing shell, KaboumLinearRing[] holes)
public static KaboumGeometry buildGeometry(KaboumList geomKaboumList)
Geometry
, MultiGeometry
, or
GeometryCollection
to contain the Geometry
s in
it; for example,geomKaboumList
contains a single Polygon
,
the Polygon
is returned.
geomKaboumList
contains several Polygon
s, a
MultiPolygon
is returned.
geomKaboumList
contains some Polygon
s and
some LineString
s, a GeometryCollection
is
returned.
geomKaboumList
is empty, an empty GeometryCollection
is returned
geomKaboumList
- the Geometry
s to combinepublic static KaboumLineString createLineString(KaboumCoordinate[] coordinates)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |