Revision 6403
Added by Aaron Marcuse-Kubitza over 11 years ago
test.xml.ref | ||
---|---|---|
1 | 1 |
Put template: |
2 | 2 |
<VegBIEN> |
3 |
<_simplifyPath id="-1"> |
|
4 |
<next>parent_id</next> |
|
3 |
<_setDefault id="-1"> |
|
4 |
<col>source_id</col> |
|
5 |
<value><source><shortname>SALVIAS</shortname></source></value> |
|
5 | 6 |
<path> |
6 |
<location> |
|
7 |
<authorlocationcode>$SiteCode</authorlocationcode> |
|
8 |
<sourceaccessioncode>$PlotID</sourceaccessioncode> |
|
9 |
<accesslevel> |
|
10 |
<_map> |
|
11 |
<1>private</1> |
|
12 |
<2>metadata only</2> |
|
13 |
<3>public</3> |
|
14 |
<value>$AccessCode</value> |
|
15 |
</_map> |
|
16 |
</accesslevel> |
|
17 |
<area_m2><_ha_to_m2><value>$plot_area_ha</value></_ha_to_m2></area_m2> |
|
18 |
<elevation_m> |
|
19 |
<_alt> |
|
20 |
<1>$Elev</1> |
|
21 |
<2> |
|
22 |
<_avg> |
|
23 |
<max>$elev_max_m</max> |
|
24 |
<min>$elev_min_m</min> |
|
25 |
</_avg> |
|
26 |
</2> |
|
27 |
</_alt> |
|
28 |
</elevation_m> |
|
29 |
<landform>$topography_desc</landform> |
|
30 |
<locationevent> |
|
31 |
<method_id> |
|
32 |
<method> |
|
33 |
<name>$PlotMethod</name> |
|
34 |
<observationmeasure>$lookup_MethodCode_Description</observationmeasure> |
|
35 |
</method> |
|
36 |
</method_id> |
|
37 |
<project_id><project><sourceaccessioncode>$project_id</sourceaccessioncode></project></project_id> |
|
38 |
<commclass> |
|
39 |
<commdetermination> |
|
40 |
<commconcept_id> |
|
41 |
<commconcept> |
|
42 |
<commname_id> |
|
43 |
<commname> |
|
44 |
<commname> |
|
45 |
<_alt> |
|
46 |
<1>$vegetation_2</1> |
|
47 |
<2>$vegetation_1</2> |
|
48 |
<3>$life_zone</3> |
|
49 |
<4>$life_zone_code</4> |
|
50 |
</_alt> |
|
51 |
</commname> |
|
52 |
</commname> |
|
53 |
</commname_id> |
|
54 |
</commconcept> |
|
55 |
</commconcept_id> |
|
56 |
</commdetermination> |
|
57 |
</commclass> |
|
58 |
<obsenddate>$date_finish</obsenddate> |
|
59 |
<obsstartdate>$date_start</obsstartdate> |
|
60 |
<precipitation_m>$Precip</precipitation_m> |
|
61 |
<soilobs> |
|
62 |
<acidity_fraction> |
|
63 |
<_percent_to_fraction> |
|
64 |
<value> |
|
65 |
<_map> |
|
66 |
<<0.05>0</<0.05> |
|
67 |
<*>*</*> |
|
68 |
<value>$soil_acidity</value> |
|
69 |
</_map> |
|
70 |
</value> |
|
71 |
</_percent_to_fraction> |
|
72 |
</acidity_fraction> |
|
73 |
<basesaturation_fraction><_percent_to_fraction><value>$soil_base</value></_percent_to_fraction></basesaturation_fraction> |
|
74 |
<calcium_fraction><_percent_to_fraction><value>$soil_Ca</value></_percent_to_fraction></calcium_fraction> |
|
75 |
<carbon_fraction><_percent_to_fraction><value>$soil_C</value></_percent_to_fraction></carbon_fraction> |
|
76 |
<cationexchangecapacity_cmol_kg>$soil_cation_cap</cationexchangecapacity_cmol_kg> |
|
77 |
<clay_fraction><_percent_to_fraction><value>$clay_percent</value></_percent_to_fraction></clay_fraction> |
|
78 |
<conductivity>$soil_conductivity</conductivity> |
|
79 |
<magnesium_fraction><_percent_to_fraction><value>$soil_Mg</value></_percent_to_fraction></magnesium_fraction> |
|
80 |
<nitrogen_fraction><_percent_to_fraction><value>$soil_N</value></_percent_to_fraction></nitrogen_fraction> |
|
81 |
<organic_fraction><_percent_to_fraction><value>$organic_percent</value></_percent_to_fraction></organic_fraction> |
|
82 |
<ph>$pH</ph> |
|
83 |
<phosphorus_fraction> |
|
84 |
<_percent_to_fraction> |
|
85 |
<value> |
|
86 |
<_map> |
|
87 |
<<1,5>0</<1,5> |
|
88 |
<*>*</*> |
|
89 |
<value>$soil_P</value> |
|
90 |
</_map> |
|
91 |
</value> |
|
92 |
</_percent_to_fraction> |
|
93 |
</phosphorus_fraction> |
|
94 |
<potassium_fraction><_percent_to_fraction><value>$soil_K</value></_percent_to_fraction></potassium_fraction> |
|
95 |
<sand_fraction><_percent_to_fraction><value>$sand_percent</value></_percent_to_fraction></sand_fraction> |
|
96 |
<silt_fraction><_percent_to_fraction><value>$silt_percent</value></_percent_to_fraction></silt_fraction> |
|
97 |
<sodium_fraction><_percent_to_fraction><value>$soil_Na</value></_percent_to_fraction></sodium_fraction> |
|
98 |
<texture>$soil_texture</texture> |
|
99 |
</soilobs> |
|
100 |
<temperature_c>$Temp</temperature_c> |
|
101 |
</locationevent> |
|
102 |
<locationnarrative> |
|
103 |
<_merge> |
|
104 |
<1>$Locality_Description</1> |
|
105 |
<3> |
|
106 |
<_label> |
|
107 |
<label>habitat</label> |
|
108 |
<value>$Habitat</value> |
|
109 |
</_label> |
|
110 |
</3> |
|
111 |
</_merge> |
|
112 |
</locationnarrative> |
|
113 |
<locationplace> |
|
114 |
<place_id> |
|
115 |
<place> |
|
116 |
<coordinates_id> |
|
117 |
<coordinates> |
|
118 |
<latitude_deg> |
|
119 |
<_nullIf> |
|
120 |
<null>0</null> |
|
121 |
<type>float</type> |
|
122 |
<value>$LatDec</value> |
|
123 |
</_nullIf> |
|
124 |
</latitude_deg> |
|
125 |
<longitude_deg> |
|
126 |
<_nullIf> |
|
127 |
<null>0</null> |
|
128 |
<type>float</type> |
|
129 |
<value>$LongDec</value> |
|
130 |
</_nullIf> |
|
131 |
</longitude_deg> |
|
132 |
<verbatimlatitude>$lat_string</verbatimlatitude> |
|
133 |
<verbatimlongitude>$long_string</verbatimlongitude> |
|
134 |
</coordinates> |
|
135 |
</coordinates_id> |
|
136 |
<continent>$MajorGeo</continent> |
|
137 |
<country>$Country</country> |
|
138 |
<county>$pol2</county> |
|
139 |
<matched_place_id> |
|
7 |
<_simplifyPath> |
|
8 |
<next>parent_id</next> |
|
9 |
<path> |
|
10 |
<location> |
|
11 |
<authorlocationcode>$SiteCode</authorlocationcode> |
|
12 |
<sourceaccessioncode>$PlotID</sourceaccessioncode> |
|
13 |
<accesslevel> |
|
14 |
<_map> |
|
15 |
<1>private</1> |
|
16 |
<2>metadata only</2> |
|
17 |
<3>public</3> |
|
18 |
<value>$AccessCode</value> |
|
19 |
</_map> |
|
20 |
</accesslevel> |
|
21 |
<area_m2><_ha_to_m2><value>$plot_area_ha</value></_ha_to_m2></area_m2> |
|
22 |
<elevation_m> |
|
23 |
<_alt> |
|
24 |
<1>$Elev</1> |
|
25 |
<2> |
|
26 |
<_avg> |
|
27 |
<max>$elev_max_m</max> |
|
28 |
<min>$elev_min_m</min> |
|
29 |
</_avg> |
|
30 |
</2> |
|
31 |
</_alt> |
|
32 |
</elevation_m> |
|
33 |
<landform>$topography_desc</landform> |
|
34 |
<locationevent> |
|
35 |
<method_id> |
|
36 |
<method> |
|
37 |
<name>$PlotMethod</name> |
|
38 |
<observationmeasure>$lookup_MethodCode_Description</observationmeasure> |
|
39 |
</method> |
|
40 |
</method_id> |
|
41 |
<project_id><project><sourceaccessioncode>$project_id</sourceaccessioncode></project></project_id> |
|
42 |
<commclass> |
|
43 |
<commdetermination> |
|
44 |
<commconcept_id> |
|
45 |
<commconcept> |
|
46 |
<commname_id> |
|
47 |
<commname> |
|
48 |
<commname> |
|
49 |
<_alt> |
|
50 |
<1>$vegetation_2</1> |
|
51 |
<2>$vegetation_1</2> |
|
52 |
<3>$life_zone</3> |
|
53 |
<4>$life_zone_code</4> |
|
54 |
</_alt> |
|
55 |
</commname> |
|
56 |
</commname> |
|
57 |
</commname_id> |
|
58 |
</commconcept> |
|
59 |
</commconcept_id> |
|
60 |
</commdetermination> |
|
61 |
</commclass> |
|
62 |
<obsenddate>$date_finish</obsenddate> |
|
63 |
<obsstartdate>$date_start</obsstartdate> |
|
64 |
<precipitation_m>$Precip</precipitation_m> |
|
65 |
<soilobs> |
|
66 |
<acidity_fraction> |
|
67 |
<_percent_to_fraction> |
|
68 |
<value> |
|
69 |
<_map> |
|
70 |
<<0.05>0</<0.05> |
|
71 |
<*>*</*> |
|
72 |
<value>$soil_acidity</value> |
|
73 |
</_map> |
|
74 |
</value> |
|
75 |
</_percent_to_fraction> |
|
76 |
</acidity_fraction> |
|
77 |
<basesaturation_fraction><_percent_to_fraction><value>$soil_base</value></_percent_to_fraction></basesaturation_fraction> |
|
78 |
<calcium_fraction><_percent_to_fraction><value>$soil_Ca</value></_percent_to_fraction></calcium_fraction> |
|
79 |
<carbon_fraction><_percent_to_fraction><value>$soil_C</value></_percent_to_fraction></carbon_fraction> |
|
80 |
<cationexchangecapacity_cmol_kg>$soil_cation_cap</cationexchangecapacity_cmol_kg> |
|
81 |
<clay_fraction><_percent_to_fraction><value>$clay_percent</value></_percent_to_fraction></clay_fraction> |
|
82 |
<conductivity>$soil_conductivity</conductivity> |
|
83 |
<magnesium_fraction><_percent_to_fraction><value>$soil_Mg</value></_percent_to_fraction></magnesium_fraction> |
|
84 |
<nitrogen_fraction><_percent_to_fraction><value>$soil_N</value></_percent_to_fraction></nitrogen_fraction> |
|
85 |
<organic_fraction><_percent_to_fraction><value>$organic_percent</value></_percent_to_fraction></organic_fraction> |
|
86 |
<ph>$pH</ph> |
|
87 |
<phosphorus_fraction> |
|
88 |
<_percent_to_fraction> |
|
89 |
<value> |
|
90 |
<_map> |
|
91 |
<<1,5>0</<1,5> |
|
92 |
<*>*</*> |
|
93 |
<value>$soil_P</value> |
|
94 |
</_map> |
|
95 |
</value> |
|
96 |
</_percent_to_fraction> |
|
97 |
</phosphorus_fraction> |
|
98 |
<potassium_fraction><_percent_to_fraction><value>$soil_K</value></_percent_to_fraction></potassium_fraction> |
|
99 |
<sand_fraction><_percent_to_fraction><value>$sand_percent</value></_percent_to_fraction></sand_fraction> |
|
100 |
<silt_fraction><_percent_to_fraction><value>$silt_percent</value></_percent_to_fraction></silt_fraction> |
|
101 |
<sodium_fraction><_percent_to_fraction><value>$soil_Na</value></_percent_to_fraction></sodium_fraction> |
|
102 |
<texture>$soil_texture</texture> |
|
103 |
</soilobs> |
|
104 |
<temperature_c>$Temp</temperature_c> |
|
105 |
</locationevent> |
|
106 |
<locationnarrative> |
|
107 |
<_merge> |
|
108 |
<1>$Locality_Description</1> |
|
109 |
<3> |
|
110 |
<_label> |
|
111 |
<label>habitat</label> |
|
112 |
<value>$Habitat</value> |
|
113 |
</_label> |
|
114 |
</3> |
|
115 |
</_merge> |
|
116 |
</locationnarrative> |
|
117 |
<locationplace> |
|
118 |
<place_id> |
|
140 | 119 |
<place> |
141 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
142 | 120 |
<coordinates_id> |
143 | 121 |
<coordinates> |
144 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
145 | 122 |
<latitude_deg> |
146 | 123 |
<_nullIf> |
147 | 124 |
<null>0</null> |
... | ... | |
156 | 133 |
<value>$LongDec</value> |
157 | 134 |
</_nullIf> |
158 | 135 |
</longitude_deg> |
136 |
<verbatimlatitude>$lat_string</verbatimlatitude> |
|
137 |
<verbatimlongitude>$long_string</verbatimlongitude> |
|
159 | 138 |
</coordinates> |
160 | 139 |
</coordinates_id> |
140 |
<continent>$MajorGeo</continent> |
|
161 | 141 |
<country>$Country</country> |
162 | 142 |
<county>$pol2</county> |
143 |
<matched_place_id> |
|
144 |
<place> |
|
145 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
146 |
<coordinates_id> |
|
147 |
<coordinates> |
|
148 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
149 |
<latitude_deg> |
|
150 |
<_nullIf> |
|
151 |
<null>0</null> |
|
152 |
<type>float</type> |
|
153 |
<value>$LatDec</value> |
|
154 |
</_nullIf> |
|
155 |
</latitude_deg> |
|
156 |
<longitude_deg> |
|
157 |
<_nullIf> |
|
158 |
<null>0</null> |
|
159 |
<type>float</type> |
|
160 |
<value>$LongDec</value> |
|
161 |
</_nullIf> |
|
162 |
</longitude_deg> |
|
163 |
</coordinates> |
|
164 |
</coordinates_id> |
|
165 |
<country>$Country</country> |
|
166 |
<county>$pol2</county> |
|
167 |
<stateprovince>$PolDiv1</stateprovince> |
|
168 |
</place> |
|
169 |
</matched_place_id> |
|
163 | 170 |
<stateprovince>$PolDiv1</stateprovince> |
164 | 171 |
</place> |
165 |
</matched_place_id> |
|
166 |
<stateprovince>$PolDiv1</stateprovince> |
|
167 |
</place> |
|
168 |
</place_id> |
|
169 |
</locationplace> |
|
170 |
<notespublic>$plot_notes</notespublic> |
|
171 |
<slopeaspect_deg><_compass><value>$slope_aspect</value></_compass></slopeaspect_deg> |
|
172 |
<slopegradient_fraction>$slope_gradient</slopegradient_fraction> |
|
173 |
</location> |
|
172 |
</place_id> |
|
173 |
</locationplace> |
|
174 |
<notespublic>$plot_notes</notespublic> |
|
175 |
<slopeaspect_deg><_compass><value>$slope_aspect</value></_compass></slopeaspect_deg> |
|
176 |
<slopegradient_fraction>$slope_gradient</slopegradient_fraction> |
|
177 |
</location> |
|
178 |
</path> |
|
179 |
</_simplifyPath> |
|
174 | 180 |
</path> |
175 |
</_simplifyPath>
|
|
181 |
</_setDefault>
|
|
176 | 182 |
</VegBIEN> |
177 | 183 |
Inserted 16 new rows into database |
Also available in: Unified diff
mappings/VegCore-VegBIEN.csv: Set the source_id col_default to the datasource name using the new _setDefault() built-in function and _env()