21 #ifndef GEOS_GEOS_MULTIPOLYGON_H 22 #define GEOS_GEOS_MULTIPOLYGON_H 24 #include <geos/export.h> 27 #include <geos/geom/GeometryCollection.h> 28 #include <geos/geom/Polygon.h> 29 #include <geos/geom/Dimension.h> 31 #include <geos/inline.h> 37 class CoordinateArraySequence;
48 #pragma warning(disable:4250) // T1 inherits T2 via dominance 74 int getBoundaryDimension()
const override;
82 std::unique_ptr<Geometry> getBoundary()
const override;
84 const Polygon* getGeometryN(std::size_t n)
const override;
86 std::string getGeometryType()
const override;
90 std::unique_ptr<MultiPolygon> clone()
const;
92 std::unique_ptr<MultiPolygon> reverse()
const {
return std::unique_ptr<MultiPolygon>(reverseImpl()); }
117 MultiPolygon(std::vector<Geometry*>* newPolys,
const GeometryFactory* newFactory);
119 MultiPolygon(std::vector<std::unique_ptr<Polygon>> && newPolys,
120 const GeometryFactory& newFactory);
122 MultiPolygon(std::vector<std::unique_ptr<Geometry>> && newPolys,
123 const GeometryFactory& newFactory);
125 MultiPolygon(
const MultiPolygon& mp);
132 getSortIndex()
const override 134 return SORTINDEX_MULTIPOLYGON;
147 # include "geos/geom/MultiPolygon.inl" 150 #endif // ndef GEOS_GEOS_MULTIPOLYGON_H Definition: MultiPolygon.h:59
bool isDimensionStrict(Dimension::DimensionType d) const override
Checks whether this Geometry consists only of components having dimension d.
Definition: MultiPolygon.h:69
GeometryTypeId
Geometry types.
Definition: Geometry.h:75
Represents a linear polygon, which may include holes.
Definition: Polygon.h:64
Dimension value of a surface (2).
Definition: Dimension.h:48
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:68
Represents a collection of heterogeneous Geometry objects.
Definition: GeometryCollection.h:55
Basic namespace for all GEOS functionalities.
Definition: Angle.h:26
MultiPolygon * cloneImpl() const override
Make a deep-copy of this Geometry.
Definition: MultiPolygon.h:127
DimensionType
Definition: Dimension.h:31