LinearRing class

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:
no setter
bbox BoundingBox
Returns the BoundingBox of the LinearRing.
no setter
centroid Point
Returns the LinearRing's centroid. The centroid is the Point that is the center of the LinearRing. Example:
no setter
coordinates List<Coordinate>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 nonexistent 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