MultiPolygon class Null safety
A MultiPolygon is a collection of Polygon Geometries with shared properties.
Constructors
-
MultiPolygon(List<
List< coordinates, {dynamic properties = const <String, dynamic>{}})LinearRing> > -
MultiPolygon.fromJson(Map<
String, dynamic> json) -
Creates a MultiPolygon from a GeoJSON Map.
factory
Properties
- area → double
-
The area of the MultiPolygon in square meters.
read-only
-
coordinates
↔ List<
List< LinearRing> > -
read / write
- hashCode → int
-
The hash code for this object.
read-only, inherited
-
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> -
explode the MultiPolygon into a List of
Point
s.override -
flatten(
) → FeatureCollection - Breaks the MultiPolygon into a FeatureCollection containing each Polygons. Also, copies the properties of the MultiPolygon to each Polygon.
-
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 MultiPolygon
override
-
toMultiLineString(
) → MultiLineString - Converts the MultiPolygon to a WKT a MultiLineString. Uses the outer ring of each polygon, all holes are ignored.
-
toString(
) → String -
A string representation of this object.
override
-
toWKT(
) → String -
Converts the MultiPolygon to a WKT String.
override
-
union(
MultiPolygon other) → MultiPolygon - Returns a MultiPolygon that is the union of this MultiPolygon and another MultiPolygon. The resulting MultiPolygon will have the same properties as this MultiPolygon.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited