Class GeometryCollection

All Implemented Interfaces:
Serializable

public class GeometryCollection extends ComposedGeom
Geometry Collection class WARNING: Currently only implements empty collections
Author:
[email protected]
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • createSubGeomArray

      protected Geometry[] createSubGeomArray(int ngeoms)
      Description copied from class: ComposedGeom
      Return the appropriate instance of the sub-geometry array - this encapsulates subclass specific array instantiation
      Specified by:
      createSubGeomArray in class ComposedGeom
      Parameters:
      ngeoms - number of elements in the array
      Returns:
      Geometry array corresponding to the sub-geometry
    • createSubGeomInstance

      protected Geometry createSubGeomInstance(String token, boolean haveM) throws SQLException
      Description copied from class: ComposedGeom
      Return the appropriate instance of the sub-geometry - this encapsulates subclass specific constructor calls
      Specified by:
      createSubGeomInstance in class ComposedGeom
      Parameters:
      token - The token containing the value for the sub-geometry
      haveM - flag to indicate the existence of a measure
      Returns:
      the new sub-geometry
      Throws:
      SQLException - if a SQLException is thrown
    • innerWKT

      protected void innerWKT(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
      Parameters:
      SB - StringBuffer to render into
    • getGeometries

      public Geometry[] getGeometries()