-
Notifications
You must be signed in to change notification settings - Fork 1
Home
theranjali-nilaweera edited this page Jun 17, 2015
·
26 revisions
The soil sample importer enables you to load a FarmData json and import soil sample results in to it.
- 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.
- FarmData JSON with the the soil sample results information included.
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. *name *ranges *name: *min *max *defaultColor The default file been used in these examples can be found at /src/soil-classification/defaults.conf.src.js.