FeatureCollection<E extends Feature<Geometry>> class

A feature collection with a series of features.

Implements also Bounded.

Supports representing data from GeoJSON (https://geojson.org/) feature collections.

Inheritance
Implemented types
Annotations
  • @immutable

Constructors

FeatureCollection({required Iterable<E> features, Bounds<Point<num>>? bounds})
Creates a feature collection from a series of features.
factory
FeatureCollection.of({required BoundedSeries<E> features, Bounds<Point<num>>? bounds})
Creates a feature collection from a series of features.
const

Properties

bounds Bounds<Point<num>>?
The bounds for this object (could be calculated if not explicitely set).
no setter
boundsExplicit Bounds<Point<num>>?
The explicit bounds for this object when available.
no setter
features BoundedSeries<E>
All the features for this collection.
no setter
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
project<R extends Point<num>>(Projection projection, {required CreatePosition<R> to}) FeatureCollection<Feature<Geometry>>
Returns a new collection with features projected using projection.
override
toString() String
A string representation of this object.
override
toStringAs({TextWriterFormat<FeatureContent> format = GeoJSON.feature, int? decimals}) String
A string representation of this object, with an optional format applied.
inherited
transform(TransformPosition transform) FeatureCollection<E>
Returns a new collection with features transformed using transform.
override
writeTo(FeatureContent writer) → void
Writes this feature object to writer.
override

Operators

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