GeoJSONGeometry class abstract

An abstract base class for GeoJSON Geometry objects.

This class must be subclassed to provide specific GeoJSON Geometry types like Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, and GeometryCollection.

Implemented types
Implementers

Constructors

GeoJSONGeometry.fromJSON(String source)
Creates a new instance of GeoJSONGeometry from a JSON string.
factory
GeoJSONGeometry.fromMap(Map<String, dynamic> map)
Creates a new instance of GeoJSONGeometry from a Map object.
factory

Properties

area double
Gets the area of the geometry.
no setter
bbox List<double>?
An optional bounding box bbox of the GeoJSON object.
no setterinherited
distance double
Gets the distance of the geometry.
no setter
hashCode int
Returns a hash code for this GeoJSONGeometry object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type GeoJSONType
Specifies the type of GeoJSON Geometry.
latefinaloverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON({int indent = 0}) String
Converts the object to a JSON string representation.
override
toMap() Map<String, dynamic>
Converts GeoJSON object to a Map.
override
toString() String
A string representation of this object.
override

Operators

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