shp_conv/2

Converts a standard G.I.S. 'shape-file' to a Prolog source file, consisting of standard [Prolog clauses

shp_conv(shape_filename,prolog_filename) -(i,o)

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, and sending it to an output-file, which is suitable for further processing (e.g. reading by any Prolog system).

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).