GeometryBuilder<T extends Geometry, E extends Geometry> class

A builder to create geometry objects of T from GeometryContent.

The type E is used for element types on geometry collections.

This builder supports creating Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon and GeometryCollection objects.

See GeometryContent for more information about these objects.

This builder ignore "empty geometry" types.

Mixed in 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.
override
geometryCollection(WriteGeometries geometries, {Coords? type, int? count, String? name, Box? bounds}) → void
Writes a geometry collection from the content provided by geometries.
override
lineString(PositionSeries chain, {String? name, Box? bounds}) → void
Writes a line string geometry with a chain of positions.
override
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).
override
multiPoint(Iterable<Position> points, {String? name, Box? bounds}) → void
Writes a multi point geometry with an array of points (each with a position).
override
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).
override
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.
override
polygon(Iterable<PositionSeries> rings, {String? name, Box? bounds}) → void
Writes a polygon geometry with one exterior and 0 to N interior rings.
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

build<T extends Geometry>(WriteGeometries geometries, {required AddGeometry<T> to}) → void
Builds geometries from the content provided by geometries.
buildList<T extends Geometry>(WriteGeometries geometries, {int? count}) List<T>
Builds a geometry list from the content provided by geometries.
buildMap<T extends Geometry>(WriteGeometries geometries, {int? count}) Map<String, T>
Builds a geometry map from the content provided by geometries.
decode<R extends Geometry>(Uint8List bytes, {BinaryFormat<SimpleGeometryContent> format = WKB.geometry, CoordRefSys? crs, Map<String, dynamic>? options}) → R
Decodes a geometry of R from bytes conforming to format.
decodeCollection<T extends Geometry>(Uint8List bytes, {BinaryFormat<GeometryContent> format = WKB.geometry, CoordRefSys? crs, Map<String, dynamic>? options}) GeometryCollection<T>
Decodes a geometry collection with elements of T from bytes conforming to format.
decodeCollectionHex<T extends Geometry>(String bytesHex, {BinaryFormat<GeometryContent> format = WKB.geometry, CoordRefSys? crs, Map<String, dynamic>? options}) GeometryCollection<T>
Decodes a geometry collection with elements of T from bytesHex (as a hex string) conforming to format.
decodeHex<R extends Geometry>(String bytesHex, {BinaryFormat<SimpleGeometryContent> format = WKB.geometry, CoordRefSys? crs, Map<String, dynamic>? options}) → R
Decodes a geometry of R from bytesHex (as a hex string) conforming to format.
parse<R extends Geometry>(String text, {TextReaderFormat<SimpleGeometryContent> format = GeoJSON.geometry, CoordRefSys? crs, Map<String, dynamic>? options}) → R
Parses a geometry of R from text conforming to format.
parseCollection<T extends Geometry>(String text, {TextReaderFormat<GeometryContent> format = GeoJSON.geometry, CoordRefSys? crs, Map<String, dynamic>? options}) GeometryCollection<T>
Parses a geometry collection with elements of T from text conforming to format.