ImportGEE | R Documentation |
R6 class for for importing data collected from Google Earth Engine into an OFPE formatted database.
dbCon
Database connection object connected to an OFPE formatted database, see DBCon class.
dat_path
Path to the Google Drive folder that contains the data for upload into the OFPE database.
file_names
Names of the files in the Google Drive folder.
overwrite
Logical, whether to overwrite the GEE data in the database.
farmers
The 'farmers' table from the 'all_farms' schema of an OFPE formatted database.
farms
The 'farms' table from the 'all_farms' schema of an OFPE formatted database.
new()
Create a database importer object.
ImportGEE$new(dbCon, dat_path, overwrite)
dbCon
Database connection object connected to an OFPE formatted database, see DBCon class.
dat_path
Path to the Google Drive folder that contains the data for upload into the OFPE database.
overwrite
Logical, whether to overwrite the GEE data in the database.
A new 'ImportGEE' object.
executeUpload()
Google Earth Engine data import execution.
ImportGEE$executeUpload()
None
No arguments needed because of class instantiation.
See 'GEE' table in database.
.uploadGEE()
Uploads data to an OFPE formatted database from a Google Drive folder. The dot indicates that this function would be private if not for documentations sake.
ImportGEE$.uploadGEE(FILE, overwrite, db)
FILE
Name of the data file to upload to the database.
overwrite
Logical, whether to overwrite when data already present.
db
Connection to an OFPE formatted database.
See 'GEE' table in database.
.getInfo()
Function for identifying information from the filenames exported from Google Drive
ImportGEE$.getInfo(name)
name
Name of the data file to upload to the database.
Raster information.
.addColsToDB()
Adds columns to the data file importing to the database.
ImportGEE$.addColsToDB(info, name, db)
info
Object holding all necessary information about the data.
name
The name of the column to add.
db
The connection to the OFPE database.
Columns added to database table.
clone()
The objects of this class are cloneable with this method.
ImportGEE$clone(deep = FALSE)
deep
Whether to make a deep clone.
DBCon
for the database connection class, and
ImportOF
for the associated on-farm data import
class in the data import step.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.