Skip to content

About geobase


pub package

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:

PackageDescription
commonCommon codes, constants, functions, presentation helpers and reference systems related to geospatial applications.
coordinatesPosition, bounding box and positions series (with coordinate arrays).
geodesyEllipsoidal (vincenty) and spherical (great circle, rhumb line) geodesy tools, with ellipsoidal datum, UTM, MGRS and ECEF support.
geometricCartesian 2D calculations (centroid, polylabel, point-in-polygon, distance).
metaTemporal data structures (instant, interval) and spatial extents.
projectionsWGS84 based projections; ellipsoidal (geographic, geocentric, UTM) and spherical (Web Mercator).
projections_proj4dProjections provided by the external proj4dart package.
tilingTiling schemes and tile matrix sets (web mercator, global geodetic).
vectorText and binary formats for vector data (features, geometries, coordinates).
vector_dataData structures for geometries, features and feature collections.

External packages geobase is depending on: