GeometryContent mixin
An interface to write geometry data to format encoders and object builders.
This mixin supports specific simple geometry types defined by SimpleGeometryContent and geometry collections. It's possible that in future versions other geometry types are added.
Coordinate positions, position arrays and bounding boxes are represented as
coordinate value arrays of Iterable<double>
.
- Implemented types
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
emptyGeometry(
Geom type, {String? name}) → void -
Writes an empty geometry of
type
.inherited -
geometryCollection(
WriteGeometries geometries, {int? count, String? name, Iterable< double> ? bounds}) → void -
Writes a geometry collection from the content provided by
geometries
. -
lineString(
Iterable< double> chain, {required Coords type, String? name, Iterable<double> ? bounds}) → void -
Writes a line string geometry with a
chain
of positions.inherited -
multiLineString(
Iterable< Iterable< lineStrings, {required Coords type, String? name, Iterable<double> >double> ? bounds}) → void -
Writes a multi line string with an array of
lineStrings
(each with a chain of positions).inherited -
multiPoint(
Iterable< Iterable< points, {required Coords type, String? name, Iterable<double> >double> ? bounds}) → void -
Writes a multi point geometry with an array of
points
(each with a position).inherited -
multiPolygon(
Iterable< Iterable< polygons, {required Coords type, String? name, Iterable<Iterable< >double> >double> ? bounds}) → void -
Writes a multi polygon with an array of
polygons
(each with an array of rings).inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
point(
Iterable< double> position, {Coords? type, String? name}) → void -
Writes a point geometry with
position
.inherited -
polygon(
Iterable< Iterable< rings, {required Coords type, String? name, Iterable<double> >double> ? bounds}) → void -
Writes a polygon geometry with one exterior and 0 to N interior
rings
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited