MultiPolygon<T extends Point<num>> class

A multi polygon geometry.

Inheritance
Annotations
  • @immutable

Constructors

MultiPolygon(Iterable<Polygon<T>> polygons)
Create MultiPolygon from polygons.
MultiPolygon.make(Iterable<Iterable<Iterable<Iterable<num>>>> values, PointFactory<T> pointFactory, {Bounds<Point<num>>? bounds})
Create MultiPolygon from values with a list of rings for polygons.
factory
MultiPolygon.parse(String text, PointFactory<T> pointFactory, {ParseCoordsListListList? parser})
Create MultiPolygon from text with a list of rings for polygons.
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
coordinates Iterable<Iterable<Iterable<Position>>>
Coordinates of rings of all polygons as 3-dim 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
polygons BoundedSeries<Polygon<T>>
All the polygons for this multi polygon.
final
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
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}) MultiPolygon<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) MultiPolygon<T>
Returns a new geometry with all points transformed using transform.
override
writeTo(SimpleGeometryContent writer) → void
Writes this geometry object to writer.
override

Operators

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