GeoSerie class
A class to hold information about a serie of GeoPoint
Constructors
-
GeoSerie({required String name, required GeoSerieType type, int? id, num? surface, GeoSerie? boundary, GeoPoint? centroid, List<
GeoPoint> ? geoPoints}) - Default constructor: requires a name and a type
-
GeoSerie.fromJson(Map<
String, dynamic> json) - Make a GeoSerie from json data
- GeoSerie.fromNameAndType({required String name, required String typeStr, int? id})
- Make a GeoSerie from name and serie type
Properties
- boundary ↔ GeoSerie?
-
Boundaries of a geometry
getter/setter pair
- centroid ↔ GeoPoint?
-
The centroid of a geometry
getter/setter pair
-
geoPoints
↔ List<
GeoPoint> -
The list of
GeoPoint
in the seriegetter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int?
-
Id of the geoserie
getter/setter pair
- name ↔ String
-
Name if the geoserie
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- surface ↔ num?
-
The surface of a geometry
getter/setter pair
- type ↔ GeoSerieType
-
Type of the geoserie
getter/setter pair
- typeStr → String
-
The type of the serie as a string
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toGeoJsonCoordinatesString(
) → String - Convert to a geojson coordinates string
-
toGeoJsonFeatureString(
Map< String, dynamic> ? properties) → String - Convert to a geojson feature string
-
toLatLng(
{bool ignoreErrors = false}) → List< LatLng> -
Get a list of
LatLng
from this GeoSerie -
toMap(
{bool withId = true}) → Map< String, dynamic> - name the name of the GeoSerie typeStr the type of the serie: group, line or polygon id the id of the serie Get a json map from this GeoSerie
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited