00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef GEOS_GEOS_MULTIPOLYGON_H
00018 #define GEOS_GEOS_MULTIPOLYGON_H
00019
00020 #include <string>
00021 #include <vector>
00022 #include <geos/platform.h>
00023 #include <geos/geom/GeometryCollection.h>
00024 #include <geos/geom/Dimension.h>
00025
00026 #include <geos/inline.h>
00027
00028
00029 namespace geos {
00030 namespace geom {
00031 class Coordinate;
00032 class CoordinateArraySequence;
00033 class MultiPoint;
00034 }
00035 }
00036
00037
00038 namespace geos {
00039 namespace geom {
00040
00042 class MultiPolygon: public GeometryCollection {
00043
00044 public:
00045
00046 friend class GeometryFactory;
00047
00048 virtual ~MultiPolygon();
00049
00051 Dimension::DimensionType getDimension() const;
00052
00054 int getBoundaryDimension() const;
00055
00061 Geometry* getBoundary() const;
00062
00063 std::string getGeometryType() const;
00064
00065 virtual GeometryTypeId getGeometryTypeId() const;
00066
00067 bool isSimple() const;
00068
00069 bool equalsExact(const Geometry *other, double tolerance=0) const;
00070
00071 Geometry *clone() const;
00072
00073 protected:
00074
00096 MultiPolygon(std::vector<Geometry *> *newPolys, const GeometryFactory *newFactory);
00097
00098 MultiPolygon(const MultiPolygon &mp);
00099
00100
00101 };
00102
00103
00104 }
00105 }
00106
00107 #ifdef GEOS_INLINE
00108 # include "geos/geom/MultiPolygon.inl"
00109 #endif
00110
00111 #endif // ndef GEOS_GEOS_MULTIPOLYGON_H
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129