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, with ellipsoidal datum, UTM, MGRS and ECEF (earth-centric earth-fixed) support
- π temporal data structures (instant, interval) and spatial extents
- π vector data formats supported (GeoJSON, Newline-delimited GeoJSON, WKT, WKB )
- πΊοΈ coordinate projections (built-in WGS84 based projections on geographic, geocentric, UTM and Web Mercator coordinates + external proj4dart support)
- π’ tiling schemes and tile matrix sets (web mercator, global geodetic)
- βοΈ unit conversions (angle, angular velocity, area, distance, speed and time)
π οΈ 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
:
dependencies: geobase: ^1.5.0
Import it:
import `package:geobase/geobase.dart`
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, with ellipsoidal datum, UTM, MGRS and ECEF support. |
geometric | Cartesian 2D calculations (centroid, polylabel, point-in-polygon, distance). |
meta | Temporal data structures (instant, interval) and spatial extents. |
projections | WGS84 based projections; ellipsoidal (geographic, geocentric, UTM) and spherical (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: