Footleg / caveconverter

GNU General Public License v3.0
3 stars 1 forks source link

caveconverter should use anaonymous stations for splays #2

Open wookey opened 5 years ago

wookey commented 5 years ago

(As previously communicated by email - logging here for tracking)

On expo this summer I noticed people using pockettopo, then caveconverter to convert to Survex.

This labels each splay as just another leg with a a,b,c,...aa suffix notation. It should use the 'anonymous station' syntax in survex so that the info that they are not 'real' stations is not lost, the legs are greyed nicely in the viewer and the cave doesn't get enormously, and unrepresentatively longer.

The relevant info is here: https://survex.com/docs/manual/datafile.htm and says:

Anonymous Stations

Survex supports the concept of anonymous survey stations. That is survey stations without a name. Each time an anonymous station name is used it represents a different point. Currently three types of anonymous station are supported, referred to by one, two or three separator characters - with the default separator of '.', that means '.', '..', and '...' are anonymous stations. Their meanings are: Single separator ('.' by default) An anonymous non-wall point at the end of an implicit splay. Double separator ('..' by default) An anoymous wall point at the end of an implicit splay. Triple separator ('...' by default) An anonymous point with no implicit flags on the leg (intended for cases like a disto leg along a continuing passage). You can map '-' to '..' (for compatibility with data from pocket topo) using the command: *alias station - ..

Support for anonymous stations and for '*alias station - ..' was added in Survex 1.2.7.

So in general the output from caveconverter should look like: 2 1 3.95 316.73 42.53

2 .. 0.68 268.47 -4.24 2 .. 1.49 282.21 59.36 2 .. 1.41 270.46 -65.89 2 .. 1.37 150.45 -83.56

2 3 5.33 200.45 -53.53

3 .. 2.81 125.55 75.30 3 .. 2.39 204.70 24.35 3 .. 2.70 231.56 73.44 3 .. 1.48 336.29 66.37

instead of the current: 2 1 3.95 316.73 42.53

2 2a 0.68 268.47 -4.24 2 2b 1.49 282.21 59.36 2 2c 1.41 270.46 -65.89 2 2d 1.37 150.45 -83.56

2 3 5.33 200.45 -53.53

3 3a 2.81 125.55 75.30 3 3b 2.39 204.70 24.35 3 3c 2.70 231.56 73.44 3 3d 1.48 336.29 66.37