Data Records
The "fielddata" subsystem is a facility for storing records of various agricultural events, such as planting, fertilizing, harvesting, and the like, as well as scouting
reports, associated with a particular geospatial object. Despite the name "fielddata", this facility is not limited to boundaries. The records so stored are editable, but
also versioned; the versioning scheme means that no edits can remove information that was previously stored, because previous versions of a record can always be retrieved.
This is necessary because of the nature of this data, since one of its intended uses is to store the recommendations of agriculturists for the growers who own or farm the
boundaries. For location or path objects, the uses of this data are likely to be different.
Fielddata records are retrieved using the method get_object_fielddata_records(). They are stored using save_object_fielddata_records(). These two methods
document the full details of fielddata records, including all of the structures and substructures; briefly, the types of fielddata records currently available are as follows:
- crop_protection: Crop protection, such as pesticide or herbicide.
- fertilizing: Fertilizing, whether spread or sprayed.
- harvest: Harvesting (or cutting).
- insurance: Record of crop insurance.
- irrigation: Irrigation.
- planting: Planting of crop.
- scouting: Scouting report.
- soiltesting: Soil testing report.
- tillage: Tillage.
Equipment
Fielddata records can have equipment records associatd with them. These equipment records are tied to a group; the records specify details about equipment used to perform a
task, such as fertilizing or harvesting. The equipment records are retrieved using get_group_fielddata_equipment_records(), and saved using
save_group_fielddata_equipment_records().
Crop Types
Some fielddata records also can have crop types associated with them. These crop types are those used by the Federal Crop Insurance Corporation (FCIC), and can be retrieved
using get_fcic_crop_types(). This data does not change, and is freely available, so client programs can store cached copies indefinitely.
Master Tables
Scouting report records, in particular, have a number of "subrecords", which rely on master tables for their inputs. The information needed to fill in these records can be
retrieved with get_scouting_master_tables() and get_scouting_table_inputs(). Like the FCIC crop types, this data does not change, so client programs can
cache it.
Linking Datasets
Finally, fielddata records can have datasets, such as analyses, edited images, vectors, or geotagged photos, "linked" to them, associated with the record so that they are
usable in concert. Datasets so linked have a restriction placed on them: once the link is in place, the dataset cannot be deleted. The dataset is otherwise treated like
any normal dataset for the given object.