GeoFactoryBase<PointType extends Point<num>> class abstract

A base implementation of GeoFactory with point and feature factories.

This class also introduces some helper methods to parse specific geometries.

Inheritance
Implementers

Constructors

GeoFactoryBase({required PointFactory<PointType> pointFactory, required CreateBounds<PointType> boundsFactory, required CreateFeature featureFactory})
A constructor of GeoFactoryBase with point and feature factories given.
const

Properties

boundsFactory CreateBounds<PointType>
A function to create bounds objects from min and max points.
final
featureFactory CreateFeature
A factory function to create a Feature object.
final
hashCode int
The hash code for this object.
no setterinherited
pointFactory PointFactory<PointType>
A factory to create point objects from coordinate values.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bounds(Iterable coords) Bounds<PointType>
Parses bounds geometry from coords.
feature<T extends Geometry>(dynamic data) Feature<T>
Parses a feature from a data object.
inherited
featureCollection<T extends Geometry>(dynamic data, {Range? range}) FeatureCollection<Feature<T>>
Parses a feature collection from a data object.
inherited
featureCount(dynamic data, {Range? range}) int
Count number of features on a collection parsed from a data object.
inherited
featureSeries<T extends Geometry>(dynamic data, {Range? range}) BoundedSeries<Feature<T>>
Parses a series of features from a data object.
inherited
geometry<T extends Geometry>(dynamic data) → T
Parses a geometry from a data object.
inherited
geometryCollection<T extends Geometry>(Iterable geometries) GeometryCollection<T>
Parses a geometry collection from geometries.
geometrySeries<T extends Geometry>(Iterable geometries) BoundedSeries<T>
Parses a series of geometries from geometries.
lineString(Iterable points, {LineStringType type = LineStringType.any}) LineString<PointType>
Parses a line string from series of points.
lineStringSeries(Iterable lineStrings, {LineStringType type = LineStringType.any}) BoundedSeries<LineString<PointType>>
Parses a series of line strings.
multiLineString(Iterable lineStrings) MultiLineString<PointType>
Parses a multi line string geometry from lineStrings.
multiPoint(Iterable points) MultiPoint<PointType>
Parses a multi point geometry from points.
multiPolygon(Iterable polygons) MultiPolygon<PointType>
Parses a multi polygon geometry from polygons.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
point(Iterable coords) → PointType
Parses a point geometry from coords containing at least 2 valid values.
pointSeries(Iterable points) PointSeries<PointType>
Parses a series of points (an iterable of iterables of nums).
polygon(Iterable rings) Polygon<PointType>
Parses a polygon from a series of rings (closed and simple line strings).
polygonSeries(Iterable polygons) BoundedSeries<Polygon<PointType>>
Parses a series of polygons.
toString() String
A string representation of this object.
inherited

Operators

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