Debian Codegraph @

debian/caveconverter.1

raw
1 .\" Manpage for caveconvter
2 .TH caveconverter 1 "2017 01 14"
3 .SH NAME
4 caveconverter \- convert cave survey data between formats
5 .SH SYNOPSIS
6 .B caveconverter
7 .I infile
8 .I outfile
9 .I in_format
10 .I out_format
11 .B [
12 lrud
13 .B ]
14 .SH DESCRIPTION
15 .B caveconverter
16 is a program for converting cave survey data from one
17 format into another. It can read and write a variety of cave survey
18 data file formats, translating the data, and can also generate LRUD
19 info from splay shots.
20
21 .SS Formats read:
22 .TP 10
23 Survex \-
24 Supports normal, diving and nosurvey format data (in any supported units and field orders). Multi-file reading now supported (but ignores FIX commands currently) (.svx files)
25 .TP
26 Compass \-
27 The data file format generated by the Compass cave survey software. (.dat files)
28 .TP
29 PocketTopo text export \-
30 Text export option in PocketTopo menu. (.txt files)
31 .TP
32 DXF \-
33 Reads Lines and Polylines as survey centreline data. (.dxf files)
34
35 .SS Formats written:
36 .TP
37 Toporobot \-
38 For using to import data into PocketTopo software on a PDA. (.text files)
39 .TP
40 Survex \-
41 Converts to metric units currently, and entire series will be output in same field order (matching order of fields from last leg per series from input file). (.svx files)
42 .SH OPTIONS
43 The format codes are:
44 .br
45 .B c \-
46 Compass
47 .br
48 .B d \-
49 DXF
50 .br
51 .B p \-
52 PocketTopo text export
53 .br
54 .B s \-
55 Survex
56 .br
57 .B t \-
58 Toporobot
59 .br
60 .TP
61 .B lrud \-
62 Adding the lrud flag to the end of the command causes LRUD (left rght
63 up down) info to be generated from splay data
64
65 .SH CONVERSION DETAILS
66
67 Converting from DXF files to survex shows how editable survey data can
68 be regenerated from Survex .3d files via the Convert to DXF option
69 provided by Survex
70 .P
71 This is also how you can generate a DXF file to convert to Toporobot
72 using
73 .B caveconverter,
74 enabling existing cave surveys to be
75 imported into PocketTopo regardless of the original Survex format
76 data. So if your Survex file is not readable by
77 .B caveconverter
78 (e.g. because it contains some unimplemented feature) then you can
79 still process it using Survex to
80 generate a 3d file and convert that to DXF using Survex. Then convert
81 it to Toporobot format using caveconverter and import that file into
82 PocketTopo. This enables existing surveys to be loaded into PocketTopo
83 so that new data can be tied into the known cave on surveying trips.
84 .P
85 Converting Survex data to Toporobot will cause all the survey station
86 numbers and series names to get regenerated, unfortunately. This is
87 because Toporobot format requires survey series to consist only of
88 linear chains of survey stations. Junctions are not allowed in series.
89 This means that data from other formats cannot be simply converted, so
90 all stations are renumbered and reorganised into new numbered series
91 to conform to this constraint of the Toporobot format.
92 .P
93 If you find files that give errors on conversion, send them to me
94 (Footleg). I can be contacted by email: drfootleg [at] gmail.com
95 .P
96 While
97 .B caveconverter
98 can regenerate survey data files from DXF files generated from Survex
99 .3d files, you will not get back the complete original data. What you
100 do get is the equivalent calculated survey leg data (tape, compass,
101 clino) for the positions of the stations in the DXF file. So any loop
102 closure corrections and instrument calibrations will have already been
103 applied to the data. This feature is really intended as a way to
104 recover some sort of workable data when the original data has been
105 lost and only the 3d files remain. Some small rounding errors occur
106 during the Conversion to DXF from the .3d file, so the exact positions
107 of survey stations and the cave length reported may differ by a few cm
108 compared to the original data. This is because in the DXF file, Survex
109 has rounded all station positions to the nearest 1cm.
110
111 .SS SPLAY/LRUD conversion
112 The original approach to reading splay legs from PocketTopo files in
113 caveconverter was to treat them as just a way of measuring passage
114 dimensions as Left, Right, Up, Down measurements at each station. So
115 when no more than four splays were found at a station the code used
116 their lengths as LRUD measurements and removed the splays from the
117 data in the process. This kept Survex models looking like they used to
118 before we started measuring lots of splays. But as my own surveying
119 experience increased over recent years I realised that splays are a
120 much more useful tool than just a way to take LRUD measurements. With
121 a DistoX the splays can quickly and accurately be fired from stations
122 to pick out key features and passage shapes at corners and in
123 chambers. These splays aid drawing the correct position of walls,
124 ceiling and floor as well as passage features. They are valuable data
125 which should not be replaced with LRUD passage dimension data. LRUD
126 data still has value. A number of file formats support LRUD data to
127 represent the position of passage walls at each station, and 3D model
128 generation uses this data. But the splays should still be kept when
129 generating LRUD data from them. The latest Aven viewer (part of the
130 Survex 1.2.7 release) and the Loch Viewer (part of Therion) now both
131 allow splay legs to be shown or hidden. So it is possible to view
132 centreline only models without actually removing the splays from the
133 data.
134 .P
135 So this latest version of caveconverter no longer removes splay legs
136 used to generate LRUD measurements. The LRUD generation code has also
137 been completely rewritten and made part of the core data model rather
138 than an operation done during reading of PocketTopo files. This means
139 it is now possible to generate LRUD data from splays in any data file
140 which can be read. Unfortunately for those of you who used
141 caveconverter in the past to convert PocketTopo data to Survex format
142 it will have removed a lot of the splays, so you will want to convert
143 from the original PocketTopo exported text files again with this
144 version. The LRUD generation does a much better job of selecting the
145 best splay to determine a passage dimension measurement from in this
146 version of the code. The splay which contributes the greatest distance
147 of the wall/ceiling/floor from the station is used to calculate the
148 distance to the wall. Previous versions of the code just used the
149 total length of the best splay, rather than the distance in the
150 direction of the LRUD measurement being set. This was flawed and
151 splays almost parallel to a survey leg could generate much larger
152 passage dimension measurements than was appropriate. Now trigonometry
153 is used to determine the appropriate distance in the direction of the
154 passage dimension, and the direction for the left and right
155 measurements is calculated from the best matching previous leg as well
156 as the onward leg from the station.
157 .P
158 The conversion of Survex data (containing splays) to Toporobot format
159 in order to import existing survey data into PocketTopo to extend off
160 on new survey trips can now generate and output LRUD data too.
161 PocketTopo will display this data as splays orthogonal to the
162 direction of the survey legs to indicate passage width and height.
163 .P
164 Another bugbear of previous versions of caveconverter was that LRUD
165 data was output in Survex files as one continuous block of stations
166 with LRUD data, regardless of how the stations were connected by survey
167 legs. This has now been fixed so the survey legs in each series are
168 used to determine the grouping of passage data stations into blocks of
169 connected stations.
170
171 .SS Convert existing survey data for loading into PocketTopo on a PDA
172 To load an existing survey into PocketTopo on a PDA in order to extend
173 a survey with reference to the existing data for the cave, you can
174 convert to Toporobot format using the caveconverter. Then import the
175 Toporobot file into PocketTopo on the PDA. The input survey data could
176 be read from a Compass file, or a Survex file. Where a Survex file
177 contains formats which caveconverter is not yet able to read, you can
178 instead process the data in Survex to generate a .3d file, and then
179 use Survex convert this to a DXF file (right-click on a .3d file to
180 select this option from the pop-up menu in Windows Explorer). Cave
181 Converter can then read this DXF file and generate a Toporobot
182 file. Converting survey data to Toporobot will unfortunately cause all
183 the survey station numbers and series names to be changed. This is
184 because Toporobot format requires survey series to consist only of
185 linear chains of survey stations. Junctions are not allowed in these
186 chains, so junctions in the cave require a new chain to be
187 started. This means that data from other formats cannot be simply
188 converted, so all stations are renumbered and organised into new
189 numbered series to conform to these constraints of the Toporobot
190 format.
191
192 .SS Regenerate Editable Survey Data from DXF or Survex 3D Files
193 Sometimes the survey data for a project from the past has been lost,
194 and all that remains is some processed output. caveconverter can
195 regenerate editable survey data from DXF files where the survey
196 centreline is represented by straight line objects or polylines. This
197 includes DXF files generated by Survex from Survex .3d files. The Aven
198 viewer in Survex can export a DXF file from a cave model, or
199 right-click on a .3d file in Windows Explorer to select the Convert to
200 DXF option from the pop-up menu.
201 .P
202 While caveconverter can regenerate survey data files from DXF files
203 generated from Survex .3d files, you will not get back the complete
204 original data. What you do get is the equivalent calculated survey leg
205 data (tape, compass, clino) for the positions of the stations in the
206 DXF file. So any loop closure corrections and instrument calibrations
207 will have already been applied to the data. This feature is really
208 intended as a way to recover some sort of workable data when the
209 original data has been lost and only the 3d files remain. Some small
210 rounding errors occur during the Conversion to DXF from the .3d file,
211 so the exact positions of survey stations and the cave length reported
212 may differ by a few cm compared to the original data. This is because
213 in the DXF file, Survex has rounded all station positions to the
214 nearest 1cm.
215
216 .SS Survex to Survex with LRUD generation
217
218 caveconverter can create LRUD passage data blocks for Survex files
219 containing splays. Just read and write Survex format, using the LRUD
220 option. The Survex file reader in caveconverter does not currently
221 read existing passage data blocks. So be aware that existing passage
222 data blocks will be removed if a Survex file is read in and written
223 out again. However if the Survex file contains splays and the lrud
224 option is specified on the command line (or the Generate LRUD option
225 is run after loading the data into the windowed application) then new
226 passage data blocks will be generated from the splays and replace any
227 previously present passage data blocks in the output file.
228
229 .SS Specifying Character Set Encoding
230
231 If you are reading in data files which contain extended character set
232 symbols (e.g. accented characters or non-punctuation symbol
233 characters) then caveconverter will assume these files are using
234 UTF-8 encoding by default. To specify a different encoding in the
235 Windows application you can edit the app.properties file. (This file
236 is written to the same folder as the CaveConverterGUI.jar file when
237 you close the application. So run the application once and close it,
238 then you should find the app.properties file which will contain the
239 line 'character.set=UTF8'. Edit this line to specify an alternative
240 character set encoding if you are not using UTF-8. See the command
241 line reference html page for more details on alternative character set
242 codes, and also how to specify them for command line conversions.
243
244 .SH EXAMPLES
245 To convert existing Survex data into Toporobot format so you can
246 import it in to PocketTopo:
247 .br
248 .B caveconverter survexfile.svx output.text s t
249 .P
250 To convert data exported from PocketTopo into Survex format, including
251 LRUD info from splays:
252 .br
253 .B caveconverter pdaexport.txt survexfile.svx p s lrud
254 .P
255 To convert data from DXF format into Toporobot format so you can
256 import it into PocketTopo:
257 .br
258 .B caveconverter datafile.dxf toporobotfileout.text d t
259 .P
260 To convert data from DXF format into Survex format:
261 .br
262 .B caveconverter datafile.dxf survexfile.svx d s
263 .SH BUGS
264 Survex output re-uses 'to station' numbers for splay legs if all
265 splays from a station are not together in the file. So if a set of
266 splay legs occur in a series of legs within the same begin/end block
267 followed by a leg from a different station, and then another splay leg
268 from the original station is found further down the block then the 'to
269 station' numbering will start from 'a' again. So you can for example
270 get two splays from station 10 with to station names of '10a' in the
271 file. The file can be processed but shows a large loop closure error
272 for the splays as it equates the two 10a stations at the end of the
273 two splays as being the same point.
274 .SH AUTHOR
275 Paul 'Footleg' Fretwell ([email protected])
276 .SH SEE ALSO
277 HTML documentation is in
278 .I /usr/share/doc/caveconverter/readme.html