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)
92 std::unique_ptr<Geometry>
clone()
const override;
94 std::unique_ptr<Geometry>
reverse()
const override;
121 MultiPolygon(std::vector<std::unique_ptr<Polygon>> && newPolys,
124 MultiPolygon(std::vector<std::unique_ptr<Geometry>> && newPolys,
130 getSortIndex()
const override
132 return SORTINDEX_MULTIPOLYGON;
145 # include "geos/geom/MultiPolygon.inl"
DimensionType
Definition: Dimension.h:31
@ A
Dimension value of a surface (2).
Definition: Dimension.h:48
Represents a collection of heterogeneous Geometry objects.
Definition: GeometryCollection.h:55
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:68
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Definition: MultiPolygon.h:59
int getBoundaryDimension() const override
Returns 1 (MultiPolygon boundary is MultiLineString)
MultiPolygon(std::vector< Geometry * > *newPolys, const GeometryFactory *newFactory)
Construct a MultiPolygon.
Dimension::DimensionType getDimension() const override
Returns surface dimension (2)
std::unique_ptr< Geometry > clone() const override
std::string getGeometryType() const override
Return a string representation of this Geometry type.
std::unique_ptr< Geometry > reverse() const override
GeometryTypeId getGeometryTypeId() const override
Return an integer representation of this Geometry type.
const Polygon * getGeometryN(std::size_t n) const override
Returns a pointer to the nth Geometry in this collection.
bool equalsExact(const Geometry *other, double tolerance=0) const override
Returns true iff the two Geometrys are of the same type and their vertices corresponding by index are...
std::unique_ptr< Geometry > getBoundary() const override
Computes the boundary of this geometry.
bool isDimensionStrict(Dimension::DimensionType d) const override
Checks whether this Geometry consists only of components having dimension d.
Definition: MultiPolygon.h:69
Represents a linear polygon, which may include holes.
Definition: Polygon.h:64
GeometryTypeId
Geometry types.
Definition: Geometry.h:75
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26