GeoJson class

The main geojson class

Constructors

GeoJson()
Default constructor

Properties

endSignal Stream<bool>
The stream indicating that the parsing is finished Use it to dispose the class if not needed anymore after parsing
no setter
features List<GeoJsonFeature>
All the features
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lines List<GeoJsonLine?>
All the lines
getter/setter pair
multilines List<GeoJsonMultiLine?>
All the multilines
getter/setter pair
multipoints List<GeoJsonMultiPoint?>
All the multipoints
getter/setter pair
multipolygons List<GeoJsonMultiPolygon?>
All the multipolygons
getter/setter pair
points List<GeoJsonPoint?>
All the points
getter/setter pair
polygons List<GeoJsonPolygon?>
All the polygons
getter/setter pair
processedFeatures Stream<GeoJsonFeature>
Stream of features that are coming in as they are parsed Useful for handing the featues faster if the file is big
no setter
processedLines Stream<GeoJsonLine?>
Stream of lines that are coming in as they are parsed
no setter
processedMultilines Stream<GeoJsonMultiLine?>
Stream of multilines that are coming in as they are parsed
no setter
processedMultipoints Stream<GeoJsonMultiPoint?>
Stream of multipoints that are coming in as they are parsed
no setter
processedMultipolygons Stream<GeoJsonMultiPolygon?>
Stream of multipolygons that are coming in as they are parsed
no setter
processedPoints Stream<GeoJsonPoint?>
Stream of points that are coming in as they are parsed
no setter
processedPolygons Stream<GeoJsonPolygon?>
Stream of polygons that are coming in as they are parsed
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Dispose the class when finished using it
geofenceDistance({required GeoJsonPoint point, required List<GeoJsonPoint> points, required num distance, bool disableStream = false, bool verbose = false}) Future<List<GeoJsonPoint>>
Find all the GeoJsonPoint within a certain distance from a GeoJsonPoint
geofencePolygon({required GeoJsonPolygon polygon, required List<GeoJsonPoint> points, bool disableStream = false, bool verbose = false}) Future<List<GeoJsonPoint>>
Find all the GeoJsonPoint located in a GeoJsonPolygon from a list of points
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(String data, {String? nameProperty, bool verbose = false, bool disableStream = false}) Future<void>
Parse the data
parseFile(String path, {String? nameProperty, bool verbose = false, GeoJsonQuery? query, bool disableStream = false}) Future<void>
Parse the data from a file
parseInMainThread(String data, {String? nameProperty, GeoJsonQuery? query, bool verbose = false, bool disableStream = false}) Future<void>
Parse the geojson in the main thread not using any isolate: necessary for the web
Search a GeoJsonFeature by prpperty.
searchInFile(String path, {required GeoJsonQuery query, String? nameProperty, bool verbose = false}) Future<void>
Search a GeoJsonFeature by prpperty from a file
toString() String
A string representation of this object.
inherited

Operators

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