LinearRing class Null safety

A LinearRing is a closed series of Coordinates. It is used in Polygons and MultiPolygons. Closed means the first and last Coordinates are the same.

Constructors

LinearRing(List<Coordinate> coordinates)
LinearRing.random()
Creates a random LinearRing with 3 Coordinates.
factory

Properties

area double
The area of the LinearRing in square meters. Example:
read-only
bbox BoundingBox
Returns the BoundingBox of the LinearRing.
read-only
centroid Point
Returns the LinearRing's centroid. The centroid is the Point that is the center of the LinearRing. Example:
read-only
coordinates List<Coordinate>
final
hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

contains(Point point) bool
Returns whether or not the LinearRing contains the Point. Uses the Ray Casting algorithm.
explode() FeatureCollection
Returns all the Coordinates of the LinearRing as Points.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
reverse() LinearRing
Reverses the LinearRing's coordinates. Example:
toLineString() LineString
Converts the LinearRing to a LineString.
toString() String
A string representation of this object.
inherited

Operators

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