Feature class abstract

The base class for all feature types.

Implementers

Constructors

Feature({Map<String, dynamic> properties = const <String, dynamic>{}})
Feature.fromJson(Map<String, dynamic> json)
Creates a Feature from a JSON object.
factory
Feature.fromWKT(String wkt)
Creates a Feature from a WKT String.
factory

Properties

bbox BoundingBox
Returns the BoundingBox of the Feature. This is the bounding box of all Coordinates in the Feature.
no setter
center Point
Returns the center Point of the Feature. This is the average of all Coordinates in the Feature.
no setter
hashCode int
The hash code for this object.
no setterinherited
properties Map<String, dynamic>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

explode() List<Point>
Explodes the Feature into a list of Points.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the Feature to a JSON object.
toString() String
A string representation of this object.
override
toWKT() String
Converts the Feature to a WKT String.

Operators

operator +(Feature other) FeatureCollection
Adds two Features together to form a FeatureCollection. Each Feature in the FeatureCollection will retain their properties and coordinates.
operator ==(Object other) bool
The equality operator.
inherited

Static Properties

type String
final