Polyline class final
A multipart shape used to represent a linear feature.
Polyline geometries represent the shape and location of linear features, such as a street in a road network, a contour line representing an elevation value, or a hiking trail. A polyline can be used to define geometry for features and graphics, or as input or output for tasks or geoprocessing operations, such as the output of a network trace.
A polyline can be used as the geometry of a Feature or Graphic. To obtain the geometry on these objects, use GeoElement.geometry.
A polyline is composed of a series of connected segments, where each Segment defines a continuous line between a start and an end point. You can define a new polyline from a collection of ArcGISPoint objects to create a series of straight LineSegment objects connecting the points you specified. You can use PolylineBuilder to build a polyline one point at a time, or to modify an existing polyline.
A polyline can have multiple parts. Each part is a series of connected segments, but the parts can be disjoint, for example, a polyline representing a street that ends, and starts again a block later. Parts can also intersect at one or more points (or vertices), for example, a polyline representing a river and its tributaries.
Polylines inherit from Multipart, which provides members for iterating the segments and points of each part in a polyline.
Polylines are based upon the parent Geometry class which is immutable, meaning you can not change its shape once it is created. If you need to modify a polyline once it has been created, use the PolylineBuilder class.
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 setterinherited
- 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