SWI-Prolog Did You Know Did you know? SWI-Prolog has extensive GIS Support Search Documentation:
Predicate ord_add_element/3