img: Improve PLT station reading
commit1e62715b2c0f53ebfc705645d204b13b81afe2d3
authorOlly Betts <olly@survex.com>
Thu, 15 Feb 2024 04:07:38 +0000 (15 17:07 +1300)
committerOlly Betts <olly@survex.com>
Thu, 15 Feb 2024 04:07:38 +0000 (15 17:07 +1300)
treefbe20720985bebebaa9e3ad2a5a4a896ec81b81e
parent8aea1a8fe6e79162d7f48bed9edd141ca3f91d20
img: Improve PLT station reading

Eliminate duplicate img_LABEL items, which used to happen for
stations where more than two shots meet within a single survey.

We now infer img_SFLAG_WALL for the to station of a leg which
is flagged as a splay, since the Compass PLT format specification
documents this flag as meaning:

    The shot is a "splay" shot, which is a shot from a station to the
    wall to define the passage shape.

We now infer img_SFLAG_EXPORTED for any station that appears in more
than one survey in the PLT file.

We now set flag img_SFLAG_FIXED for any station which is listed as
a fixed point in the PLT file (a more recent addition to the format).
doc/TODO.htm
src/img.c
src/img.h
tests/multisection.dump
tests/multisection.plt
tests/multisurvey.dump
tests/pre1970.dump