Click or drag to resize

Multipart Class

Represents an abstract multipart geometry type that defines common members for polyline and polygon multipart geometries.
Inheritance Hierarchy

Namespace:  Esri.ArcGISRuntime.Geometry
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.9.0
Syntax
public abstract class Multipart : Geometry

The Multipart type exposes the following members.

Properties
  NameDescription
Public propertyDimension
Gets the number of dimensions for the geometry.
(Inherited from Geometry.)
Public propertyExtent
Gets the minimum enclosing Envelope of the instance
(Overrides GeometryExtent.)
Public propertyCode exampleGeometryType
Gets the geometry type.
(Inherited from Geometry.)
Public propertyHasCurves
Gets a value indicating whether the geometry has any curves.
(Inherited from Geometry.)
Public propertyHasM
Gets a value indicating if the geometry has M
(Overrides GeometryHasM.)
Public propertyHasZ
Gets a value indicating if the geometry has Z.
(Overrides GeometryHasZ.)
Public propertyIsEmpty
Gets a value indicating whether or not the geometry is empty.
(Overrides GeometryIsEmpty.)
Public propertyCode exampleParts
Gets the parts in the geometry
Public propertyCode exampleSpatialReference
Gets the spatial reference of this geometry.
(Inherited from Geometry.)
Top
Methods
  NameDescription
Public methodEquals
Checks if two geometries are approximately same, within some tolerance.
(Inherited from Geometry.)
Public methodIsEqual
Compares two geometries for exact equality. The types of geometry, order of points, all values, and the SpatialReference must all be the equal.
(Inherited from Geometry.)
Public methodToJson
Converts this geometry into an ArcGIS JSON representation.
(Inherited from Geometry.)
Top
Remarks

MultiParts are based upon the parent Geometry Class. The Geometry Class is immutable which means that you can not change its shape once it is created. If you need to modify a MultiPart once it has been created, use the MultipartBuilderT Class instead. The [!:MultipointBuilder.ToGeometry] Method will provide you with the base Geometry object.

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

[!:Geometry.Polygon] and [!:Geometry.Polyline] inherit from Multipart, which in turn inherits from Geometry. Multipart provides access to the geometry's ReadOnlyList of ReadOnlyPart objects. Each ReadOnlyPart contains a collection of Segment objects. You can iterate through the segments or points in each part.

See Also