Skip to content
theranjali-nilaweera edited this page Jun 17, 2015 · 26 revisions

FarmBuild Soil Sample Importer Wiki

The soil sample importer enables you to load a FarmData json and import soil sample results in to it.

Inputs

  • FarmData JSON. Refer to farmbuild-farmdata component wiki for more details of the contents of the JSON.
  • CSV file containing the soil sample results of the farm in teh FarmData JSON. The CSV file should contain the headers of each column as the first row.

Output

  • FarmData JSON with the the soil sample results information included.

Customizable reference JSON structures

There are two JSON files required to carry out with the sample result importing. These files are fully customizable.

  • Import Field Defaults This file defines the fields which the user has to match the CSV columns to. The mandatory keys currently in the file are described below
    • name :
    • soilClassificationName: name of
    • hasAverage

The default file been used in these examples can be found at /src/import-field-definition/defaults.conf.src.js .

  • Soil Classification Defaults This file describes the range classifications for the import fields defined in the above mentioned import field defaults file. All the import fields need not have a range classification. A range classification of a single field currently has the following keys.
Clone this wiki locally