FeatureBuilder<T extends FeatureObject, E extends Geometry> class

A builder to create geospatial feature objects of T from FeatureContent.

This builder supports creating Feature and FeatureCollection objects.

Features or feature items on a collection contain a geometry of E.

See FeatureContent for more information about these objects.

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

feature({Object? id, WriteGeometries? geometry, Map<String, dynamic>? properties, Box? bounds, Map<String, dynamic>? custom}) → void
Writes a feature with id, geometry and properties.
override
featureCollection(WriteFeatures features, {int? count, Box? bounds, Map<String, dynamic>? custom}) → void
Writes a feature collection with an array of features.
override
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

Static Methods

build<T extends FeatureObject, E extends Geometry>(WriteFeatures features, {required void to(T feature)}) → void
Builds geospatial feature objects from the content provided by features.
buildList<T extends FeatureObject, E extends Geometry>(WriteFeatures features, {int? count}) List<T>
Builds a list of geospatial feature objects from the content provided by features.
fromData<R extends FeatureObject, E extends Geometry>(Map<String, dynamic> data, {TextReaderFormat<FeatureContent> format = GeoJSON.feature, CoordRefSys? crs, Map<String, dynamic>? options}) → R
Decode a feature object of R from data conforming to format.
parse<R extends FeatureObject, E extends Geometry>(String text, {TextReaderFormat<FeatureContent> format = GeoJSON.feature, CoordRefSys? crs, Map<String, dynamic>? options}) → R
Parses a feature object of R from text conforming to format.