Convert from CSV¶
A target point definition can be created by importing the point coordinates from a variable column CSV file. Coordinate and point name columns are mandatory.
Requirements¶
Target point coordinates in CSV format
Examples¶
iman convert csv-targets -c pt -c e -c n -c h targets.csv targets.json
iman convert csv-targets -c pt -c e -c n -c h --reflector MINI --height 0.12 targets.csv targets.json
iman convert csv-targets -c pt -c ignore -c e -c n -c h targets.csv targets.json
Usage¶
iman convert csv-targets¶
Convert a CSV file containing coordinates to a target definition.
The order and data of columns can be given by specifying the column option multiple times. For a successful import the point name (pt), easting (e), northing (n) and height (h) must be specified.
If the CSV does not contain a prism column and the prism option was not set, the value will be prompted for at every point. Same applies to the target height.
iman convert csv-targets [OPTIONS] INPUT OUTPUT
Options
- -c, --column <columns>¶
Required Data column (pt, e, n and z are mandatory to specify)
- Options:¶
ignore | pt | e | n | h | prism | ht
- --skip <skip>¶
Number of header rows to skip
- -d, --delimiter <delimiter>¶
Column delimiter character
- --reflector <reflector>¶
Reflector at the targets (set only if CSV has no ‘prism’ column)
- Options:¶
ROUND | MINI | TAPE | THREESIXTY | USER1 | USER2 | USER3 | MINI360 | MINIZERO | NDSTAPE | GRZ121 | MPR122
- --height <height>¶
Target height (set only if CSV has no ‘ht’ column)
Arguments
- INPUT¶
Required argument
Source file to convert
- OUTPUT¶
Required argument
Target file to save result to