Did you know? SWI-Prolog has extensive GIS SupportSearch Documentation:
SWI-Prolog owl logoPredicate set_prolog_IO/3