geojson_vi library

geojson_vi is a comprehensive GeoJSON library for Dart and Flutter developers.

It is designed to facilitate parsing, reading, creating, updating, searching, and deleting geospatial data following the RFC 7946 standard.

Its robust support for all GeoJSON objects makes it an ideal tool for managing GIS data.

Classes

GeoJSON
GeoJSON is an abstract class representing a geospatial data interchange format.
GeoJSONFeature
The Feature represents a spatially bounded thing.
GeoJSONFeatureCollection
The GeoJSONFeatureCollection represents a collection of features.
GeoJSONGeometry
An abstract base class for GeoJSON Geometry objects.
GeoJSONGeometryCollection
A GeoJSON object representing a Geometry Collection.
GeoJSONLineString
A class representing a GeoJSON LineString.
GeoJSONMultiLineString
This class represents the geometry type MultiLineString according to the GeoJSON specification.
GeoJSONMultiPoint
A class representing a GeoJSON MultiPoint.
GeoJSONMultiPolygon
Class that represents a MultiPolygon geometry type in GeoJSON.
GeoJSONPoint
A class representing a GeoJSON Point.
GeoJSONPolygon
The geometry type Polygon
ListExt<T>
The ListExt class extends the ListBase class to provide additional functionality.

Enums

GeoJSONType
Enumerates the types of geometry that can be used in a GeoJSON object.

Extensions

ExtGeoJSONType on GeoJSONType
Defines extensions on the GeoJSONType enum.

Functions

calculateHaversineDistance(num lat1, num lon1, num lat2, num lon2) double
Calculates the Haversine distance in meters between two points specified by their latitude and longitude coordinates.
convertFromWebMercator(double x, double y) List<double>
Converts Web Mercator EPSG:3857 coordinates to decimal latitude and longitude.
convertToWebMercator(double longitude, double latitude) List<double>
Converts latitude and longitude coordinates in decimal degrees to the Web Mercator EPSG:3857 coordinate system.
doubleListsEqual(List<double> list1, List<double> list2) bool
Checks if two lists of doubles are equal by comparing their lengths and values.
earClipping(List<List<double>> polygon) List<List<List<double>>>
Triangulates a polygon using the Ear Clipping method.
findIncircle(List<List<double>> points) Map<String, dynamic>
Computes the incircle of a triangle.
getGeographicArea(List<List<double>> ring) double
Computes the area of a geographic polygon ring using the WGS84 ellipsoid.
getPlanarArea(List<List<double>> ring) double
Returns the area of a ring with planar coordinates.
mapEquals(Map? map1, Map? map2) bool
Checks if two maps are equal by comparing their keys and values.
numListEquals(List<num> list1, List<num> list2) bool
Checks if two lists of num are equal.