About geobase
Key features of the geobase package:
- π geographic (longitude-latitude) and projected positions and bounding boxes
- 𧩠simple geometries (point, line string, polygon, multi point, multi line string, multi polygon, geometry collection)
- π cartesian 2D calculations (centroid, polylabel, point-in-polygon, distance).
- π· features (with id, properties and geometry) and feature collections
- π ellipsoidal (vincenty) and spherical (great circle, rhumb line) geodesy tools
- π temporal data structures (instant, interval) and spatial extents
- π vector data formats supported (GeoJSON, Newline-delimited GeoJSON, WKT and WKB)
- πΊοΈ coordinate projections (web mercator + based on the external proj4dart library)
- π’ tiling schemes and tile matrix sets (web mercator, global geodetic)
π οΈ Usage
The package requires at least Dart SDK 2.17, and it supports all Dart and Flutter platforms.
Add the dependency in your pubspec.yaml
:
Import it:
There are also partial packages containing only a certain subset. See the packages section below.
π Shortcuts to docs
π¦ Packages
The geobase library contains also following partial packages, that can be used to import only a certain subset instead of the whole geobase package:
Package | Description |
---|---|
common | Common codes, constants, functions, presentation helpers and reference systems related to geospatial applications. |
coordinates | Position, bounding box and positions series (with coordinate arrays). |
geodesy | Ellipsoidal (vincenty) and spherical (great circle, rhumb line) geodesy tools. |
geometric | Cartesian 2D calculations (centroid, polylabel, point-in-polygon, distance). |
meta | Temporal data structures (instant, interval) and spatial extents. |
projections | Geospatial projections (currently only between WGS84 and Web Mercator). |
projections_proj4d | Projections provided by the external proj4dart package. |
tiling | Tiling schemes and tile matrix sets (web mercator, global geodetic). |
vector | Text and binary formats for vector data (features, geometries, coordinates). |
vector_data | Data structures for geometries, features and feature collections. |
External packages geobase
is depending on:
- collection for priority queues and collection utilities
- meta for annotations
- proj4dart for coordinate projections