# Import of the field notebook#

Back from the field, the plugin offers an import tool to automatically integrate the field notebook:

## Options#

The import is done by selecting:

• the codification file used for the field survey (.qlsc)

• the CSV file with the data from the field survey

• the archive directory (where the export will take place)

• the level of logging (log)

• the file of logging (log)

## Processing#

The plugin copies the source [GeoPackage] in the archive directory. If no path is specified QGIS creates a temporary directory before copying the data into it.

LSCI[^lsci] also offers you to log these different steps, especially useful for developers in case of problems (DEBUG), but also for you (INFO) to tell you what has been done and if there are errors in your codification.

## Output result#

You have the possibility to redo the processing as many times as you want. If you notice an error, you can manually correct your drawing or take your field file and reimport it.

Note

As the plugin is integrated in QGIS and especially the processings, it is possible to chain the import with other processings.

## Principle of CSV processing to your GeoPackage#

This part details the technical functioning of the plugin. It is not necesary to use it.

### Separation of codes#

The tool will separate the codes that are on the same point, and then match them according to their code. For example a CSV like:

2,1980244.900,5190520.938,1002.461,300+200
3,1980249.438,5190515.953,1002.329,101
1,1980242.941,5190519.460,1002.521,200+300


will be transformed into:

    2,1980244.900,5190520.938,1002.461,300
2,1980244.900,5190520.938,1002.461,200
3,1980249.438,5190515.953,1002.329,101
1,1980242.941,5190519.460,1002.521,200
1,1980242.941,5190519.460,1002.521,300


then:

    3,1980249.438,5190515.953,1002.329,101
2,1980244.900,5190520.938,1002.461,200
1,1980242.941,5190519.460,1002.521,200
2,1980244.900,5190520.938,1002.461,300
1,1980242.941,5190519.460,1002.521,300


The tool processes the codes in a row, special attention is required to the operator entering the codes because an error in entering will shift the codification and the resulting drawing.

### Conversion of points into geometries#

Once the CSV is processed internally, the plugin will read it sequentially and convert the points into geometries following the code.

### Format#

At the moment, the plugin can only read point files in CSV format. This one is often present of the devices. They will have to respect this positioning:

numéro,x,y,z,code,att1,att2, [...] attn

where:

• numéro is the number of the point,

• x, y and z the coordinates,

• code the code(s) on the point,

• att1, att2 and attn are the attributes that can be exported from your field notebook. There is no limit on the number of attributes.

1

acronym of the Land Survey Codes Import plugin name