GeoStream class

Streams have several function-properties that are called to transform an input geometry.

No materializations of intermediate representations are made, which minimizes overhead. Streams are inherently stateful; the meaning of a point depends on whether the point is inside of a line, and likewise a line is distinguished from a ring by a polygon. Despite the name “stream”, these method calls are currently synchronous.

Implementers

Constructors

GeoStream({void point(List<num>) = noop, void sphere() = noop, void lineStart() = noop, void lineEnd() = noop, void polygonStart() = noop, void polygonEnd() = noop})

Properties

hashCode int
The hash code for this object.
no setterinherited
lineEnd ↔ void Function()
Indicates the end of a line or ring. Within a polygon, indicates the end of a ring.
getter/setter pair
lineStart ↔ void Function()
Indicates the start of a line or ring. Within a polygon, indicates the start of a ring.
getter/setter pair
point ↔ void Function(List<num>)
Indicates a point with the specified coordinates [x, y, (and optionally z)].
getter/setter pair
polygonEnd ↔ void Function()
Indicates the end of a polygon.
getter/setter pair
polygonStart ↔ void Function()
Indicates the start of a polygon. The first line of a polygon indicates the exterior ring, and any subsequent lines indicate interior holes.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sphere ↔ void Function()
Indicates the sphere (the globe; the unit sphere centered at ⟨0,0,0⟩).
getter/setter pair

Methods

call(Map? object) → void
Streams the specified GeoJSON object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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