LineString class

Class representing a line.

Inheritance

Constructors

LineString()

Properties

coordinates List<List<num>>
Returns a list where each entry represents a point's coordinates.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
true iif the line string contains no points.
no setter
isNotEmpty bool
true iif the line string contains one or more points.
no setter
paths Iterable<Iterable<Point>>
Collection of paths. A LineString has only one path which contains all of its points.
no setteroverride
points Iterable<Point>
Collection of points making up the line string.
no setter
reversed Iterable<Point>
Collection of points making up the line string, in reverse order.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type DataType
The shape's data type that will be serialized as the type GeoJSON field.
final

Methods

add(Point point) → void
Adds a point to the line string.
addAll(Iterable<Point> points) → void
Adds a set of points to the line string.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toGeoJson() Map<String, dynamic>
Serializes to GeoJSON.
inherited
toJson() Map<String, dynamic>
Serializes this instance to a JSON object (GeoJson).
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromGeoJson(Map geoJson, GeospatialConfig config) LineString
Deserializes from GeoJSON.
override
loadGeographyCoords(Iterable coords) LineString
loadGeometryCoords(Iterable coords) LineString