GeoStream class Streams
Rather than materializing intermediate representations, streams transform geometry through function calls to minimize 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.
Constructors
- GeoStream.new({void point(num x, num y, [num? z]) = 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(num x, num y, [num? z])
-
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