LineString<T extends Point<num> > class
A line string containing a chain of points.
Constructors
-
LineString(Iterable<
T> chain, {LineStringType type = LineStringType.any}) -
Create LineString from
chain
of points conforming by type. -
LineString.any(Iterable<
T> chain) -
Create LineString from
chain
of points (0 or >= 2 items).factory -
LineString.make(Iterable<
Iterable< values, PointFactory<num> >T> pointFactory, {LineStringType type = LineStringType.any, Bounds<Point< ? bounds})num> > -
Create LineString from
values
with a chain of points.factory -
LineString.parse(String text, PointFactory<
T> pointFactory, {LineStringType type = LineStringType.any, ParseCoordsList? parser}) -
Create LineString parsed from
text
with a chain of points.factory -
LineString.ring(Iterable<
T> chain) -
Create a linear ring from a closed and simple
chain
of points.factory
Properties
-
bounds
→ Bounds<
Point< ?num> > -
The bounds for this object (could be calculated if not explicitely set).
no setter
-
boundsExplicit
→ Bounds<
Point< ?num> > -
The explicit bounds for this object when available.
no setter
-
chain
→ PointSeries<
T> -
The chain of points forming this line string.
final
-
coordinates
→ Iterable<
Position> -
Coordinates of chain as 1-dimensional array of Position objects.
no setter
- dimension → int
-
The topological dimension of this geometry.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
True if this geometry is considered empty without data or coordinates.
no setteroverride
- isNotEmpty → bool
-
True if this geometry is NOT considered empty without data or coordinates.
no setterinherited
-
onePoint
→ Point<
num> ? -
Returns one of points contained by this geometry if it's not empty.
no setteroverride
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - type → LineStringType
-
The type of this line string.
final
- typeGeom → Geom
-
The type of this geometry.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
project<
R extends Point< (num> >Projection projection, {required CreatePosition< R> to}) → LineString<R> -
Returns a new geometry with all points projected using
projection
.override -
toString(
) → String -
A string representation of this object.
override
-
toStringAs(
{TextWriterFormat< GeometryContent> format = DefaultFormat.geometry, int? decimals}) → String -
A string representation of this geometry, with
format
applied.inherited -
transform(
TransformPosition transform) → LineString< T> -
Returns a new geometry with all points transformed using transform.
override
-
validate(
) → void - Throws if chain and type contains values not valid for a line string.
-
writeTo(
SimpleGeometryContent writer) → void -
Writes this geometry object to
writer
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited