Package net.postgis.jdbc.geometry
Class MultiPolygon
java.lang.Object
net.postgis.jdbc.geometry.Geometry
net.postgis.jdbc.geometry.ComposedGeom
net.postgis.jdbc.geometry.MultiPolygon
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields inherited from class net.postgis.jdbc.geometry.ComposedGeom
EMPTY, subgeomsFields inherited from class net.postgis.jdbc.geometry.Geometry
ALLTYPES, dimension, GEOMETRYCOLLECTION, haveMeasure, LINEARRING, LINESTRING, MULTILINESTRING, MULTIPOINT, MULTIPOLYGON, POINT, POLYGON, srid, type, UNKNOWN_SRID -
Constructor Summary
ConstructorsModifierConstructorDescriptionMultiPolygon(String value) protectedMultiPolygon(String value, boolean haveM) MultiPolygon(Polygon[] polygons) -
Method Summary
Modifier and TypeMethodDescriptionprotected Geometry[]createSubGeomArray(int npolygons) Return the appropriate instance of the sub-geometry array - this encapsulates subclass specific array instantiationprotected GeometrycreateSubGeomInstance(String token, boolean haveM) Return the appropriate instance of the sub-geometry - this encapsulates subclass specific constructor callsgetPolygon(int idx) Polygon[]intMethods inherited from class net.postgis.jdbc.geometry.ComposedGeom
checkConsistency, equalsintern, getFirstPoint, getLastPoint, getPoint, getSubGeometry, hashCode, innerWKT, isEmpty, iterator, mediumWKT, numGeoms, numPoints, setSridMethods inherited from class net.postgis.jdbc.geometry.Geometry
equals, equals, getDimension, getSrid, getType, getTypeString, getTypeString, getValue, initSRID, isMeasured, outerWKT, outerWKT, parseSRID, toString
-
Constructor Details
-
MultiPolygon
public MultiPolygon() -
MultiPolygon
-
MultiPolygon
- Throws:
SQLException
-
MultiPolygon
- Throws:
SQLException
-
-
Method Details
-
createSubGeomArray
Description copied from class:ComposedGeomReturn the appropriate instance of the sub-geometry array - this encapsulates subclass specific array instantiation- Specified by:
createSubGeomArrayin classComposedGeom- Parameters:
npolygons- number of elements in the array- Returns:
- Geometry array corresponding to the sub-geometry
-
createSubGeomInstance
Description copied from class:ComposedGeomReturn the appropriate instance of the sub-geometry - this encapsulates subclass specific constructor calls- Specified by:
createSubGeomInstancein classComposedGeom- Parameters:
token- The token containing the value for the sub-geometryhaveM- flag to indicate the existence of a measure- Returns:
- the new sub-geometry
- Throws:
SQLException- if a SQLException is thrown
-
numPolygons
public int numPolygons() -
getPolygon
-
getPolygons
-