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 and position arrays are represented as coordinate value arrays of Iterable<double>.

Implemented types
Mixin Applications

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, {Coords? type, int? count, String? name, Box? bounds}) → void
Writes a geometry collection from the content provided by geometries.
lineString(PositionSeries chain, {String? name, Box? bounds}) → void
Writes a line string geometry with a chain of positions.
inherited
multiLineString(Iterable<PositionSeries> lineStrings, {String? name, Box? bounds}) → void
Writes a multi line string with an array of lineStrings (each with a chain of positions).
inherited
multiPoint(Iterable<Position> points, {String? name, Box? bounds}) → void
Writes a multi point geometry with an array of points (each with a position).
inherited
multiPolygon(Iterable<Iterable<PositionSeries>> polygons, {String? name, Box? 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(Position position, {String? name}) → void
Writes a point geometry with position.
inherited
polygon(Iterable<PositionSeries> rings, {String? name, Box? 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