23#include <geos/export.h>
26#include <geos/geom/GeometryCollection.h>
27#include <geos/geom/Polygon.h>
28#include <geos/geom/Dimension.h>
46#pragma warning(disable:4250)
60 friend class GeometryFactory;
92 std::unique_ptr<MultiPolygon> clone()
const
94 return std::unique_ptr<MultiPolygon>(
cloneImpl());
97 std::unique_ptr<MultiPolygon> reverse()
const {
return std::unique_ptr<MultiPolygon>(reverseImpl()); }
123 const GeometryFactory& newFactory);
125 MultiPolygon(std::vector<std::unique_ptr<Geometry>> && newPolys,
126 const GeometryFactory& newFactory);
129 : GeometryCollection(mp)
134 GeometryCollection* getCurvedImpl(
const algorithm::LineToCurveParams&)
const override;
136 MultiPolygon* getLinearizedImpl(
const algorithm::CurveToLineParams&)
const override {
return cloneImpl(); }
141 getSortIndex()
const override
143 return SORTINDEX_MULTIPOLYGON;
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:220
DimensionType
Definition Dimension.h:29
@ A
Dimension value of a surface (2).
Definition Dimension.h:46
Represents a collection of heterogeneous Geometry objects.
Definition GeometryCollection.h:51
Definition MultiPoint.h:50
Definition MultiPolygon.h:57
MultiPolygon(std::vector< std::unique_ptr< Polygon > > &&newPolys, const GeometryFactory &newFactory)
Construct a MultiPolygon.
std::unique_ptr< Geometry > getBoundary() const override
Computes the boundary of this geometry.
int getBoundaryDimension() const override
Returns 1 (MultiPolygon boundary is MultiLineString).
Dimension::DimensionType getDimension() const override
Returns surface dimension (2).
std::string getGeometryType() const override
Return a string representation of this Geometry type.
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 hasCurvedComponents() const override
Returns whether the Geometry contains curved components.
Definition MultiPolygon.h:146
MultiPolygon * reverseImpl() const override
Make a geometry with coordinates in reverse order.
bool isDimensionStrict(Dimension::DimensionType d) const override
Checks whether this Geometry consists only of components having dimension d.
Definition MultiPolygon.h:71
MultiPolygon * cloneImpl() const override
Make a deep-copy of this Geometry.
Definition MultiPolygon.h:132
bool hasDimension(Dimension::DimensionType d) const override
Checks whether any component of this geometry has dimension d.
Definition MultiPolygon.h:67
Represents a linear polygon, which may include holes.
Definition Polygon.h:61
GeometryTypeId
Geometry types.
Definition Geometry.h:78
Basic namespace for all GEOS functionalities.
Definition geos.h:38