org.postgis
Class GeometryCollection
java.lang.Object
org.postgis.Geometry
org.postgis.ComposedGeom
org.postgis.GeometryCollection
- All Implemented Interfaces:
- java.io.Serializable
public class GeometryCollection
- extends ComposedGeom
Geometry Collection class WARNING: Currently only implements empty
collections
- Author:
- markus.schaber@logix-tt.com
$Id: GeometryCollection.java 1622 2005-04-15 14:04:34Z mschaber $
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
GeoCollID
|
Fields inherited from class org.postgis.Geometry |
ALLTYPES, dimension, GEOMETRYCOLLECTION, haveMeasure, LINEARRING, LINESTRING, MULTILINESTRING, MULTIPOINT, MULTIPOLYGON, POINT, POLYGON, srid, type |
Method Summary |
protected Geometry[] |
createSubGeomArray(int ngeoms)
Return the appropriate instance of the subgeometry array - this
encapsulates subclass specific array instantiation |
protected Geometry |
createSubGeomInstance(java.lang.String token,
boolean haveM)
Return the appropriate instance of the subgeometry - this encapsulates
subclass specific constructor calls |
Geometry[] |
getGeometries()
|
protected void |
innerWKT(java.lang.StringBuffer SB)
Render the "inner" part of the WKT (inside the brackets) into the
StringBuffer. |
Methods inherited from class org.postgis.ComposedGeom |
checkConsistency, equalsintern, getFirstPoint, getLastPoint, getPoint, getSubGeometry, hashCode, isEmpty, iterator, mediumWKT, numGeoms, numPoints, setSrid |
Methods inherited from class org.postgis.Geometry |
equals, equals, getDimension, getSrid, getType, getTypeString, getTypeString, getValue, initSRID, isMeasured, outerWKT, outerWKT, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
GeoCollID
public static final java.lang.String GeoCollID
- See Also:
- Constant Field Values
GeometryCollection
public GeometryCollection()
GeometryCollection
public GeometryCollection(Geometry[] geoms)
GeometryCollection
public GeometryCollection(java.lang.String value)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
GeometryCollection
public GeometryCollection(java.lang.String value,
boolean haveM)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
createSubGeomArray
protected Geometry[] createSubGeomArray(int ngeoms)
- Description copied from class:
ComposedGeom
- Return the appropriate instance of the subgeometry array - this
encapsulates subclass specific array instantiation
- Specified by:
createSubGeomArray
in class ComposedGeom
createSubGeomInstance
protected Geometry createSubGeomInstance(java.lang.String token,
boolean haveM)
throws java.sql.SQLException
- Description copied from class:
ComposedGeom
- Return the appropriate instance of the subgeometry - this encapsulates
subclass specific constructor calls
- Specified by:
createSubGeomInstance
in class ComposedGeom
- Throws:
java.sql.SQLException
innerWKT
protected void innerWKT(java.lang.StringBuffer SB)
- Description copied from class:
Geometry
- Render the "inner" part of the WKT (inside the brackets) into the
StringBuffer.
- Overrides:
innerWKT
in class ComposedGeom
getGeometries
public Geometry[] getGeometries()