Table of Contents
The Survey File (SRV) is a space-delimited ASCII file used to store the vertices of 3D polylines. Multiple polylines can be stored in the same file (using $ as the break code character). The standard format is:
code X_0 Y_0 Z_0 code X_1 Y_1 Z_1 ... code X_n Y_n Z_n $ code X_0 Y_0 Z_0 code X_1 Y_1 Z_1 ... code X_n Y_n Z_n $ ...
where X_n, Z_n and Y_n are the coordinates of the polyline vertices, and code is a user-specified survey code. Codes can be used for many purposes such as specifying display attributes (type of line, symbol, and associated colors) and whether to treat the data as part of a string (i.e. bench toes) or as individual points (i.e. blastholes).
Warning
It should be noted that the file created by this module is different than the fixed column width "Survey Code File" described in the MS3D documentation.
Opens a SRV file, parses the contents, returns a list of pointlists (one for each polyline contained in the file).
Creates a regular SRV file. Note that if you only have one polyline to include, the function still expects a list containing the one point list.
path : string
pointLists : a list of lists
Creates a SRV file with a code for each polyline.
path : string
codedPointLists : a list of lists with the following format: [['code1',pointList1], ['code2',pointList2], ... ]
The following snippet illustrates how to write to a SRV file: