Did you know ... Search Documentation:
Pack prolog_geo -- README.md

Geospatial support in Prolog

Dependencies

  1. Install SWI-Prolog.
  2. Install the GEOS library. The following works on Ubuntu:
apt install libgeos-dev
  1. Install the Proj library. The following works on Ubuntu:
apt install libproj-dev

Installation

Install this library:

swipl -g 'pack_install(prolog_geo)' -t halt

Use

Once installed, modules from this library are loaded as follows:

?- [library(geo)].

Predicates defined in the loaded modules can now be used:

?- geo_property(Property).
Property = geos_version('3.8.1-CAPI-1.13.3').