Multipart Class |
Namespace: Esri.ArcGISRuntime.Geometry
The Multipart type exposes the following members.
Name | Description | |
---|---|---|
![]() | Dimension | Gets the number of dimensions for the geometry. (Inherited from Geometry.) |
![]() | Extent |
Gets the minimum enclosing Envelope of the instance
(Overrides GeometryExtent.) |
![]() ![]() | GeometryType | Gets the geometry type. (Inherited from Geometry.) |
![]() | HasCurves | Gets a value indicating whether the geometry has any curves. (Inherited from Geometry.) |
![]() | HasM |
Gets a value indicating if the geometry has M
(Overrides GeometryHasM.) |
![]() | HasZ |
Gets a value indicating if the geometry has Z.
(Overrides GeometryHasZ.) |
![]() | IsEmpty |
Gets a value indicating whether or not the geometry is empty.
(Overrides GeometryIsEmpty.) |
![]() ![]() | Parts |
Gets the parts in the geometry
|
![]() ![]() | SpatialReference | Gets the spatial reference of this geometry. (Inherited from Geometry.) |
Name | Description | |
---|---|---|
![]() | Equals | Checks if two geometries are approximately same, within some tolerance. (Inherited from Geometry.) |
![]() | IsEqual |
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.) |
![]() | ToJson | Converts this geometry into an ArcGIS JSON representation. (Inherited from Geometry.) |
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.