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>VegBank</shortname></source></value> |
|
5 | 6 |
<path> |
6 |
<location> |
|
7 |
<authorlocationcode>$authorplotcode</authorlocationcode> |
|
8 |
<sourceaccessioncode>$plot_id</sourceaccessioncode> |
|
9 |
<accesslevel> |
|
10 |
<_map> |
|
11 |
<0>public</0> |
|
12 |
<1>public</1> |
|
13 |
<2>public</2> |
|
14 |
<3>public</3> |
|
15 |
<4>public</4> |
|
16 |
<5>data by request</5> |
|
17 |
<6>private</6> |
|
18 |
<value>$confidentialitystatus</value> |
|
19 |
</_map> |
|
20 |
</accesslevel> |
|
21 |
<area_m2>$area</area_m2> |
|
22 |
<elevation_m>$elevation</elevation_m> |
|
23 |
<landform>$landform</landform> |
|
24 |
<locationnarrative>$locationnarrative</locationnarrative> |
|
25 |
<locationplace> |
|
26 |
<place_id> |
|
27 |
<place> |
|
28 |
<coordinates_id> |
|
29 |
<coordinates> |
|
30 |
<coordsaccuracy_m><_noCV><value>$locationaccuracy</value></_noCV></coordsaccuracy_m> |
|
31 |
<footprintgeometry_dwc>$shape</footprintgeometry_dwc> |
|
32 |
<latitude_deg> |
|
33 |
<_nullIf> |
|
34 |
<null>0</null> |
|
35 |
<type>float</type> |
|
36 |
<value>$latitude</value> |
|
37 |
</_nullIf> |
|
38 |
</latitude_deg> |
|
39 |
<longitude_deg> |
|
40 |
<_nullIf> |
|
41 |
<null>0</null> |
|
42 |
<type>float</type> |
|
43 |
<value>$longitude</value> |
|
44 |
</_nullIf> |
|
45 |
</longitude_deg> |
|
46 |
</coordinates> |
|
47 |
</coordinates_id> |
|
48 |
<continent>$continent</continent> |
|
49 |
<country> |
|
50 |
<_alt> |
|
51 |
<0>$area|country|territory</0> |
|
52 |
<1>$country</1> |
|
53 |
</_alt> |
|
54 |
</country> |
|
55 |
<county>$county</county> |
|
56 |
<matched_place_id> |
|
7 |
<_simplifyPath> |
|
8 |
<next>parent_id</next> |
|
9 |
<path> |
|
10 |
<location> |
|
11 |
<authorlocationcode>$authorplotcode</authorlocationcode> |
|
12 |
<sourceaccessioncode>$plot_id</sourceaccessioncode> |
|
13 |
<accesslevel> |
|
14 |
<_map> |
|
15 |
<0>public</0> |
|
16 |
<1>public</1> |
|
17 |
<2>public</2> |
|
18 |
<3>public</3> |
|
19 |
<4>public</4> |
|
20 |
<5>data by request</5> |
|
21 |
<6>private</6> |
|
22 |
<value>$confidentialitystatus</value> |
|
23 |
</_map> |
|
24 |
</accesslevel> |
|
25 |
<area_m2>$area</area_m2> |
|
26 |
<elevation_m>$elevation</elevation_m> |
|
27 |
<landform>$landform</landform> |
|
28 |
<locationnarrative>$locationnarrative</locationnarrative> |
|
29 |
<locationplace> |
|
30 |
<place_id> |
|
57 | 31 |
<place> |
58 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
59 | 32 |
<coordinates_id> |
60 | 33 |
<coordinates> |
61 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
34 |
<coordsaccuracy_m><_noCV><value>$locationaccuracy</value></_noCV></coordsaccuracy_m> |
|
35 |
<footprintgeometry_dwc>$shape</footprintgeometry_dwc> |
|
62 | 36 |
<latitude_deg> |
63 | 37 |
<_nullIf> |
64 | 38 |
<null>0</null> |
... | ... | |
75 | 49 |
</longitude_deg> |
76 | 50 |
</coordinates> |
77 | 51 |
</coordinates_id> |
52 |
<continent>$continent</continent> |
|
78 | 53 |
<country> |
79 | 54 |
<_alt> |
80 | 55 |
<0>$area|country|territory</0> |
... | ... | |
82 | 57 |
</_alt> |
83 | 58 |
</country> |
84 | 59 |
<county>$county</county> |
60 |
<matched_place_id> |
|
61 |
<place> |
|
62 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
63 |
<coordinates_id> |
|
64 |
<coordinates> |
|
65 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
66 |
<latitude_deg> |
|
67 |
<_nullIf> |
|
68 |
<null>0</null> |
|
69 |
<type>float</type> |
|
70 |
<value>$latitude</value> |
|
71 |
</_nullIf> |
|
72 |
</latitude_deg> |
|
73 |
<longitude_deg> |
|
74 |
<_nullIf> |
|
75 |
<null>0</null> |
|
76 |
<type>float</type> |
|
77 |
<value>$longitude</value> |
|
78 |
</_nullIf> |
|
79 |
</longitude_deg> |
|
80 |
</coordinates> |
|
81 |
</coordinates_id> |
|
82 |
<country> |
|
83 |
<_alt> |
|
84 |
<0>$area|country|territory</0> |
|
85 |
<1>$country</1> |
|
86 |
</_alt> |
|
87 |
</country> |
|
88 |
<county>$county</county> |
|
89 |
<stateprovince> |
|
90 |
<_alt> |
|
91 |
<0>$region|state|province</0> |
|
92 |
<1>$stateprovince</1> |
|
93 |
</_alt> |
|
94 |
</stateprovince> |
|
95 |
</place> |
|
96 |
</matched_place_id> |
|
85 | 97 |
<stateprovince> |
86 | 98 |
<_alt> |
87 | 99 |
<0>$region|state|province</0> |
... | ... | |
89 | 101 |
</_alt> |
90 | 102 |
</stateprovince> |
91 | 103 |
</place> |
92 |
</matched_place_id> |
|
93 |
<stateprovince> |
|
94 |
<_alt> |
|
95 |
<0>$region|state|province</0> |
|
96 |
<1>$stateprovince</1> |
|
97 |
</_alt> |
|
98 |
</stateprovince> |
|
99 |
</place> |
|
100 |
</place_id> |
|
101 |
</locationplace> |
|
102 |
<parent_id><location><sourceaccessioncode>$parent_id</sourceaccessioncode></location></parent_id> |
|
103 |
<slopeaspect_deg> |
|
104 |
<_alt> |
|
105 |
<1><_compass><value>$slopeaspect</value></_compass></1> |
|
106 |
<2> |
|
107 |
<_avg> |
|
108 |
<max>$maxslopeaspect</max> |
|
109 |
<min>$minslopeaspect</min> |
|
110 |
</_avg> |
|
111 |
</2> |
|
112 |
</_alt> |
|
113 |
</slopeaspect_deg> |
|
114 |
<slopegradient_fraction> |
|
115 |
<_alt> |
|
116 |
<1>$slopegradient</1> |
|
117 |
<2> |
|
118 |
<_avg> |
|
119 |
<max>$maxslopegradient</max> |
|
120 |
<min>$minslopegradient</min> |
|
121 |
</_avg> |
|
122 |
</2> |
|
123 |
</_alt> |
|
124 |
</slopegradient_fraction> |
|
125 |
</location> |
|
104 |
</place_id> |
|
105 |
</locationplace> |
|
106 |
<parent_id><location><sourceaccessioncode>$parent_id</sourceaccessioncode></location></parent_id> |
|
107 |
<slopeaspect_deg> |
|
108 |
<_alt> |
|
109 |
<1><_compass><value>$slopeaspect</value></_compass></1> |
|
110 |
<2> |
|
111 |
<_avg> |
|
112 |
<max>$maxslopeaspect</max> |
|
113 |
<min>$minslopeaspect</min> |
|
114 |
</_avg> |
|
115 |
</2> |
|
116 |
</_alt> |
|
117 |
</slopeaspect_deg> |
|
118 |
<slopegradient_fraction> |
|
119 |
<_alt> |
|
120 |
<1>$slopegradient</1> |
|
121 |
<2> |
|
122 |
<_avg> |
|
123 |
<max>$maxslopegradient</max> |
|
124 |
<min>$minslopegradient</min> |
|
125 |
</_avg> |
|
126 |
</2> |
|
127 |
</_alt> |
|
128 |
</slopegradient_fraction> |
|
129 |
</location> |
|
130 |
</path> |
|
131 |
</_simplifyPath> |
|
126 | 132 |
</path> |
127 |
</_simplifyPath>
|
|
133 |
</_setDefault>
|
|
128 | 134 |
</VegBIEN> |
129 | 135 |
Inserted 12 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()