Multipart class final
Defines common members for polyline and polygon multipart geometries.
Multipart geometries are based upon the parent Geometry class. The geometry class is immutable which means that you cannot change its shape once it is created. If you need to modify a multipart once it has been created, use the MultipartBuilder class instead. The GeometryBuilder.toGeometry method provides you with the base geometry object.
A 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.
Polygon and Polyline inherit from multipart, which in turn inherits from Geometry. Multipart provides access to the geometry's ImmutablePartCollection via the Multipart.parts property. Each ImmutablePart in the collection is a collection of Segment objects. You can iterate through the segments or points in each part.
Properties
- dimension → GeometryDimension
-
Indicates the dimensionality of a Geometry, relating to the number of
spatial dimensions in which the geometry may have a size.
no setterinherited
- extent → Envelope
-
The minimum enclosing bounding-box (or Envelope) that covers the
geometry.
no setterinherited
- geometryType → GeometryType
-
This indicates the type of geometrical shape it can represent, such as Envelope, Point or Polygon.
no setterinherited
- hasCurves → bool
-
True if this geometry contains curve segments, false otherwise.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasM → bool
-
True if the geometry has m values (measure values), false otherwise.
no setterinherited
- hasZ → bool
-
True if the geometry has z-coordinate values, false otherwise.
no setterinherited
- isEmpty → bool
-
True if the geometry is empty, false otherwise.
no setterinherited
- parts → ImmutablePartCollection
-
The parts for the multipart.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spatialReference → SpatialReference?
-
The spatial reference for this geometry.
no setterinherited
Methods
-
equalsWithTolerance(
{required Geometry right, required double tolerance}) → bool -
Checks if two geometries are approximately the same within the given
tolerance.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Returns a JSON representation of this Object in the data type used by jsonDecode.
inherited
-
toJsonString(
) → String -
Returns a JSON representation of this Object as a String.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited