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
  • πŸ“… 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:

dependencies:
geobase: ^1.4.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.
geometricCartesian 2D calculations (centroid, polylabel, point-in-polygon, distance).
metaTemporal data structures (instant, interval) and spatial extents.
projectionsGeospatial projections (currently only between WGS84 and 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:

  • collection for priority queues and collection utilities
  • meta for annotations
  • proj4dart for coordinate projections