org.postgis
Class MultiPolygon

java.lang.Object
  extended by org.postgis.Geometry
      extended by org.postgis.ComposedGeom
          extended by org.postgis.MultiPolygon
All Implemented Interfaces:
java.io.Serializable

public class MultiPolygon
extends ComposedGeom

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.postgis.ComposedGeom
EMPTY, subgeoms
 
Fields inherited from class org.postgis.Geometry
ALLTYPES, dimension, GEOMETRYCOLLECTION, haveMeasure, LINEARRING, LINESTRING, MULTILINESTRING, MULTIPOINT, MULTIPOLYGON, POINT, POLYGON, srid, type, UNKNOWN_SRID
 
Constructor Summary
  MultiPolygon()
           
  MultiPolygon(Polygon[] polygons)
           
  MultiPolygon(java.lang.String value)
           
protected MultiPolygon(java.lang.String value, boolean haveM)
           
 
Method Summary
protected  Geometry[] createSubGeomArray(int npolygons)
          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
 Polygon getPolygon(int idx)
           
 Polygon[] getPolygons()
           
 int numPolygons()
           
 
Methods inherited from class org.postgis.ComposedGeom
checkConsistency, equalsintern, getFirstPoint, getLastPoint, getPoint, getSubGeometry, hashCode, innerWKT, 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, parseSRID, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiPolygon

public MultiPolygon()

MultiPolygon

public MultiPolygon(Polygon[] polygons)

MultiPolygon

public MultiPolygon(java.lang.String value)
             throws java.sql.SQLException
Throws:
java.sql.SQLException

MultiPolygon

protected MultiPolygon(java.lang.String value,
                       boolean haveM)
                throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

createSubGeomArray

protected Geometry[] createSubGeomArray(int npolygons)
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

numPolygons

public int numPolygons()

getPolygon

public Polygon getPolygon(int idx)

getPolygons

public Polygon[] getPolygons()