FeatureContent mixin

An interface to write geospatial feature objects to format encoders and object builders.

Supported feature object types: Feature and FeatureCollection

According to the OGC Glossary a feature is "a digital representation of a real world entity. It has a spatial domain, a temporal domain, or a spatial/temporal domain as one of its attributes. Examples of features include almost anything that can be placed in time and space, including desks, buildings, cities, trees, forest stands, ecosystems, delivery vehicles, snow removal routes, oil wells, oil pipelines, oil spill, and so on".

And a feature collection is "a set of related features managed as a group".

According to the GeoJSON specifiction Feature objects contain a Geometry object and additional members (like "id" and "properties"). A FeatureCollection object contains an array of Feature objects. Both may also contain "bbox" or bounding box. Any other members on Feature and FeatureCollection objects are foreign members, allowed property values or geometry objects, but not known by the GeoJSON model.

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

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