Project

General

Profile

« Previous | Next » 

Revision 4621

mappings/VegCore-VegBIEN.csv: Added /_simplifyPath:[next=parent_id]/path to root so the returned subplot location will be its parent location if there is no subplot name or ID (indicating that that particular plot did not have subplots). Note that this also causes the parent_id forwarding effect to occur for all other tables containing parent_id, which will help prevent similar issues with subplot events, etc. This will hopefully fix the SALVIAS.plotObservations bug where some organisms did not have a subplot #, causing the subplot location to become NULL and causing the corresponding locationevent rows not to match the locationevent_unique_within_location index filter condition (which requires a parent_id), which caused multiple output table pkeys to be returned for those rows, violating the locationevent_pkeys temp table's primary key.

View differences:

inputs/CTFS/SubplotObservation/test.xml.ref
1 1
Put template:
2 2
<VegBIEN>
3
    <location id="-1">
4
        <parent_id><location><sourceaccessioncode>$PlotID</sourceaccessioncode></location></parent_id>
5
        <authorlocationcode>$QuadratID</authorlocationcode>
6
        <locationevent>
7
            <parent_id>
3
    <_simplifyPath id="-1">
4
        <next>parent_id</next>
5
        <path>
6
            <location>
7
                <parent_id><location><sourceaccessioncode>$PlotID</sourceaccessioncode></location></parent_id>
8
                <authorlocationcode>$QuadratID</authorlocationcode>
8 9
                <locationevent>
9
                    <location_id><location><sourceaccessioncode>$PlotID</sourceaccessioncode></location></location_id>
10
                    <sourceaccessioncode>$CensusID</sourceaccessioncode>
10
                    <parent_id>
11
                        <locationevent>
12
                            <location_id><location><sourceaccessioncode>$PlotID</sourceaccessioncode></location></location_id>
13
                            <sourceaccessioncode>$CensusID</sourceaccessioncode>
14
                        </locationevent>
15
                    </parent_id>
11 16
                </locationevent>
12
            </parent_id>
13
        </locationevent>
14
    </location>
17
            </location>
18
        </path>
19
    </_simplifyPath>
15 20
</VegBIEN>
16 21
Inserted 7 new rows into database
inputs/FIA/Organism/VegBIEN.csv
1
FIA[Veg+],VegBIEN:,Comments
1
FIA[Veg+],VegBIEN:/_simplifyPath:[next=parent_id]/path,Comments
2 2
PlotCD,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/2/_if[@name=""if locationID""]/cond/_exists",
3 3
PlotCD,"/location/_if[@name=""if subplot""]/else/sourceaccessioncode",
4 4
PlotCD,"/location/_if[@name=""if subplot""]/then/parent_id/location/sourceaccessioncode",
inputs/SALVIAS/plotMetadata/test.xml.ref
1 1
Put template:
2 2
<VegBIEN>
3
    <location id="-1">
4
        <authorlocationcode>$SiteCode</authorlocationcode>
5
        <sourceaccessioncode>$PlotID</sourceaccessioncode>
6
        <area>$plot_area_ha</area>
7
        <elevation>
8
            <_alt>
9
                <1>
10
                    <_replace>
11
                        <\bca\.?></\bca\.?>
12
                        <value>$Elev</value>
13
                    </_replace>
14
                </1>
15
                <2>
16
                    <_avg>
17
                        <max>
3
    <_simplifyPath id="-1">
4
        <next>parent_id</next>
5
        <path>
6
            <location>
7
                <authorlocationcode>$SiteCode</authorlocationcode>
8
                <sourceaccessioncode>$PlotID</sourceaccessioncode>
9
                <area>$plot_area_ha</area>
10
                <elevation>
11
                    <_alt>
12
                        <1>
13
                            <_replace>
14
                                <\bca\.?></\bca\.?>
15
                                <value>$Elev</value>
16
                            </_replace>
17
                        </1>
18
                        <2>
19
                            <_avg>
20
                                <max>
21
                                    <_units>
22
                                        <default>m</default>
23
                                        <to>m</to>
24
                                        <to></to>
25
                                        <value>
26
                                            <_replace>
27
                                                <\bca\.?></\bca\.?>
28
                                                <value>$elev_max_m</value>
29
                                            </_replace>
30
                                        </value>
31
                                    </_units>
32
                                </max>
33
                                <min>
34
                                    <_units>
35
                                        <default>m</default>
36
                                        <to>m</to>
37
                                        <to></to>
38
                                        <value>
39
                                            <_rangeStart>
40
                                                <value>
41
                                                    <_replace>
42
                                                        <\bca\.?></\bca\.?>
43
                                                        <value>$elev_min_m</value>
44
                                                    </_replace>
45
                                                </value>
46
                                            </_rangeStart>
47
                                        </value>
48
                                    </_units>
49
                                </min>
50
                            </_avg>
51
                        </2>
52
                    </_alt>
53
                </elevation>
54
                <elevationrange>
55
                    <_range>
56
                        <from>
18 57
                            <_units>
19 58
                                <default>m</default>
20 59
                                <to>m</to>
21 60
                                <to></to>
22 61
                                <value>
23
                                    <_replace>
24
                                        <\bca\.?></\bca\.?>
25
                                        <value>$elev_max_m</value>
26
                                    </_replace>
27
                                </value>
28
                            </_units>
29
                        </max>
30
                        <min>
31
                            <_units>
32
                                <default>m</default>
33
                                <to>m</to>
34
                                <to></to>
35
                                <value>
36 62
                                    <_rangeStart>
37 63
                                        <value>
38 64
                                            <_replace>
......
43 69
                                    </_rangeStart>
44 70
                                </value>
45 71
                            </_units>
46
                        </min>
47
                    </_avg>
48
                </2>
49
            </_alt>
50
        </elevation>
51
        <elevationrange>
52
            <_range>
53
                <from>
54
                    <_units>
55
                        <default>m</default>
56
                        <to>m</to>
57
                        <to></to>
58
                        <value>
59
                            <_rangeStart>
72
                        </from>
73
                        <to>
74
                            <_units>
75
                                <default>m</default>
76
                                <to>m</to>
77
                                <to></to>
60 78
                                <value>
61
                                    <_replace>
62
                                        <\bca\.?></\bca\.?>
63
                                        <value>$elev_min_m</value>
64
                                    </_replace>
65
                                </value>
66
                            </_rangeStart>
67
                        </value>
68
                    </_units>
69
                </from>
70
                <to>
71
                    <_units>
72
                        <default>m</default>
73
                        <to>m</to>
74
                        <to></to>
75
                        <value>
76
                            <_alt>
77
                                <1>
78
                                    <_replace>
79
                                        <\bca\.?></\bca\.?>
80
                                        <value>$elev_max_m</value>
81
                                    </_replace>
82
                                </1>
83
                                <2>
84
                                    <_rangeEnd>
85
                                        <value>
79
                                    <_alt>
80
                                        <1>
86 81
                                            <_replace>
87 82
                                                <\bca\.?></\bca\.?>
88
                                                <value>$elev_min_m</value>
83
                                                <value>$elev_max_m</value>
89 84
                                            </_replace>
90
                                        </value>
91
                                    </_rangeEnd>
92
                                </2>
93
                            </_alt>
94
                        </value>
95
                    </_units>
96
                </to>
97
            </_range>
98
        </elevationrange>
99
        <locationdetermination>
100
            <latitude>
101
                <_nullIf>
102
                    <null>0</null>
103
                    <type>float</type>
104
                    <value>$LatDec</value>
105
                </_nullIf>
106
            </latitude>
107
            <longitude>
108
                <_nullIf>
109
                    <null>0</null>
110
                    <type>float</type>
111
                    <value>$LongDec</value>
112
                </_nullIf>
113
            </longitude>
114
            <namedplace_id>
115
                <_simplifyPath>
116
                    <next>parent_id</next>
117
                    <path>
118
                        <namedplace>
119
                            <rank>county</rank>
120
                            <placename>$pol2</placename>
121
                            <parent_id>
85
                                        </1>
86
                                        <2>
87
                                            <_rangeEnd>
88
                                                <value>
89
                                                    <_replace>
90
                                                        <\bca\.?></\bca\.?>
91
                                                        <value>$elev_min_m</value>
92
                                                    </_replace>
93
                                                </value>
94
                                            </_rangeEnd>
95
                                        </2>
96
                                    </_alt>
97
                                </value>
98
                            </_units>
99
                        </to>
100
                    </_range>
101
                </elevationrange>
102
                <locationdetermination>
103
                    <latitude>
104
                        <_nullIf>
105
                            <null>0</null>
106
                            <type>float</type>
107
                            <value>$LatDec</value>
108
                        </_nullIf>
109
                    </latitude>
110
                    <longitude>
111
                        <_nullIf>
112
                            <null>0</null>
113
                            <type>float</type>
114
                            <value>$LongDec</value>
115
                        </_nullIf>
116
                    </longitude>
117
                    <namedplace_id>
118
                        <_simplifyPath>
119
                            <next>parent_id</next>
120
                            <path>
122 121
                                <namedplace>
123
                                    <rank>stateProvince</rank>
124
                                    <placename>$PolDiv1</placename>
122
                                    <rank>county</rank>
123
                                    <placename>$pol2</placename>
125 124
                                    <parent_id>
126 125
                                        <namedplace>
127
                                            <rank>country</rank>
128
                                            <placename>$Country</placename>
126
                                            <rank>stateProvince</rank>
127
                                            <placename>$PolDiv1</placename>
129 128
                                            <parent_id>
130 129
                                                <namedplace>
131
                                                    <rank>continent</rank>
132
                                                    <placename>$MajorGeo</placename>
130
                                                    <rank>country</rank>
131
                                                    <placename>$Country</placename>
132
                                                    <parent_id>
133
                                                        <namedplace>
134
                                                            <rank>continent</rank>
135
                                                            <placename>$MajorGeo</placename>
136
                                                        </namedplace>
137
                                                    </parent_id>
133 138
                                                </namedplace>
134 139
                                            </parent_id>
135 140
                                        </namedplace>
136 141
                                    </parent_id>
137 142
                                </namedplace>
138
                            </parent_id>
139
                        </namedplace>
140
                    </path>
141
                </_simplifyPath>
142
            </namedplace_id>
143
        </locationdetermination>
144
        <locationevent>
145
            <method_id><method><name>$PlotMethod</name></method></method_id>
146
            <project_id><project><sourceaccessioncode>$project_id</sourceaccessioncode></project></project_id>
147
            <commclass>
148
                <commdetermination>
149
                    <commconcept_id>
150
                        <commconcept>
151
                            <commname_id><commname><commname>$life_zone_code</commname></commname></commname_id>
152
                            <commdescription>$life_zone</commdescription>
153
                        </commconcept>
154
                    </commconcept_id>
155
                </commdetermination>
156
            </commclass>
157
            <obsenddate><_date><date>$date_finish</date></_date></obsenddate>
158
            <obsstartdate><_date><date>$date_start</date></_date></obsstartdate>
159
            <precipitation>$Precip</precipitation>
160
            <soilobs>
161
                <acidity>
162
                    <_units>
163
                        <default>%</default>
164
                        <to></to>
165
                        <value>
166
                            <_map>
167
                                <<0.05>0</<0.05>
168
                                <*>*</*>
169
                                <value>$soil_acidity</value>
170
                            </_map>
171
                        </value>
172
                    </_units>
173
                </acidity>
174
                <basesaturation>
175
                    <_units>
176
                        <default>%</default>
177
                        <to></to>
178
                        <value>$soil_base</value>
179
                    </_units>
180
                </basesaturation>
181
                <calcium>
182
                    <_units>
183
                        <default>%</default>
184
                        <to></to>
185
                        <value>$soil_Ca</value>
186
                    </_units>
187
                </calcium>
188
                <carbon>
189
                    <_units>
190
                        <default>%</default>
191
                        <to></to>
192
                        <value>$soil_C</value>
193
                    </_units>
194
                </carbon>
195
                <cationexchangecapacity>$soil_cation_cap</cationexchangecapacity>
196
                <clay>
197
                    <_units>
198
                        <default>%</default>
199
                        <to></to>
200
                        <value>$clay_percent</value>
201
                    </_units>
202
                </clay>
203
                <conductivity>$soil_conductivity</conductivity>
204
                <magnesium>
205
                    <_units>
206
                        <default>%</default>
207
                        <to></to>
208
                        <value>$soil_Mg</value>
209
                    </_units>
210
                </magnesium>
211
                <nitrogen>
212
                    <_units>
213
                        <default>%</default>
214
                        <to></to>
215
                        <value>$soil_N</value>
216
                    </_units>
217
                </nitrogen>
218
                <organic>
219
                    <_units>
220
                        <default>%</default>
221
                        <to></to>
222
                        <value>$organic_percent</value>
223
                    </_units>
224
                </organic>
225
                <ph>$pH</ph>
226
                <phosphorus>
227
                    <_units>
228
                        <default>%</default>
229
                        <to></to>
230
                        <value>
231
                            <_map>
232
                                <<1,5>0</<1,5>
233
                                <*>*</*>
234
                                <value>$soil_P</value>
235
                            </_map>
236
                        </value>
237
                    </_units>
238
                </phosphorus>
239
                <potassium>
240
                    <_units>
241
                        <default>%</default>
242
                        <to></to>
243
                        <value>$soil_K</value>
244
                    </_units>
245
                </potassium>
246
                <sand>
247
                    <_units>
248
                        <default>%</default>
249
                        <to></to>
250
                        <value>$sand_percent</value>
251
                    </_units>
252
                </sand>
253
                <silt>
254
                    <_units>
255
                        <default>%</default>
256
                        <to></to>
257
                        <value>$silt_percent</value>
258
                    </_units>
259
                </silt>
260
                <sodium>
261
                    <_units>
262
                        <default>%</default>
263
                        <to></to>
264
                        <value>$soil_Na</value>
265
                    </_units>
266
                </sodium>
267
                <texture>
268
                    <_units>
269
                        <default>%</default>
270
                        <to></to>
271
                        <value>$soil_texture</value>
272
                    </_units>
273
                </texture>
274
            </soilobs>
275
            <temperature>$Temp</temperature>
276
        </locationevent>
277
        <locationnarrative>$Locality_Description</locationnarrative>
278
        <slopeaspect><_compass><value>$slope_aspect</value></_compass></slopeaspect>
279
        <slopegradient>$slope_gradient</slopegradient>
280
    </location>
143
                            </path>
144
                        </_simplifyPath>
145
                    </namedplace_id>
146
                </locationdetermination>
147
                <locationevent>
148
                    <method_id><method><name>$PlotMethod</name></method></method_id>
149
                    <project_id><project><sourceaccessioncode>$project_id</sourceaccessioncode></project></project_id>
150
                    <commclass>
151
                        <commdetermination>
152
                            <commconcept_id>
153
                                <commconcept>
154
                                    <commname_id><commname><commname>$life_zone_code</commname></commname></commname_id>
155
                                    <commdescription>$life_zone</commdescription>
156
                                </commconcept>
157
                            </commconcept_id>
158
                        </commdetermination>
159
                    </commclass>
160
                    <obsenddate><_date><date>$date_finish</date></_date></obsenddate>
161
                    <obsstartdate><_date><date>$date_start</date></_date></obsstartdate>
162
                    <precipitation>$Precip</precipitation>
163
                    <soilobs>
164
                        <acidity>
165
                            <_units>
166
                                <default>%</default>
167
                                <to></to>
168
                                <value>
169
                                    <_map>
170
                                        <<0.05>0</<0.05>
171
                                        <*>*</*>
172
                                        <value>$soil_acidity</value>
173
                                    </_map>
174
                                </value>
175
                            </_units>
176
                        </acidity>
177
                        <basesaturation>
178
                            <_units>
179
                                <default>%</default>
180
                                <to></to>
181
                                <value>$soil_base</value>
182
                            </_units>
183
                        </basesaturation>
184
                        <calcium>
185
                            <_units>
186
                                <default>%</default>
187
                                <to></to>
188
                                <value>$soil_Ca</value>
189
                            </_units>
190
                        </calcium>
191
                        <carbon>
192
                            <_units>
193
                                <default>%</default>
194
                                <to></to>
195
                                <value>$soil_C</value>
196
                            </_units>
197
                        </carbon>
198
                        <cationexchangecapacity>$soil_cation_cap</cationexchangecapacity>
199
                        <clay>
200
                            <_units>
201
                                <default>%</default>
202
                                <to></to>
203
                                <value>$clay_percent</value>
204
                            </_units>
205
                        </clay>
206
                        <conductivity>$soil_conductivity</conductivity>
207
                        <magnesium>
208
                            <_units>
209
                                <default>%</default>
210
                                <to></to>
211
                                <value>$soil_Mg</value>
212
                            </_units>
213
                        </magnesium>
214
                        <nitrogen>
215
                            <_units>
216
                                <default>%</default>
217
                                <to></to>
218
                                <value>$soil_N</value>
219
                            </_units>
220
                        </nitrogen>
221
                        <organic>
222
                            <_units>
223
                                <default>%</default>
224
                                <to></to>
225
                                <value>$organic_percent</value>
226
                            </_units>
227
                        </organic>
228
                        <ph>$pH</ph>
229
                        <phosphorus>
230
                            <_units>
231
                                <default>%</default>
232
                                <to></to>
233
                                <value>
234
                                    <_map>
235
                                        <<1,5>0</<1,5>
236
                                        <*>*</*>
237
                                        <value>$soil_P</value>
238
                                    </_map>
239
                                </value>
240
                            </_units>
241
                        </phosphorus>
242
                        <potassium>
243
                            <_units>
244
                                <default>%</default>
245
                                <to></to>
246
                                <value>$soil_K</value>
247
                            </_units>
248
                        </potassium>
249
                        <sand>
250
                            <_units>
251
                                <default>%</default>
252
                                <to></to>
253
                                <value>$sand_percent</value>
254
                            </_units>
255
                        </sand>
256
                        <silt>
257
                            <_units>
258
                                <default>%</default>
259
                                <to></to>
260
                                <value>$silt_percent</value>
261
                            </_units>
262
                        </silt>
263
                        <sodium>
264
                            <_units>
265
                                <default>%</default>
266
                                <to></to>
267
                                <value>$soil_Na</value>
268
                            </_units>
269
                        </sodium>
270
                        <texture>
271
                            <_units>
272
                                <default>%</default>
273
                                <to></to>
274
                                <value>$soil_texture</value>
275
                            </_units>
276
                        </texture>
277
                    </soilobs>
278
                    <temperature>$Temp</temperature>
279
                </locationevent>
280
                <locationnarrative>$Locality_Description</locationnarrative>
281
                <slopeaspect><_compass><value>$slope_aspect</value></_compass></slopeaspect>
282
                <slopegradient>$slope_gradient</slopegradient>
283
            </location>
284
        </path>
285
    </_simplifyPath>
281 286
</VegBIEN>
282 287
Inserted 23 new rows into database
inputs/SALVIAS/stems/VegBIEN.csv
1
SALVIAS,VegBIEN:,Comments
1
SALVIAS,VegBIEN:/_simplifyPath:[next=parent_id]/path,Comments
2 2
PlotObsID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/sourceaccessioncode,
3 3
NoInd,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemcount,
4 4
basal_diam,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/basaldiameter,
inputs/CTFS/StemObservation/VegBIEN.csv
1
CTFS[Veg+],VegBIEN:,Comments
1
CTFS[Veg+],VegBIEN:/_simplifyPath:[next=parent_id]/path,Comments
2 2
QuadratID,"/location/_if[@name=""if subplot""]/cond/_exists/_first/2",Not globally unique; unique only within Site
3 3
plotID,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/2/_if[@name=""if locationID""]/cond/_exists",
4 4
plotID,"/location/_if[@name=""if subplot""]/else/sourceaccessioncode",
inputs/CTFS/Subplot/VegBIEN.csv
1
CTFS[Veg+],VegBIEN:,Comments
1
CTFS[Veg+],VegBIEN:/_simplifyPath:[next=parent_id]/path,Comments
2 2
QuadratID,"/location/_if[@name=""if subplot""]/cond/_exists/_first/2",Not globally unique; unique only within Site
3 3
plotID,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/2/_if[@name=""if locationID""]/cond/_exists",
4 4
plotID,"/location/_if[@name=""if subplot""]/else/sourceaccessioncode",
inputs/CTFS/PlotObservation/VegBIEN.csv
1
CTFS[Veg+],VegBIEN:,Comments
1
CTFS[Veg+],VegBIEN:/_simplifyPath:[next=parent_id]/path,Comments
2 2
plotID,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/2/_if[@name=""if locationID""]/cond/_exists",
3 3
PlotCensusNumber,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/2/_if[@name=""if locationID""]/else",
4 4
plotID,"/location/_if[@name=""if subplot""]/else/sourceaccessioncode",
inputs/CTFS/TaxonOccurrence/VegBIEN.csv
1
CTFS[Veg+],VegBIEN:,Comments
1
CTFS[Veg+],VegBIEN:/_simplifyPath:[next=parent_id]/path,Comments
2 2
plotID,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/2/_if[@name=""if locationID""]/cond/_exists",
3 3
plotID,"/location/_if[@name=""if subplot""]/else/sourceaccessioncode",
4 4
plotID,"/location/_if[@name=""if subplot""]/then/parent_id/location/sourceaccessioncode",
inputs/CTFS/SubplotObservation/VegBIEN.csv
1
CTFS[Veg+],VegBIEN:,Comments
1
CTFS[Veg+],VegBIEN:/_simplifyPath:[next=parent_id]/path,Comments
2 2
QuadratID,"/location/_if[@name=""if subplot""]/cond/_exists/_first/2",Not globally unique; unique only within Site
3 3
plotID,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/2/_if[@name=""if locationID""]/cond/_exists",
4 4
plotID,"/location/_if[@name=""if subplot""]/else/sourceaccessioncode",
inputs/CTFS/Plot/test.xml.ref
1 1
Put template:
2 2
<VegBIEN>
3
    <location id="-1">
4
        <authorlocationcode>$PlotName</authorlocationcode>
5
        <sourceaccessioncode>$PlotID</sourceaccessioncode>
6
        <area>$SizeOfSite</area>
7
        <elevation>
8
            <_replace>
9
                <\bca\.?></\bca\.?>
10
                <value>$Elevation</value>
11
            </_replace>
12
        </elevation>
13
        <locationdetermination>
14
            <footprintgeometry_dwc>$ShapeOfSite</footprintgeometry_dwc>
15
            <latitude>
16
                <_nullIf>
17
                    <null>0</null>
18
                    <type>float</type>
19
                    <value>$Latitude</value>
20
                </_nullIf>
21
            </latitude>
22
            <longitude>
23
                <_nullIf>
24
                    <null>0</null>
25
                    <type>float</type>
26
                    <value>$Longitude</value>
27
                </_nullIf>
28
            </longitude>
29
            <namedplace_id>
30
                <_simplifyPath>
31
                    <next>parent_id</next>
32
                    <path>
33
                        <namedplace>
34
                            <rank>county</rank>
35
                            <parent_id>
3
    <_simplifyPath id="-1">
4
        <next>parent_id</next>
5
        <path>
6
            <location>
7
                <authorlocationcode>$PlotName</authorlocationcode>
8
                <sourceaccessioncode>$PlotID</sourceaccessioncode>
9
                <area>$SizeOfSite</area>
10
                <elevation>
11
                    <_replace>
12
                        <\bca\.?></\bca\.?>
13
                        <value>$Elevation</value>
14
                    </_replace>
15
                </elevation>
16
                <locationdetermination>
17
                    <footprintgeometry_dwc>$ShapeOfSite</footprintgeometry_dwc>
18
                    <latitude>
19
                        <_nullIf>
20
                            <null>0</null>
21
                            <type>float</type>
22
                            <value>$Latitude</value>
23
                        </_nullIf>
24
                    </latitude>
25
                    <longitude>
26
                        <_nullIf>
27
                            <null>0</null>
28
                            <type>float</type>
29
                            <value>$Longitude</value>
30
                        </_nullIf>
31
                    </longitude>
32
                    <namedplace_id>
33
                        <_simplifyPath>
34
                            <next>parent_id</next>
35
                            <path>
36 36
                                <namedplace>
37
                                    <rank>stateProvince</rank>
37
                                    <rank>county</rank>
38 38
                                    <parent_id>
39 39
                                        <namedplace>
40
                                            <rank>country</rank>
41
                                            <placename>$CountryName</placename>
40
                                            <rank>stateProvince</rank>
41
                                            <parent_id>
42
                                                <namedplace>
43
                                                    <rank>country</rank>
44
                                                    <placename>$CountryName</placename>
45
                                                </namedplace>
46
                                            </parent_id>
42 47
                                        </namedplace>
43 48
                                    </parent_id>
44 49
                                </namedplace>
45
                            </parent_id>
46
                        </namedplace>
47
                    </path>
48
                </_simplifyPath>
49
            </namedplace_id>
50
        </locationdetermination>
51
        <locationnarrative>
52
            <_alt>
53
                <0>$DescriptionOfSite</0>
54
                <1>$LocationName</1>
55
            </_alt>
56
        </locationnarrative>
57
    </location>
50
                            </path>
51
                        </_simplifyPath>
52
                    </namedplace_id>
53
                </locationdetermination>
54
                <locationnarrative>
55
                    <_alt>
56
                        <0>$DescriptionOfSite</0>
57
                        <1>$LocationName</1>
58
                    </_alt>
59
                </locationnarrative>
60
            </location>
61
        </path>
62
    </_simplifyPath>
58 63
</VegBIEN>
59 64
Inserted 6 new rows into database
inputs/SALVIAS/plotMetadata/VegBIEN.csv
1
SALVIAS,VegBIEN:,Comments
1
SALVIAS,VegBIEN:/_simplifyPath:[next=parent_id]/path,Comments
2 2
SiteCode,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/1",Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)
3 3
PlotID,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/2/_if[@name=""if locationID""]/cond/_exists","Brad: This is artificial internal database ID; a unique identifier within SALVIAS DB to each plot, within the table plotMetadata."
4 4
PlotID,"/location/_if[@name=""if subplot""]/else/sourceaccessioncode","Brad: This is artificial internal database ID; a unique identifier within SALVIAS DB to each plot, within the table plotMetadata."
inputs/SALVIAS/projects/test.xml.ref
1 1
Put template:
2 2
<VegBIEN>
3
    <location id="-1">
4
        <locationevent>
5
            <project_id>
6
                <project>
7
                    <projectname>$project_name</projectname>
8
                    <sourceaccessioncode>$project_id</sourceaccessioncode>
9
                </project>
10
            </project_id>
11
        </locationevent>
12
    </location>
3
    <_simplifyPath id="-1">
4
        <next>parent_id</next>
5
        <path>
6
            <location>
7
                <locationevent>
8
                    <project_id>
9
                        <project>
10
                            <projectname>$project_name</projectname>
11
                            <sourceaccessioncode>$project_id</sourceaccessioncode>
12
                        </project>
13
                    </project_id>
14
                </locationevent>
15
            </location>
16
        </path>
17
    </_simplifyPath>
13 18
</VegBIEN>
14 19
Inserted 3 new rows into database
inputs/U/Specimen/VegBIEN.csv
1
U[Veg+],VegBIEN:,Comments
1
U[Veg+],VegBIEN:/_simplifyPath:[next=parent_id]/path,Comments
2 2
ID,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/1",
3 3
Barcode,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_join/3/_if[@name=""if indirect voucher""]/else",
4 4
Lat,"/location/locationdetermination/latitude/_alt/1/_nullIf:[null=0,type=float]/value",
inputs/GBIF/Specimen/VegBIEN.csv
1
GBIF[Veg+],VegBIEN:,Comments
1
GBIF[Veg+],VegBIEN:/_simplifyPath:[next=parent_id]/path,Comments
2 2
InstitutionCD,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_join/1",
3 3
CollectionCD,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_join/2/_join/1",
4 4
CatalogNO,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_join/3/_if[@name=""if indirect voucher""]/else",
inputs/SALVIAS/plotObservations/test.xml.ref
1 1
Put template:
2 2
<VegBIEN>
3
    <location id="-1">
4
        <parent_id>
3
    <_simplifyPath id="-1">
4
        <next>parent_id</next>
5
        <path>
5 6
            <location>
6
                <authorlocationcode>$PlotCode</authorlocationcode>
7
                <sourceaccessioncode>$PlotID</sourceaccessioncode>
8
            </location>
9
        </parent_id>
10
        <authorlocationcode>$Line</authorlocationcode>
11
        <locationevent>
12
            <obsenddate><_date><date><_dateRangeEnd><value>$census_date</value></_dateRangeEnd></date></_date></obsenddate>
13
            <obsstartdate><_date><date><_dateRangeStart><value>$census_date</value></_dateRangeStart></date></_date></obsstartdate>
14
            <taxonoccurrence>
15
                <aggregateoccurrence>
16
                    <count>$NoInd</count>
17
                    <cover>$cover_percent</cover>
18
                    <definedvalue fkey="tablerecord_id">
19
                        <userdefined_id>
20
                            <userdefined>
21
                                <tablename>aggregateoccurrence</tablename>
22
                                <userdefinedname>censusNo</userdefinedname>
23
                            </userdefined>
24
                        </userdefined_id>
25
                        <definedvalue>$census_no</definedvalue>
26
                    </definedvalue>
27
                    <linecover>$intercept_cm</linecover>
28
                    <notes>$Notes</notes>
29
                    <plantobservation>
30
                        <collectionnumber>$Ind</collectionnumber>
31
                        <sourceaccessioncode>$PlotObsID</sourceaccessioncode>
32
                        <specimenreplicate>
33
                            <catalognumber_dwc>
34
                                <_if name="if indirect voucher">
35
                                    <cond>
36
                                        <_eq>
37
                                            <right>indirect</right>
38
                                            <left>$DetType</left>
39
                                        </_eq>
40
                                    </cond>
41
                                    <else>
42
                                        <_alt>
43
                                            <1>$coll_number</1>
44
                                            <2>$SourceVoucher</2>
45
                                        </_alt>
46
                                    </else>
47
                                </_if>
48
                            </catalognumber_dwc>
49
                        </specimenreplicate>
50
                        <stemobservation>
7
                <parent_id>
8
                    <location>
9
                        <authorlocationcode>$PlotCode</authorlocationcode>
10
                        <sourceaccessioncode>$PlotID</sourceaccessioncode>
11
                    </location>
12
                </parent_id>
13
                <authorlocationcode>$Line</authorlocationcode>
14
                <locationevent>
15
                    <obsenddate><_date><date><_dateRangeEnd><value>$census_date</value></_dateRangeEnd></date></_date></obsenddate>
16
                    <obsstartdate><_date><date><_dateRangeStart><value>$census_date</value></_dateRangeStart></date></_date></obsstartdate>
17
                    <taxonoccurrence>
18
                        <aggregateoccurrence>
19
                            <count>$NoInd</count>
20
                            <cover>$cover_percent</cover>
51 21
                            <definedvalue fkey="tablerecord_id">
52 22
                                <userdefined_id>
53 23
                                    <userdefined>
54
                                        <tablename>stemobservation</tablename>
55
                                        <userdefinedname>canopyForm</userdefinedname>
24
                                        <tablename>aggregateoccurrence</tablename>
25
                                        <userdefinedname>censusNo</userdefinedname>
56 26
                                    </userdefined>
57 27
                                </userdefined_id>
58
                                <definedvalue>$canopy_form</definedvalue>
28
                                <definedvalue>$census_no</definedvalue>
59 29
                            </definedvalue>
60
                            <definedvalue fkey="tablerecord_id">
61
                                <userdefined_id>
62
                                    <userdefined>
63
                                        <tablename>stemobservation</tablename>
64
                                        <userdefinedname>canopyPosition</userdefinedname>
65
                                    </userdefined>
66
                                </userdefined_id>
67
                                <definedvalue>$canopy_position</definedvalue>
68
                            </definedvalue>
69
                            <definedvalue fkey="tablerecord_id">
70
                                <userdefined_id>
71
                                    <userdefined>
72
                                        <tablename>stemobservation</tablename>
73
                                        <userdefinedname>lianaInfestation</userdefinedname>
74
                                    </userdefined>
75
                                </userdefined_id>
76
                                <definedvalue>$liana_infestation</definedvalue>
77
                            </definedvalue>
78
                            <diameterbreastheight>$temp_dbh</diameterbreastheight>
79
                            <height>$height_m</height>
80
                            <heightfirstbranch>$ht_first_branch_m</heightfirstbranch>
81
                            <stemtag>
82
                                <iscurrent>
83
                                    <_alt>
84
                                        <2>true</2>
85
                                        <1>false</1>
86
                                    </_alt>
87
                                </iscurrent>
88
                                <tag>$tag1</tag>
89
                            </stemtag>
90
                            <stemtag>
91
                                <iscurrent>true</iscurrent>
92
                                <tag>$tag2</tag>
93
                            </stemtag>
94
                            <xposition>$x_position</xposition>
95
                            <yposition>$y_position</yposition>
96
                        </stemobservation>
97
                    </plantobservation>
98
                </aggregateoccurrence>
99
                <authortaxoncode>$Ind</authortaxoncode>
100
                <growthform>
101
                    <_map>
102
                        <T>tree</T>
103
                        <Arbol>tree</Arbol>
104
                        <palm>tree</palm>
105
                        <H>hemiepiphyte</H>
106
                        <Hemiepífito>hemiepiphyte</Hemiepífito>
107
                        <L>liana</L>
108
                        <l>liana</l>
109
                        <L?>liana</L?>
110
                        <Liana>liana</Liana>
111
                        <E>epiphyte</E>
112
                        <S>shrub</S>
113
                        <Hb>herb</Hb>
114
                        <vine-herbaceous>vine</vine-herbaceous>
115
                        <graminoid>grass</graminoid>
116
                        <rosette>forb</rosette>
117
                        <*>*</*>
118
                        <value>$Habit</value>
119
                    </_map>
120
                </growthform>
121
                <sourceaccessioncode>$PlotObsID</sourceaccessioncode>
122
                <taxondetermination>
123
                    <plantconcept_id>
124
                        <plantconcept>
125
                            <plantname_id>
126
                                <_simplifyPath>
127
                                    <next>parent_id</next>
128
                                    <path>
129
                                        <plantname>
130
                                            <rank>binomial</rank>
131
                                            <parent_id>
30
                            <linecover>$intercept_cm</linecover>
31
                            <notes>$Notes</notes>
32
                            <plantobservation>
33
                                <collectionnumber>$Ind</collectionnumber>
34
                                <sourceaccessioncode>$PlotObsID</sourceaccessioncode>
35
                                <specimenreplicate>
36
                                    <catalognumber_dwc>
37
                                        <_if name="if indirect voucher">
38
                                            <cond>
39
                                                <_eq>
40
                                                    <right>indirect</right>
41
                                                    <left>$DetType</left>
42
                                                </_eq>
43
                                            </cond>
44
                                            <else>
45
                                                <_alt>
46
                                                    <1>$coll_number</1>
47
                                                    <2>$SourceVoucher</2>
48
                                                </_alt>
49
                                            </else>
50
                                        </_if>
51
                                    </catalognumber_dwc>
52
                                </specimenreplicate>
53
                                <stemobservation>
54
                                    <definedvalue fkey="tablerecord_id">
55
                                        <userdefined_id>
56
                                            <userdefined>
57
                                                <tablename>stemobservation</tablename>
58
                                                <userdefinedname>canopyForm</userdefinedname>
59
                                            </userdefined>
60
                                        </userdefined_id>
61
                                        <definedvalue>$canopy_form</definedvalue>
62
                                    </definedvalue>
63
                                    <definedvalue fkey="tablerecord_id">
64
                                        <userdefined_id>
65
                                            <userdefined>
66
                                                <tablename>stemobservation</tablename>
67
                                                <userdefinedname>canopyPosition</userdefinedname>
68
                                            </userdefined>
69
                                        </userdefined_id>
70
                                        <definedvalue>$canopy_position</definedvalue>
71
                                    </definedvalue>
72
                                    <definedvalue fkey="tablerecord_id">
73
                                        <userdefined_id>
74
                                            <userdefined>
75
                                                <tablename>stemobservation</tablename>
76
                                                <userdefinedname>lianaInfestation</userdefinedname>
77
                                            </userdefined>
78
                                        </userdefined_id>
79
                                        <definedvalue>$liana_infestation</definedvalue>
80
                                    </definedvalue>
81
                                    <diameterbreastheight>$temp_dbh</diameterbreastheight>
82
                                    <height>$height_m</height>
83
                                    <heightfirstbranch>$ht_first_branch_m</heightfirstbranch>
84
                                    <stemtag>
85
                                        <iscurrent>
86
                                            <_alt>
87
                                                <2>true</2>
88
                                                <1>false</1>
89
                                            </_alt>
90
                                        </iscurrent>
91
                                        <tag>$tag1</tag>
92
                                    </stemtag>
93
                                    <stemtag>
94
                                        <iscurrent>true</iscurrent>
95
                                        <tag>$tag2</tag>
96
                                    </stemtag>
97
                                    <xposition>$x_position</xposition>
98
                                    <yposition>$y_position</yposition>
99
                                </stemobservation>
100
                            </plantobservation>
101
                        </aggregateoccurrence>
102
                        <authortaxoncode>$Ind</authortaxoncode>
103
                        <growthform>
104
                            <_map>
105
                                <T>tree</T>
106
                                <Arbol>tree</Arbol>
107
                                <palm>tree</palm>
108
                                <H>hemiepiphyte</H>
109
                                <Hemiepífito>hemiepiphyte</Hemiepífito>
110
                                <L>liana</L>
111
                                <l>liana</l>
112
                                <L?>liana</L?>
113
                                <Liana>liana</Liana>
114
                                <E>epiphyte</E>
115
                                <S>shrub</S>
116
                                <Hb>herb</Hb>
117
                                <vine-herbaceous>vine</vine-herbaceous>
118
                                <graminoid>grass</graminoid>
119
                                <rosette>forb</rosette>
120
                                <*>*</*>
121
                                <value>$Habit</value>
122
                            </_map>
123
                        </growthform>
124
                        <sourceaccessioncode>$PlotObsID</sourceaccessioncode>
125
                        <taxondetermination>
126
                            <plantconcept_id>
127
                                <plantconcept>
128
                                    <plantname_id>
129
                                        <_simplifyPath>
130
                                            <next>parent_id</next>
131
                                            <path>
132 132
                                                <plantname>
133
                                                    <rank>authority</rank>
134
                                                    <plantname>$auth</plantname>
133
                                                    <rank>binomial</rank>
135 134
                                                    <parent_id>
136 135
                                                        <plantname>
137
                                                            <rank>subspecies</rank>
138
                                                            <plantname>
139
                                                                <_name>
140
                                                                    <first>$infra_rank_1</first>
141
                                                                    <last>$infra_ep_1</last>
142
                                                                </_name>
143
                                                            </plantname>
136
                                                            <rank>authority</rank>
137
                                                            <plantname>$auth</plantname>
144 138
                                                            <parent_id>
145 139
                                                                <plantname>
146
                                                                    <rank>species</rank>
147
                                                                    <plantname>$Species</plantname>
140
                                                                    <rank>subspecies</rank>
141
                                                                    <plantname>
142
                                                                        <_name>
143
                                                                            <first>$infra_rank_1</first>
144
                                                                            <last>$infra_ep_1</last>
145
                                                                        </_name>
146
                                                                    </plantname>
148 147
                                                                    <parent_id>
149 148
                                                                        <plantname>
150
                                                                            <rank>genus</rank>
151
                                                                            <plantname>$Genus</plantname>
149
                                                                            <rank>species</rank>
150
                                                                            <plantname>$Species</plantname>
152 151
                                                                            <parent_id>
153 152
                                                                                <plantname>
154
                                                                                    <rank>family</rank>
155
                                                                                    <plantname>$Family</plantname>
153
                                                                                    <rank>genus</rank>
154
                                                                                    <plantname>$Genus</plantname>
155
                                                                                    <parent_id>
156
                                                                                        <plantname>
157
                                                                                            <rank>family</rank>
158
                                                                                            <plantname>$Family</plantname>
159
                                                                                        </plantname>
160
                                                                                    </parent_id>
156 161
                                                                                </plantname>
157 162
                                                                            </parent_id>
158 163
                                                                        </plantname>
......
162 167
                                                        </plantname>
163 168
                                                    </parent_id>
164 169
                                                </plantname>
165
                                            </parent_id>
166
                                        </plantname>
167
                                    </path>
168
                                </_simplifyPath>
169
                            </plantname_id>
170
                        </plantconcept>
171
                    </plantconcept_id>
172
                    <taxonfit>$cfaff</taxonfit>
173
                </taxondetermination>
174
                <taxondetermination>
175
                    <isoriginal>true</isoriginal>
176
                    <plantconcept_id>
177
                        <plantconcept>
178
                            <plantname_id>
179
                                <_simplifyPath>
180
                                    <next>parent_id</next>
181
                                    <path>
182
                                        <plantname>
183
                                            <rank>binomial</rank>
184
                                            <parent_id>
170
                                            </path>
171
                                        </_simplifyPath>
172
                                    </plantname_id>
173
                                </plantconcept>
174
                            </plantconcept_id>
175
                            <taxonfit>$cfaff</taxonfit>
176
                        </taxondetermination>
177
                        <taxondetermination>
178
                            <isoriginal>true</isoriginal>
179
                            <plantconcept_id>
180
                                <plantconcept>
181
                                    <plantname_id>
182
                                        <_simplifyPath>
183
                                            <next>parent_id</next>
184
                                            <path>
185 185
                                                <plantname>
186
                                                    <rank>authority</rank>
186
                                                    <rank>binomial</rank>
187 187
                                                    <parent_id>
188 188
                                                        <plantname>
189
                                                            <rank>subspecies</rank>
189
                                                            <rank>authority</rank>
190 190
                                                            <parent_id>
191 191
                                                                <plantname>
192
                                                                    <rank>species</rank>
193
                                                                    <plantname>$OrigSpecies</plantname>
192
                                                                    <rank>subspecies</rank>
194 193
                                                                    <parent_id>
195 194
                                                                        <plantname>
196
                                                                            <rank>genus</rank>
197
                                                                            <plantname>$OrigGenus</plantname>
195
                                                                            <rank>species</rank>
196
                                                                            <plantname>$OrigSpecies</plantname>
198 197
                                                                            <parent_id>
199 198
                                                                                <plantname>
200
                                                                                    <rank>family</rank>
201
                                                                                    <plantname>$OrigFamily</plantname>
199
                                                                                    <rank>genus</rank>
200
                                                                                    <plantname>$OrigGenus</plantname>
201
                                                                                    <parent_id>
202
                                                                                        <plantname>
203
                                                                                            <rank>family</rank>
204
                                                                                            <plantname>$OrigFamily</plantname>
205
                                                                                        </plantname>
206
                                                                                    </parent_id>
202 207
                                                                                </plantname>
203 208
                                                                            </parent_id>
204 209
                                                                        </plantname>
......
208 213
                                                        </plantname>
209 214
                                                    </parent_id>
210 215
                                                </plantname>
211
                                            </parent_id>
212
                                        </plantname>
213
                                    </path>
214
                                </_simplifyPath>
215
                            </plantname_id>
216
                        </plantconcept>
217
                    </plantconcept_id>
218
                </taxondetermination>
219
                <verbatimcollectorname>
220
                    <_name>
221
                        <first>$coll_firstname</first>
222
                        <last>$coll_lastname</last>
223
                    </_name>
224
                </verbatimcollectorname>
225
                <voucher>
226
                    <specimenreplicate_id>
227
                        <specimenreplicate>
228
                            <catalognumber_dwc>
229
                                <_if name="if indirect voucher">
230
                                    <cond>
231
                                        <_eq>
232
                                            <right>indirect</right>
233
                                            <left>$DetType</left>
234
                                        </_eq>
235
                                    </cond>
236
                                    <then>
237
                                        <_alt>
238
                                            <1>$coll_number</1>
239
                                            <2>$SourceVoucher</2>
240
                                        </_alt>
241
                                    </then>
242
                                </_if>
243
                            </catalognumber_dwc>
244
                        </specimenreplicate>
245
                    </specimenreplicate_id>
246
                </voucher>
247
            </taxonoccurrence>
248
        </locationevent>
249
    </location>
216
                                            </path>
217
                                        </_simplifyPath>
218
                                    </plantname_id>
219
                                </plantconcept>
220
                            </plantconcept_id>
221
                        </taxondetermination>
222
                        <verbatimcollectorname>
223
                            <_name>
224
                                <first>$coll_firstname</first>
225
                                <last>$coll_lastname</last>
226
                            </_name>
227
                        </verbatimcollectorname>
228
                        <voucher>
229
                            <specimenreplicate_id>
230
                                <specimenreplicate>
231
                                    <catalognumber_dwc>
232
                                        <_if name="if indirect voucher">
233
                                            <cond>
234
                                                <_eq>
235
                                                    <right>indirect</right>
236
                                                    <left>$DetType</left>
237
                                                </_eq>
238
                                            </cond>
239
                                            <then>
240
                                                <_alt>
241
                                                    <1>$coll_number</1>
242
                                                    <2>$SourceVoucher</2>
243
                                                </_alt>
244
                                            </then>
245
                                        </_if>
246
                                    </catalognumber_dwc>
247
                                </specimenreplicate>
248
                            </specimenreplicate_id>
249
                        </voucher>
250
                    </taxonoccurrence>
251
                </locationevent>
252
            </location>
253
        </path>
254
    </_simplifyPath>
250 255
</VegBIEN>
251 256
Inserted 42 new rows into database
inputs/ARIZ/Specimen/test.xml.ref
1 1
Put template:
2 2
<VegBIEN>
3
    <location id="-1">
4
        <authorlocationcode>
5
            <_alt>
6
                <1>$GlobalUniqueIdentifier</1>
7
                <2>
8
                    <_join>
9
                        <1>$InstitutionCode</1>
10
                        <2>$CollectionCode</2>
11
                        <3>
12
                            <_alt>
13
                                <1>$CatalogNumberNumeric</1>
14
                                <2>$CatalogNumber</2>
15
                            </_alt>
16
                        </3>
17
                    </_join>
18
                </2>
19
            </_alt>
20
        </authorlocationcode>
21
        <elevation>
22
            <_alt>
23
                <1>
24
                    <_replace>
25
                        <\bca\.?></\bca\.?>
26
                        <value>$VerbatimElevation</value>
27
                    </_replace>
28
                </1>
29
                <2>
30
                    <_avg>
31
                        <max>
3
    <_simplifyPath id="-1">
4
        <next>parent_id</next>
5
        <path>
6
            <location>
7
                <authorlocationcode>
8
                    <_alt>
9
                        <1>$GlobalUniqueIdentifier</1>
10
                        <2>
11
                            <_join>
12
                                <1>$InstitutionCode</1>
13
                                <2>$CollectionCode</2>
14
                                <3>
15
                                    <_alt>
16
                                        <1>$CatalogNumberNumeric</1>
17
                                        <2>$CatalogNumber</2>
18
                                    </_alt>
19
                                </3>
20
                            </_join>
21
                        </2>
22
                    </_alt>
23
                </authorlocationcode>
24
                <elevation>
25
                    <_alt>
26
                        <1>
27
                            <_replace>
28
                                <\bca\.?></\bca\.?>
29
                                <value>$VerbatimElevation</value>
30
                            </_replace>
31
                        </1>
32
                        <2>
33
                            <_avg>
34
                                <max>
35
                                    <_units>
36
                                        <default>m</default>
37
                                        <to>m</to>
38
                                        <to></to>
39
                                        <value>
40
                                            <_replace>
41
                                                <\bca\.?></\bca\.?>
42
                                                <value>$MaximumElevationInMeters</value>
43
                                            </_replace>
44
                                        </value>
45
                                    </_units>
46
                                </max>
47
                                <min>
48
                                    <_units>
49
                                        <default>m</default>
50
                                        <to>m</to>
51
                                        <to></to>
52
                                        <value>
53
                                            <_rangeStart>
54
                                                <value>
55
                                                    <_replace>
56
                                                        <\bca\.?></\bca\.?>
57
                                                        <value>$MinimumElevationInMeters</value>
58
                                                    </_replace>
59
                                                </value>
60
                                            </_rangeStart>
61
                                        </value>
62
                                    </_units>
63
                                </min>
64
                            </_avg>
65
                        </2>
66
                    </_alt>
67
                </elevation>
68
                <elevationrange>
69
                    <_range>
70
                        <from>
32 71
                            <_units>
33 72
                                <default>m</default>
34 73
                                <to>m</to>
35 74
                                <to></to>
36 75
                                <value>
37
                                    <_replace>
38
                                        <\bca\.?></\bca\.?>
39
                                        <value>$MaximumElevationInMeters</value>
40
                                    </_replace>
41
                                </value>
42
                            </_units>
43
                        </max>
44
                        <min>
45
                            <_units>
46
                                <default>m</default>
47
                                <to>m</to>
48
                                <to></to>
49
                                <value>
50 76
                                    <_rangeStart>
51 77
                                        <value>
52 78
                                            <_replace>
......
57 83
                                    </_rangeStart>
58 84
                                </value>
59 85
                            </_units>
60
                        </min>
61
                    </_avg>
62
                </2>
63
            </_alt>
64
        </elevation>
65
        <elevationrange>
66
            <_range>
67
                <from>
68
                    <_units>
69
                        <default>m</default>
70
                        <to>m</to>
71
                        <to></to>
72
                        <value>
73
                            <_rangeStart>
86
                        </from>
87
                        <to>
88
                            <_units>
89
                                <default>m</default>
90
                                <to>m</to>
91
                                <to></to>
74 92
                                <value>
75
                                    <_replace>
76
                                        <\bca\.?></\bca\.?>
77
                                        <value>$MinimumElevationInMeters</value>
78
                                    </_replace>
79
                                </value>
80
                            </_rangeStart>
81
                        </value>
82
                    </_units>
83
                </from>
84
                <to>
85
                    <_units>
86
                        <default>m</default>
87
                        <to>m</to>
88
                        <to></to>
89
                        <value>
90
                            <_alt>
91
                                <1>
92
                                    <_replace>
93
                                        <\bca\.?></\bca\.?>
94
                                        <value>$MaximumElevationInMeters</value>
95
                                    </_replace>
96
                                </1>
97
                                <2>
98
                                    <_rangeEnd>
99
                                        <value>
93
                                    <_alt>
94
                                        <1>
100 95
                                            <_replace>
101 96
                                                <\bca\.?></\bca\.?>
102
                                                <value>$MinimumElevationInMeters</value>
97
                                                <value>$MaximumElevationInMeters</value>
103 98
                                            </_replace>
104
                                        </value>
105
                                    </_rangeEnd>
106
                                </2>
107
                            </_alt>
108
                        </value>
109
                    </_units>
110
                </to>
111
            </_range>
112
        </elevationrange>
113
        <locationdetermination>
114
            <coordsaccuracy><_noCV><value>$CoordinateUncertaintyInMeters</value></_noCV></coordsaccuracy>
115
            <footprintgeometry_dwc>$BoundingBox</footprintgeometry_dwc>
116
            <latitude>
117
                <_alt>
118
                    <1>
119
                        <_nullIf>
120
                            <null>0</null>
121
                            <type>float</type>
122
                            <value>$DecimalLatitude</value>
123
                        </_nullIf>
124
                    </1>
125
                    <2>
126
                        <_nullIf>
127
                            <null>0</null>
128
                            <type>float</type>
129
                            <value>$VerbatimLatitude</value>
130
                        </_nullIf>
131
                    </2>
132
                </_alt>
133
            </latitude>
134
            <longitude>
135
                <_alt>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff