shp_read/1
Reads a standard G.I.S. 'shape-file', asserting all G.I.S. data as [Prolog clauses
shp_read(filename) -(i)
Compatibility: Exclusively G.I.S. Prolog.
Remarks:
1) This predicate reads a standard G.I.S. "shape-file" (*.SHP), converting
all G.I.S. information to Prolog terms, asserted in a Global Database of Prolog Clauses (which can reside either in RAM memory or in a disk-file, depending on the clause storage option "use external database"; See the sub-menu "G.I.S. Prolog Options", to learn how to change this setting).
2) The Prolog terms generated from the shape-file data have a proprietory predicate format, which is left undocumented (in G.I.S. Prolog version 1.01); this predicate format may be changed in future versions, without warning.
BETA-testing historical notes:
This predicate was ommitted, in the very first version of G.I.S. Prolog (version 1.00.00), pre-released on the 21st of February 2005 (to a restricted Internet public of beta-testers). As of now (version 1.01), it is included in G.I.S. Prolog, but beta-testing continues: There is either a bug in the predicate or else a bug in certain files used, since there are occasional errors in reading shape-file terms (typically 1 in a thousand; At the moment, error-ridden shapefile records are ignored during the processing phase).
See also: