MultiPoint class
a MultiPoint is a collection of Coordinates that share properties.
Constructors
-
MultiPoint(List<
Coordinate> coordinates, {Map<String, dynamic> properties = const <String, dynamic>{}}) -
MultiPoint.fromJson(Map<
String, dynamic> json) -
Creates a MultiPoint from a valid GeoJSON Map.
factory
- MultiPoint.fromWKT(String wkt)
-
Creates a MultiPoint from a WKT String.
factory
- MultiPoint.random({int points = 3})
-
Creates a MultiPoint at random.
The number of Coordinates is defined by
points
.factory
Properties
- bbox → BoundingBox
-
Returns the BoundingBox of the MultiPoint
no setteroverride
- center → Point
-
Return the center Point of the MultiPoint.
no setteroverride
-
coordinates
↔ List<
Coordinate> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
properties
↔ Map<
String, dynamic> -
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
explode(
) → List< Point> -
Explodes the MultiPoint into a List of Points.
override
-
flatten(
) → FeatureCollection - Flattens the MultiPoint into a FeatureCollection of Points. Properties of the MultiPoint are copied to the Points.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the MultiPoint to a GeoJSON Map.
override
-
toString(
) → String -
A string representation of this object.
override
-
toWKT(
) → String -
Converts the MultiPoint to a WKT String.
override
-
union(
{MultiPoint? multi, Point? point}) → MultiPoint - Returns a MultiPoint that is the union of this MultiPoint and another MultiPoint. The resulting MultiPoint will have the same properties as this MultiPoint.
Operators
-
operator +(
Feature other) → FeatureCollection -
Adds two Features together to form a FeatureCollection.
Each Feature in the FeatureCollection will retain their properties and coordinates.
inherited
-
operator ==(
Object other) → bool -
The equality operator.
inherited