Project

General

Profile

« Previous | Next » 

Revision 6217

mappings/VegCore-VegBIEN.csv: Removed _date/date, because _date using a string date argument is no longer supported under plpython3u (dateutil is missing). Note that PostgreSQL's own date parsing is sufficient for most dates, so this use of _date is not strictly necessary and removing it will improve import times.

View differences:

VegBIEN.csv
16 16
date_start,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/cond/_exists",
17 17
SiteCode,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/authorlocationcode/_if[@name=""if subplot""]/then",Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)
18 18
PlotID,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/sourceaccessioncode/_if[@name=""if subplot""]/then","Brad: This is artificial internal database ID; a unique identifier within SALVIAS DB to each plot, within the table plotMetadata."
19
date_finish,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_*/date/_alt/1",
20
date_start,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_*/date/_alt/1",
19
date_finish,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_alt/1",
20
date_start,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_alt/1",
21 21
vegetation_2,/location/locationevent/commclass/commdetermination/*_id/commconcept/*_id/*/commname/_alt/1,
22 22
vegetation_1,/location/locationevent/commclass/commdetermination/*_id/commconcept/*_id/*/commname/_alt/2,Second because less detailed than vegetation_2
23 23
life_zone,/location/locationevent/commclass/commdetermination/*_id/commconcept/*_id/*/commname/_alt/3,
24 24
life_zone_code,/location/locationevent/commclass/commdetermination/*_id/commconcept/*_id/*/commname/_alt/4,
25
date_finish,/location/locationevent/obsenddate/_*/date/_alt/1,
26
date_start,/location/locationevent/obsstartdate/_*/date/_alt/1,
25
date_finish,/location/locationevent/obsenddate/_alt/1,
26
date_start,/location/locationevent/obsstartdate/_alt/1,
27 27
Precip,/location/locationevent/precipitation_m,
28 28
soil_acidity,"/location/locationevent/soilobs/acidity_fraction/_percent_to_fraction/value/_map:[""<0.05""=0,*=*]/value",Assuming units are % based on the range of values
29 29
soil_base,/location/locationevent/soilobs/basesaturation_fraction/_percent_to_fraction/value,Assuming units are % based on the range of values

Also available in: Unified diff