Project

General

Profile

« Previous | Next » 

Revision 4726

schemas/vegbien.sql: Split locationdetermination into locationcoords and locationplace, so that coordinate determinations can be made separately from place determinations

View differences:

VegBIEN.csv
11 11
elev_min_m,"/location/elevationrange/_range/from/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
12 12
elev_max_m,"/location/elevationrange/_range/to/_units:[default=m,to=m,to=]/value/_alt/1/_replace:[""\bca\.?""=]/value",
13 13
elev_min_m,"/location/elevationrange/_range/to/_units:[default=m,to=m,to=]/value/_alt/2/_rangeEnd/value/_replace:[""\bca\.?""=]/value",
14
LatDec,"/location/locationdetermination/latitude/_alt/1/_nullIf:[null=0,type=float]/value",
15
LongDec,"/location/locationdetermination/longitude/_alt/1/_nullIf:[null=0,type=float]/value",
16
pol2,"/location/locationdetermination/namedplace_id/_forEach:[in:[],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=county]/placename",Brad: No pol2=countyParish
17
PolDiv1,"/location/locationdetermination/namedplace_id/_forEach:[in:[county,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=stateProvince]/placename",Brad: No; pol1=stateProvince
18
Country,"/location/locationdetermination/namedplace_id/_forEach:[in:[county,stateProvince,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",
19
MajorGeo,"/location/locationdetermination/namedplace_id/_forEach:[in:[county,stateProvince,country,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=continent]/placename",
14
LatDec,"/location/locationcoords/latitude/_alt/1/_nullIf:[null=0,type=float]/value",
15
LongDec,"/location/locationcoords/longitude/_alt/1/_nullIf:[null=0,type=float]/value",
20 16
PlotMethod,/location/locationevent/*_id/method/name,
21 17
project_id,/location/locationevent/*_id/project/sourceaccessioncode,
22 18
SiteCode,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if event""]/then/parent_id/locationevent/*_id/location/authorlocationcode",Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)
......
46 42
Temp,/location/locationevent/temperature,
47 43
Locality_Description,/location/locationnarrative/_merge/1,"Brad: No; this is free text description of locality where plot was situated, same as for DwC. Not a description of vegetation. Most likely='namedPlace.placeDescription' in VB; not sure about VX, again need to ask Nick where locality descriptions live in VX"
48 44
Habitat,"/location/locationnarrative/_merge/3/_label[label=""habitat""]/value","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
45
pol2,"/location/locationplace/namedplace_id/_forEach:[in:[],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=county]/placename",Brad: No pol2=countyParish
46
PolDiv1,"/location/locationplace/namedplace_id/_forEach:[in:[county,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=stateProvince]/placename",Brad: No; pol1=stateProvince
47
Country,"/location/locationplace/namedplace_id/_forEach:[in:[county,stateProvince,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",
48
MajorGeo,"/location/locationplace/namedplace_id/_forEach:[in:[county,stateProvince,country,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=continent]/placename",
49 49
plot_notes,/location/notespublic,
50 50
slope_aspect,/location/slopeaspect/_alt/1/_compass/value,
51 51
slope_gradient,/location/slopegradient/_alt/1,

Also available in: Unified diff