MultiLineString class Null safety
A MultiLineString is a Feature made up of a List of LineString Coordinates.
Constructors
-
MultiLineString(List<
List< coordinates, {dynamic properties = const <String, dynamic>{}})Coordinate> > -
MultiLineString.fromJson(Map<
String, dynamic> json) -
Creates a MultiLineString from a valid GeoJSON object.
factory
- MultiLineString.fromWKT(String wkt)
-
Creates a MultiLineString from a WKT String.
factory
Properties
-
coordinates
↔ List<
List< Coordinate> > -
read / write
- hashCode → int
-
The hash code for this object.
read-only, inherited
- length → double
-
Returns the total distance of the MultiLineString in meters.
This is the sum of the distances of each LineString in the MultiLineString.
The distance is calculated using the Haversine formula.
read-only
-
properties
↔ Map<
String, dynamic> -
read / write, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
explode(
) → List< Point> -
Explodes the MultiLineString into a List of
Point
s.override -
flatten(
) → FeatureCollection - Flattens the MultiLineString into a FeatureCollection of LineStrings. Properties are inherited from the MultiLineString.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Returns a GeoJSON representation of the MultiLineString.
override
-
toString(
) → String -
A string representation of this object.
override
-
toWKT(
) → String -
Converts the MultiLineString to a String in WKT format.
override
-
union(
MultiLineString other) → MultiLineString - Returns a MultiLineString that is the union of this MultiLineString and another MultiLineString. The resulting MultiLineString will have the same properties as this MultiLineString.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited