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