smartmet-library-gis

May 8, 2026 · View on GitHub

Part of SmartMet Server. See the SmartMet Server documentation for an overview of the ecosystem.

Overview

The gis library provides GIS (Geographic Information System) operations for SmartMet Server. It handles coordinate projections, geometry operations, and geographic data access needed by the server's spatial processing capabilities.

Features

  • Coordinate projections — coordinate system transformations using PROJ
  • Geometry clipping — clipping geographic features to bounding boxes and arbitrary areas
  • Geometry simplification — Douglas-Peucker and Visvalingam-Whyatt vertex reduction with topology preservation
  • Polygon amalgamation — merging nearby polygons via constrained Delaunay triangulation
  • Antimeridian handling — correct handling of geographic interrupts at the antimeridian
  • Raster/DEM data — Digital Elevation Model (SRTM) and land cover raster access
  • PostGIS integration — reading geographic data from PostGIS databases

Documentation

Detailed documentation is available in the docs/ directory:

Usage

Used by smartmet-engine-gis, smartmet-plugin-wms, and other components requiring geographic data processing.

License

MIT — see LICENSE

Contributing

Bug reports and pull requests are welcome on GitHub.