Polygon<T extends Point<num> > class
A polygon with an exterior and optional interior boundaries.
Constructors
-
Polygon(Iterable<
LineString< rings)T> > -
Create Polygon from
rings
with at least exterior boundary at index 0. -
Polygon.fromPoints(Iterable<
Iterable< rings)T> > -
Create Polygon from
rings
with at least exterior boundary at index 0. -
Polygon.make(Iterable<
Iterable< values, PointFactory<Iterable< >num> >T> pointFactory, {Bounds<Point< ? bounds})num> > -
Create Polygon from
values
with a list of rings.factory -
Polygon.parse(String text, PointFactory<
T> pointFactory, {ParseCoordsListList? parser}) -
Create Polygon parsed from
text
with a list of rings.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< Position> > -
Coordinates of all rings as 2-dimensional array of Position objects.
no setter
- dimension → int
-
The topological dimension of this geometry.
no setteroverride
-
exterior
→ LineString<
T> -
A linear ring forming an exterior boundary for this polygon.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
interior
→ BoundedSeries<
LineString< T> > -
A series of interior rings (holes for this polygon) with 0 to N elements.
no setter
- 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
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
-
rings
→ BoundedSeries<
LineString< T> > -
Linear rings with at least exterior boundary at index 0.
final
- 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}) → Polygon<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) → Polygon< 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
Static Methods
-
validate<
T extends Point< (num> >Iterable< LineString< rings) → BoundedSeries<T> >LineString< T> > -
Validate
rings
to have at least one exterior and all must be rings.