com.vividsolutions.jts.geom

Class MultiPolygon

Implemented Interfaces:
Cloneable, Comparable, Serializable

public class MultiPolygon
extends GeometryCollection

Basic implementation of MultiPolygon.
Version:
1.6

Field Summary

Fields inherited from class com.vividsolutions.jts.geom.GeometryCollection

geometries

Fields inherited from class com.vividsolutions.jts.geom.Geometry

SRID, envelope

Constructor Summary

MultiPolygon(Polygon[] polygons, GeometryFactory factory)
MultiPolygon(Polygon[] polygons, PrecisionModel precisionModel, int SRID)
Deprecated. Use GeometryFactory instead

Method Summary

boolean
equalsExact(Geometry other, double tolerance)
Geometry
getBoundary()
int
getBoundaryDimension()
int
getDimension()
String
getGeometryType()
boolean
isSimple()

Methods inherited from class com.vividsolutions.jts.geom.GeometryCollection

apply, apply, apply, clone, compareToSameClass, computeEnvelopeInternal, equalsExact, getArea, getBoundary, getBoundaryDimension, getCoordinate, getCoordinates, getDimension, getGeometryN, getGeometryType, getLength, getNumGeometries, getNumPoints, isEmpty, isSimple, normalize

Methods inherited from class com.vividsolutions.jts.geom.Geometry

apply, apply, apply, buffer, buffer, checkNotGeometryCollection, clone, compare, compareTo, compareToSameClass, computeEnvelopeInternal, contains, convexHull, crosses, difference, disjoint, distance, equal, equals, equalsExact, equalsExact, geometryChanged, geometryChangedAction, getArea, getBoundary, getBoundaryDimension, getCentroid, getCoordinate, getCoordinates, getDimension, getEnvelope, getEnvelopeInternal, getFactory, getGeometryN, getGeometryType, getInteriorPoint, getLength, getNumGeometries, getNumPoints, getPrecisionModel, getSRID, getUserData, hasNonEmptyElements, hasNullElements, intersection, intersects, isEmpty, isEquivalentClass, isRectangle, isSimple, isValid, isWithinDistance, normalize, overlaps, relate, relate, setSRID, setUserData, symDifference, toString, toText, touches, union, within

Constructor Details

MultiPolygon

public MultiPolygon(Polygon[] polygons,
                    GeometryFactory factory)
Parameters:
polygons - the Polygons for this MultiPolygon, or null or an empty array to create the empty geometry. Elements may be empty Polygons, but not nulls. The polygons must conform to the assertions specified in the OpenGIS Simple Features Specification for SQL.

MultiPolygon

public MultiPolygon(Polygon[] polygons,
                    PrecisionModel precisionModel,
                    int SRID)

Deprecated. Use GeometryFactory instead

Constructs a MultiPolygon.
Parameters:
polygons - the Polygons for this MultiPolygon , or null or an empty array to create the empty geometry. Elements may be empty Polygons, but not null s. The polygons must conform to the assertions specified in the OpenGIS Simple Features Specification for SQL .
precisionModel - the specification of the grid of allowable points for this MultiPolygon
SRID - the ID of the Spatial Reference System used by this MultiPolygon

Method Details

equalsExact

public boolean equalsExact(Geometry other,
                           double tolerance)
Overrides:
equalsExact in interface GeometryCollection

getBoundary

public Geometry getBoundary()
Overrides:
getBoundary in interface GeometryCollection

getBoundaryDimension

public int getBoundaryDimension()
Overrides:
getBoundaryDimension in interface GeometryCollection

getDimension

public int getDimension()
Overrides:
getDimension in interface GeometryCollection

getGeometryType

public String getGeometryType()
Overrides:
getGeometryType in interface GeometryCollection

isSimple

public boolean isSimple()
Overrides:
isSimple in interface GeometryCollection