ArcGIS Developers

Multipart Class

class Esri::ArcGISRuntime::Multipart

Multipart geometry is comprised of a collection of shapes. More...

Header: #include <Multipart>
Since: Esri::ArcGISRuntime 100.0
Inherits: Esri::ArcGISRuntime::Geometry
Inherited By:

Esri::ArcGISRuntime::Polygon and Esri::ArcGISRuntime::Polyline

This class was introduced in Esri::ArcGISRuntime 100.0.

Public Functions

Multipart(const Esri::ArcGISRuntime::Geometry &other)
Multipart(Esri::ArcGISRuntime::Multipart &&other)
Multipart(const Esri::ArcGISRuntime::Multipart &other)
Esri::ArcGISRuntime::Multipart &operator=(Esri::ArcGISRuntime::Multipart &&other)
Esri::ArcGISRuntime::Multipart &operator=(const Esri::ArcGISRuntime::Multipart &other)
virtual ~Multipart() override
bool isValid() const
Esri::ArcGISRuntime::ImmutablePartCollection parts() const

Protected Functions

Detailed Description

Multipart geometry is a collection of shapes (of the same type) that is managed as a single geometry. A classic example is a group of islands that represent a single country or state. The individual island shapes are distinct, but ArcGIS considers it a single geometry.

Multipart is an abstract class from which Polygon and Polyline inherit, and Multipart inherits from Geometry. Multipart provides access to the geometry's ImmutablePartCollection. Each ImmutablePart in the collection is a collection of Segment objects. You can iterate through the segments or points in each part.

In the same way that Polygon and Polyline are immutable, their multipart collections are also immutable: ImmutablePartCollection, ImmutablePart, and ImmutablePointCollection. However, when creating polygons and polylines, use the mutable equivalents: PartCollection, Part, and PointCollection.

Member Function Documentation

[protected] Multipart::Multipart()

Default constructor.

Multipart::Multipart(const Esri::ArcGISRuntime::Geometry &other)

Converting constructor from other Geometry.

See also Downcast helper functions.

Multipart::Multipart(Esri::ArcGISRuntime::Multipart &&other)

Move constructor from other Multipart.

Multipart::Multipart(const Esri::ArcGISRuntime::Multipart &other)

Copy constructor from other Multipart.

Esri::ArcGISRuntime::Multipart &Multipart::operator=(Esri::ArcGISRuntime::Multipart &&other)

Move operator from other Multipart.

Esri::ArcGISRuntime::Multipart &Multipart::operator=(const Esri::ArcGISRuntime::Multipart &other)

Assignment operator from other Multipart.

[override virtual] Multipart::~Multipart()


bool Multipart::isValid() const

Gets whether this Multipart is valid.

A Multipart is valid if it is not empty and geometryType is GeometryType::Polygon or GeometryType::Polyline.

Returns true if valid.

This function was introduced in Esri::ArcGISRuntime 100.2.

Esri::ArcGISRuntime::ImmutablePartCollection Multipart::parts() const

Gets the parts of this Multipart as an ImmutablePartCollection.

Returns an ImmutablePartCollection.

Feedback on this topic?