Project

General

Profile

« Previous | Next » 

Revision 5861

mappings/VegCore-VegBIEN.csv: Remapped latitude/longitude to new coordinates table

View differences:

inputs/XAL/Specimen/VegBIEN.csv
5 5
darwin:CatalogNumber,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_if[@name=""if catalogNumber""]/then/_join/3/_if[@name=""if indirect voucher""]/else",
6 6
darwin:MaximumElevation,/location/elevation_m/_alt/2/_avg/max,
7 7
darwin:MinimumElevation,/location/elevation_m/_alt/2/_avg/min,
8
darwin:CoordinatePrecision,/location/locationcoords/coordsaccuracy_deg/_noCV/value/_alt/2,
9
darwin:Latitude,"/location/locationcoords/latitude_deg/_nullIf:[null=0,type=float]/value",
10
darwin:Longitude,"/location/locationcoords/longitude_deg/_nullIf:[null=0,type=float]/value",
11 8
darwin:DayCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/day/_nullIf:[null=0,type=float]/value",
12 9
darwin:MonthCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/month/_nullIf:[null=0,type=float]/value",
13 10
darwin:YearCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/year/_nullIf:[null=0,type=float]/value",
......
60 57
darwin:MaximumDepth,/location/locationevent/waterdepth_m/_avg/max,
61 58
darwin:MinimumDepth,/location/locationevent/waterdepth_m/_avg/min,
62 59
darwin:Locality,/location/locationnarrative/_merge/1,
60
darwin:CoordinatePrecision,/location/locationplace/*_id/place/*_id/coordinates/coordsaccuracy_deg/_noCV/value/_alt/2,
61
darwin:Latitude,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value",
62
darwin:Longitude,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value",
63 63
darwin:ContinentOcean,/location/locationplace/*_id/place/continent,
64 64
darwin:Country,/location/locationplace/*_id/place/country,
65 65
darwin:County,/location/locationplace/*_id/place/county,
inputs/TEAM/VL/VegBIEN.csv
4 4
Id,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/1",
5 5
1ha Plot Number,"/location/_if[@name=""if subplot""]/then/parent_id/location/authorlocationcode",
6 6
Subplot Number,/location/authorlocationcode,
7
Latitude,"/location/locationcoords/latitude_deg/_nullIf:[null=0,type=float]/value",
8
Longitude,"/location/locationcoords/longitude_deg/_nullIf:[null=0,type=float]/value",
9 7
Method,/location/locationevent/*_id/method/name,
10 8
Site Name,/location/locationevent/*_id/project/projectname,
11 9
Subplot Number,"/location/locationevent/_if[@name=""if subplot""]/cond/_exists",
......
35 33
Genus,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/genus,
36 34
Species,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/specific_epithet,
37 35
Names of Collectors,/location/locationevent/taxonoccurrence/verbatimcollectorname,
36
Latitude,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value",
37
Longitude,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value",
38 38
Subplot Number,"/location/sourceaccessioncode/_join/1/_if[@name=""if subplot and unique only within parent""]/cond/_exists",
39 39
1ha Plot Number,"/location/sourceaccessioncode/_join/1/_if[@name=""if subplot and unique only within parent""]/then/_first/2",
40 40
Subplot Number,/location/sourceaccessioncode/_join/2,
inputs/TEAM/VL/test.xml.ref
6 6
            <location>
7 7
                <parent_id><location><authorlocationcode>$1ha Plot Number</authorlocationcode></location></parent_id>
8 8
                <authorlocationcode>$Subplot Number</authorlocationcode>
9
                <locationcoords>
10
                    <latitude_deg>
11
                        <_nullIf>
12
                            <null>0</null>
13
                            <type>float</type>
14
                            <value>$Latitude</value>
15
                        </_nullIf>
16
                    </latitude_deg>
17
                    <longitude_deg>
18
                        <_nullIf>
19
                            <null>0</null>
20
                            <type>float</type>
21
                            <value>$Longitude</value>
22
                        </_nullIf>
23
                    </longitude_deg>
24
                </locationcoords>
25 9
                <locationevent>
26 10
                    <method_id><method><name>$Method</name></method></method_id>
27 11
                    <project_id><project><projectname>$Site Name</projectname></project></project_id>
......
131 115
                        <verbatimcollectorname>$Names of Collectors</verbatimcollectorname>
132 116
                    </taxonoccurrence>
133 117
                </locationevent>
118
                <locationplace>
119
                    <place_id>
120
                        <place>
121
                            <coordinates_id>
122
                                <coordinates>
123
                                    <latitude_deg>
124
                                        <_nullIf>
125
                                            <null>0</null>
126
                                            <type>float</type>
127
                                            <value>$Latitude</value>
128
                                        </_nullIf>
129
                                    </latitude_deg>
130
                                    <longitude_deg>
131
                                        <_nullIf>
132
                                            <null>0</null>
133
                                            <type>float</type>
134
                                            <value>$Longitude</value>
135
                                        </_nullIf>
136
                                    </longitude_deg>
137
                                </coordinates>
138
                            </coordinates_id>
139
                        </place>
140
                    </place_id>
141
                </locationplace>
134 142
                <sourceaccessioncode>
135 143
                    <_join>
136 144
                        <1>$1ha Plot Number</1>
......
141 149
        </path>
142 150
    </_simplifyPath>
143 151
</VegBIEN>
144
Inserted 34 new rows into database
152
Inserted 32 new rows into database
inputs/TEAM/VT/VegBIEN.csv
4 4
Id,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/1",
5 5
1ha Plot Number,"/location/_if[@name=""if subplot""]/then/parent_id/location/authorlocationcode",
6 6
Subplot Number,/location/authorlocationcode,
7
Latitude,"/location/locationcoords/latitude_deg/_nullIf:[null=0,type=float]/value",
8
Longitude,"/location/locationcoords/longitude_deg/_nullIf:[null=0,type=float]/value",
9 7
Spatial Method,/location/locationevent/*_id/method/name,
10 8
Site Name,/location/locationevent/*_id/project/projectname,
11 9
Subplot Number,"/location/locationevent/_if[@name=""if subplot""]/cond/_exists",
......
35 33
Genus,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/genus,
36 34
Species,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/specific_epithet,
37 35
Names of Collectors,/location/locationevent/taxonoccurrence/verbatimcollectorname,
36
Latitude,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value",
37
Longitude,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value",
38 38
Subplot Number,"/location/sourceaccessioncode/_join/1/_if[@name=""if subplot and unique only within parent""]/cond/_exists",
39 39
1ha Plot Number,"/location/sourceaccessioncode/_join/1/_if[@name=""if subplot and unique only within parent""]/then/_first/2",
40 40
Subplot Number,/location/sourceaccessioncode/_join/2,
inputs/TEAM/VT/test.xml.ref
6 6
            <location>
7 7
                <parent_id><location><authorlocationcode>$1ha Plot Number</authorlocationcode></location></parent_id>
8 8
                <authorlocationcode>$Subplot Number</authorlocationcode>
9
                <locationcoords>
10
                    <latitude_deg>
11
                        <_nullIf>
12
                            <null>0</null>
13
                            <type>float</type>
14
                            <value>$Latitude</value>
15
                        </_nullIf>
16
                    </latitude_deg>
17
                    <longitude_deg>
18
                        <_nullIf>
19
                            <null>0</null>
20
                            <type>float</type>
21
                            <value>$Longitude</value>
22
                        </_nullIf>
23
                    </longitude_deg>
24
                </locationcoords>
25 9
                <locationevent>
26 10
                    <method_id><method><name>$Spatial Method</name></method></method_id>
27 11
                    <project_id><project><projectname>$Site Name</projectname></project></project_id>
......
131 115
                        <verbatimcollectorname>$Names of Collectors</verbatimcollectorname>
132 116
                    </taxonoccurrence>
133 117
                </locationevent>
118
                <locationplace>
119
                    <place_id>
120
                        <place>
121
                            <coordinates_id>
122
                                <coordinates>
123
                                    <latitude_deg>
124
                                        <_nullIf>
125
                                            <null>0</null>
126
                                            <type>float</type>
127
                                            <value>$Latitude</value>
128
                                        </_nullIf>
129
                                    </latitude_deg>
130
                                    <longitude_deg>
131
                                        <_nullIf>
132
                                            <null>0</null>
133
                                            <type>float</type>
134
                                            <value>$Longitude</value>
135
                                        </_nullIf>
136
                                    </longitude_deg>
137
                                </coordinates>
138
                            </coordinates_id>
139
                        </place>
140
                    </place_id>
141
                </locationplace>
134 142
                <sourceaccessioncode>
135 143
                    <_join>
136 144
                        <1>$1ha Plot Number</1>
......
141 149
        </path>
142 150
    </_simplifyPath>
143 151
</VegBIEN>
144
Inserted 31 new rows into database
152
Inserted 30 new rows into database
inputs/TEAM/TEAM_Sites/VegBIEN.csv
1 1
TEAM,VegBIEN:/_simplifyPath:[next=parent_id]/path,Comments
2 2
Name,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/1",
3 3
Name,"/location/_if[@name=""if subplot""]/then/parent_id/location/authorlocationcode",
4
Latitude,"/location/locationcoords/latitude_deg/_nullIf:[null=0,type=float]/value",
5
Longitude,"/location/locationcoords/longitude_deg/_nullIf:[null=0,type=float]/value",
6 4
Site Name,/location/locationevent/*_id/project/projectname,
7 5
Name,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if event""]/then/parent_id/locationevent/*_id/location/authorlocationcode",
8 6
CollectionDate,/location/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value,
9 7
CollectionDate,/location/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value,
10 8
Name,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists",
9
Latitude,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value",
10
Longitude,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value",
11 11
Name,"/location/sourceaccessioncode/_join/1/_if[@name=""if subplot and unique only within parent""]/then/_first/2",
12 12
1ha Plot Coordinate,,** No join mapping for *1ha Plot Coordinate ** 
inputs/TEAM/TEAM_Sites/test.xml.ref
5 5
        <path>
6 6
            <location>
7 7
                <authorlocationcode>$Name</authorlocationcode>
8
                <locationcoords>
9
                    <latitude_deg>
10
                        <_nullIf>
11
                            <null>0</null>
12
                            <type>float</type>
13
                            <value>$Latitude</value>
14
                        </_nullIf>
15
                    </latitude_deg>
16
                    <longitude_deg>
17
                        <_nullIf>
18
                            <null>0</null>
19
                            <type>float</type>
20
                            <value>$Longitude</value>
21
                        </_nullIf>
22
                    </longitude_deg>
23
                </locationcoords>
24 8
                <locationevent>
25 9
                    <project_id><project><projectname>$Site Name</projectname></project></project_id>
26 10
                    <obsenddate><_date><date><_dateRangeEnd><value>$CollectionDate</value></_dateRangeEnd></date></_date></obsenddate>
27 11
                    <obsstartdate><_date><date><_dateRangeStart><value>$CollectionDate</value></_dateRangeStart></date></_date></obsstartdate>
28 12
                </locationevent>
13
                <locationplace>
14
                    <place_id>
15
                        <place>
16
                            <coordinates_id>
17
                                <coordinates>
18
                                    <latitude_deg>
19
                                        <_nullIf>
20
                                            <null>0</null>
21
                                            <type>float</type>
22
                                            <value>$Latitude</value>
23
                                        </_nullIf>
24
                                    </latitude_deg>
25
                                    <longitude_deg>
26
                                        <_nullIf>
27
                                            <null>0</null>
28
                                            <type>float</type>
29
                                            <value>$Longitude</value>
30
                                        </_nullIf>
31
                                    </longitude_deg>
32
                                </coordinates>
33
                            </coordinates_id>
34
                        </place>
35
                    </place_id>
36
                </locationplace>
29 37
            </location>
30 38
        </path>
31 39
    </_simplifyPath>
32 40
</VegBIEN>
33
Inserted 8 new rows into database
41
Inserted 12 new rows into database
inputs/NY/Specimen/VegBIEN.csv
6 6
CatalogNumber,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_if[@name=""if catalogNumber""]/then/_join/3/_if[@name=""if indirect voucher""]/else",
7 7
MaximumElevation,/location/elevation_m/_alt/2/_avg/max,
8 8
MinimumElevation,/location/elevation_m/_alt/2/_avg/min/_nullIf:[null=.]/value,
9
CoordinatePrecision,/location/locationcoords/coordsaccuracy_deg/_noCV/value/_alt/2,
10
BoundingBox,/location/locationcoords/footprintgeometry_dwc,
11
Latitude,"/location/locationcoords/latitude_deg/_nullIf:[null=0,type=float]/value",
12
Longitude,"/location/locationcoords/longitude_deg/_nullIf:[null=0,type=float]/value",
13 9
DayCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/day/_nullIf:[null=0,type=float]/value",
14 10
MonthCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/month/_nullIf:[null=0,type=float]/value",
15 11
YearCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/year/_nullIf:[null=0,type=float]/value",
......
68 64
Substrate,"/location/locationnarrative/_merge/1/_join/2/_label[label=""substrate""]/value",
69 65
Vegetation,"/location/locationnarrative/_merge/1/_join/3/_label[label=""vegetation""]/value",
70 66
Habitat,"/location/locationnarrative/_merge/3/_label[label=""habitat""]/value","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
67
CoordinatePrecision,/location/locationplace/*_id/place/*_id/coordinates/coordsaccuracy_deg/_noCV/value/_alt/2,
68
BoundingBox,/location/locationplace/*_id/place/*_id/coordinates/footprintgeometry_dwc,
69
Latitude,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value",
70
Longitude,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value",
71 71
ContinentOcean,/location/locationplace/*_id/place/continent,
72 72
Country,/location/locationplace/*_id/place/country,
73 73
County,/location/locationplace/*_id/place/county,
inputs/NY/Specimen/test.xml.ref
27 27
                        </min>
28 28
                    </_avg>
29 29
                </elevation_m>
30
                <locationcoords>
31
                    <coordsaccuracy_deg><_noCV><value>$CoordinatePrecision</value></_noCV></coordsaccuracy_deg>
32
                    <footprintgeometry_dwc>$BoundingBox</footprintgeometry_dwc>
33
                    <latitude_deg>
34
                        <_nullIf>
35
                            <null>0</null>
36
                            <type>float</type>
37
                            <value>$Latitude</value>
38
                        </_nullIf>
39
                    </latitude_deg>
40
                    <longitude_deg>
41
                        <_nullIf>
42
                            <null>0</null>
43
                            <type>float</type>
44
                            <value>$Longitude</value>
45
                        </_nullIf>
46
                    </longitude_deg>
47
                </locationcoords>
48 30
                <locationevent>
49 31
                    <taxonoccurrence>
50 32
                        <aggregateoccurrence>
......
337 319
                <locationplace>
338 320
                    <place_id>
339 321
                        <place>
322
                            <coordinates_id>
323
                                <coordinates>
324
                                    <coordsaccuracy_deg><_noCV><value>$CoordinatePrecision</value></_noCV></coordsaccuracy_deg>
325
                                    <footprintgeometry_dwc>$BoundingBox</footprintgeometry_dwc>
326
                                    <latitude_deg>
327
                                        <_nullIf>
328
                                            <null>0</null>
329
                                            <type>float</type>
330
                                            <value>$Latitude</value>
331
                                        </_nullIf>
332
                                    </latitude_deg>
333
                                    <longitude_deg>
334
                                        <_nullIf>
335
                                            <null>0</null>
336
                                            <type>float</type>
337
                                            <value>$Longitude</value>
338
                                        </_nullIf>
339
                                    </longitude_deg>
340
                                </coordinates>
341
                            </coordinates_id>
340 342
                            <continent>$ContinentOcean</continent>
341 343
                            <country>$Country</country>
342 344
                            <county>$County</county>
inputs/Madidi/Plot/VegBIEN.csv
57 57
-----
58 58
[2] This map shows both flat and mountainous regions: <https://maps.google.com/maps/ms?ie=UTF8&hl=en&t=h&msa=0&msid=103363035880599665829.00047e9cf84b87448387d&ll=-13.96448,-68.380065&spn=3.730927,4.669189&z=7>"
59 59
Topographical situation,/location/landform,
60
Latitude,"/location/locationcoords/latitude_deg/_nullIf:[null=0,type=float]/value",
61
Longitude,"/location/locationcoords/longitude_deg/_nullIf:[null=0,type=float]/value",
62
Latitude (DMS),/location/locationcoords/verbatimlatitude,
63
Longitude (DMS),/location/locationcoords/verbatimlongitude,
64 60
Expedition name,/location/locationevent/*_id/project/projectname,Consistent (globally unique) between PPM and PT data
65 61
Expedition number,/location/locationevent/*_id/project/sourceaccessioncode,Consistent (globally unique) between PPM and PT data
66 62
Inventory name,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if event""]/then/parent_id/locationevent/*_id/location/authorlocationcode",
......
88 84
Inventory code,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists",
89 85
Inventory name,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists",
90 86
Locality,/location/locationnarrative/_merge/1,
87
Latitude,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value",
88
Longitude,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value",
89
Latitude (DMS),/location/locationplace/*_id/place/*_id/coordinates/verbatimlatitude,
90
Longitude (DMS),/location/locationplace/*_id/place/*_id/coordinates/verbatimlongitude,
91 91
Observaciones,/location/notespublic,
92 92
Direction,/location/slopeaspect_deg/_alt/1/_compass/value/_alt/1,Part files provide either this field or Orientación
93 93
Orientación/exposicion,/location/slopeaspect_deg/_alt/1/_compass/value/_alt/2,Part files provide either this field or Direction
inputs/Madidi/Plot/test.xml.ref
25 25
                    </_range>
26 26
                </elevationrange_m>
27 27
                <landform>$Topographical situation</landform>
28
                <locationcoords>
29
                    <latitude_deg>
30
                        <_nullIf>
31
                            <null>0</null>
32
                            <type>float</type>
33
                            <value>$Latitude</value>
34
                        </_nullIf>
35
                    </latitude_deg>
36
                    <longitude_deg>
37
                        <_nullIf>
38
                            <null>0</null>
39
                            <type>float</type>
40
                            <value>$Longitude</value>
41
                        </_nullIf>
42
                    </longitude_deg>
43
                    <verbatimlatitude>$Latitude (DMS)</verbatimlatitude>
44
                    <verbatimlongitude>$Longitude (DMS)</verbatimlongitude>
45
                </locationcoords>
46 28
                <locationevent>
47 29
                    <project_id>
48 30
                        <project>
......
82 64
                    </soilobs>
83 65
                </locationevent>
84 66
                <locationnarrative>$Locality</locationnarrative>
67
                <locationplace>
68
                    <place_id>
69
                        <place>
70
                            <coordinates_id>
71
                                <coordinates>
72
                                    <latitude_deg>
73
                                        <_nullIf>
74
                                            <null>0</null>
75
                                            <type>float</type>
76
                                            <value>$Latitude</value>
77
                                        </_nullIf>
78
                                    </latitude_deg>
79
                                    <longitude_deg>
80
                                        <_nullIf>
81
                                            <null>0</null>
82
                                            <type>float</type>
83
                                            <value>$Longitude</value>
84
                                        </_nullIf>
85
                                    </longitude_deg>
86
                                    <verbatimlatitude>$Latitude (DMS)</verbatimlatitude>
87
                                    <verbatimlongitude>$Longitude (DMS)</verbatimlongitude>
88
                                </coordinates>
89
                            </coordinates_id>
90
                        </place>
91
                    </place_id>
92
                </locationplace>
85 93
                <notespublic>$Observaciones</notespublic>
86 94
                <slopeaspect_deg>
87 95
                    <_compass>
......
99 107
        </path>
100 108
    </_simplifyPath>
101 109
</VegBIEN>
102
Inserted 19 new rows into database
110
Inserted 23 new rows into database
inputs/ACAD/Specimen/VegBIEN.csv
6 6
collectionID,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_if[@name=""if catalogNumber""]/then/_join/2/_join/2",
7 7
catalogNumber,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_if[@name=""if catalogNumber""]/then/_join/3/_if[@name=""if indirect voucher""]/else",
8 8
verbatimElevation,"/location/elevation_m/_alt/1/_units:[to=m,to=]/value",
9
decimalLatitude,"/location/locationcoords/latitude_deg/_nullIf:[null=0,type=float]/value",
10
decimalLongitude,"/location/locationcoords/longitude_deg/_nullIf:[null=0,type=float]/value",
11 9
eventDate,/location/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value,
12 10
eventDate,/location/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value,
13 11
recordNumber,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/collectionnumber,
......
64 62
catalogNumber,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/then",
65 63
locality,/location/locationnarrative/_merge/1,
66 64
habitat,"/location/locationnarrative/_merge/3/_label[label=""habitat""]/value","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
65
decimalLatitude,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value",
66
decimalLongitude,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value",
67 67
continent,/location/locationplace/*_id/place/continent,
68 68
country,/location/locationplace/*_id/place/country,
69 69
county,/location/locationplace/*_id/place/county,
inputs/ACAD/Specimen/test.xml.ref
28 28
                        <value>$verbatimElevation</value>
29 29
                    </_units>
30 30
                </elevation_m>
31
                <locationcoords>
32
                    <latitude_deg>
33
                        <_nullIf>
34
                            <null>0</null>
35
                            <type>float</type>
36
                            <value>$decimalLatitude</value>
37
                        </_nullIf>
38
                    </latitude_deg>
39
                    <longitude_deg>
40
                        <_nullIf>
41
                            <null>0</null>
42
                            <type>float</type>
43
                            <value>$decimalLongitude</value>
44
                        </_nullIf>
45
                    </longitude_deg>
46
                </locationcoords>
47 31
                <locationevent>
48 32
                    <obsenddate><_date><date><_dateRangeEnd><value>$eventDate</value></_dateRangeEnd></date></_date></obsenddate>
49 33
                    <obsstartdate><_date><date><_dateRangeStart><value>$eventDate</value></_dateRangeStart></date></_date></obsstartdate>
......
251 235
                <locationplace>
252 236
                    <place_id>
253 237
                        <place>
238
                            <coordinates_id>
239
                                <coordinates>
240
                                    <latitude_deg>
241
                                        <_nullIf>
242
                                            <null>0</null>
243
                                            <type>float</type>
244
                                            <value>$decimalLatitude</value>
245
                                        </_nullIf>
246
                                    </latitude_deg>
247
                                    <longitude_deg>
248
                                        <_nullIf>
249
                                            <null>0</null>
250
                                            <type>float</type>
251
                                            <value>$decimalLongitude</value>
252
                                        </_nullIf>
253
                                    </longitude_deg>
254
                                </coordinates>
255
                            </coordinates_id>
254 256
                            <continent>$continent</continent>
255 257
                            <country>$country</country>
256 258
                            <county>$county</county>
inputs/SALVIAS-CSV/Plot/VegBIEN.csv
8 8
elev_m,/location/elevation_m/_alt/1,Brad: Mean elevation in meters. This is a constrained decimal value; is there no place for this in VegX other than verbatimElevation? Check with Nick.
9 9
elev_max_m,/location/elevation_m/_alt/2/_avg/max,
10 10
elev_min_m,/location/elevation_m/_alt/2/_avg/min,
11
lat_decimal,"/location/locationcoords/latitude_deg/_nullIf:[null=0,type=float]/value",
12
long_decimal,"/location/locationcoords/longitude_deg/_nullIf:[null=0,type=float]/value",
13 11
plot_methodology,/location/locationevent/*_id/method/name,
14 12
project,/location/locationevent/*_id/project/projectname,
15 13
plot_code,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if event""]/then/parent_id/locationevent/*_id/location/authorlocationcode",Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)
......
40 38
plot_code,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists",Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)
41 39
temp_c,/location/locationevent/temperature_c,
42 40
locality_description,/location/locationnarrative/_merge/1,"Brad: No; this is free text description of locality where plot was situated, same as for DwC. Not a description of vegetation. Most likely='namedPlace.placeDescription' in VB; not sure about VX, again need to ask Nick where locality descriptions live in VX"
41
lat_decimal,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value",
42
long_decimal,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value",
43 43
major_geo,/location/locationplace/*_id/place/continent,
44 44
country,/location/locationplace/*_id/place/country,
45 45
pol2,/location/locationplace/*_id/place/county,Brad: No pol2=countyParish
inputs/SALVIAS-CSV/Plot/test.xml.ref
18 18
                        </2>
19 19
                    </_alt>
20 20
                </elevation_m>
21
                <locationcoords>
22
                    <latitude_deg>
23
                        <_nullIf>
24
                            <null>0</null>
25
                            <type>float</type>
26
                            <value>$lat_decimal</value>
27
                        </_nullIf>
28
                    </latitude_deg>
29
                    <longitude_deg>
30
                        <_nullIf>
31
                            <null>0</null>
32
                            <type>float</type>
33
                            <value>$long_decimal</value>
34
                        </_nullIf>
35
                    </longitude_deg>
36
                </locationcoords>
37 21
                <locationevent>
38 22
                    <method_id><method><name>$plot_methodology</name></method></method_id>
39 23
                    <project_id><project><projectname>$project</projectname></project></project_id>
......
95 79
                <locationplace>
96 80
                    <place_id>
97 81
                        <place>
82
                            <coordinates_id>
83
                                <coordinates>
84
                                    <latitude_deg>
85
                                        <_nullIf>
86
                                            <null>0</null>
87
                                            <type>float</type>
88
                                            <value>$lat_decimal</value>
89
                                        </_nullIf>
90
                                    </latitude_deg>
91
                                    <longitude_deg>
92
                                        <_nullIf>
93
                                            <null>0</null>
94
                                            <type>float</type>
95
                                            <value>$long_decimal</value>
96
                                        </_nullIf>
97
                                    </longitude_deg>
98
                                </coordinates>
99
                            </coordinates_id>
98 100
                            <continent>$major_geo</continent>
99 101
                            <country>$country</country>
100 102
                            <county>$pol2</county>
......
108 110
        </path>
109 111
    </_simplifyPath>
110 112
</VegBIEN>
111
Inserted 16 new rows into database
113
Inserted 15 new rows into database
inputs/CVS/Organism/VegBIEN.csv
1 1
CVS,VegBIEN:/_simplifyPath:[next=parent_id]/path,Comments
2 2
authorObsCode,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/2/_if[@name=""if locationID""]/else",
3
locationAccuracy-m,/location/locationcoords/coordsaccuracy_deg/_noCV/value/_alt/1,
4
publicLatitude,"/location/locationcoords/latitude_deg/_nullIf:[null=0,type=float]/value",
5
publicLongitude,"/location/locationcoords/longitude_deg/_nullIf:[null=0,type=float]/value",
6 3
authorObsCode,"/location/locationevent/_if[@name=""if subplot""]/else/authoreventcode",
7 4
authorObsCode,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if event""]/cond/_exists",
8 5
authorObsCode,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if event""]/then/parent_id/locationevent/authorlocationcode",
......
13 10
currentTaxonName sec Weakley 2006,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_if[@name=""if has verbatim name""]/else/matched_label_id/taxonlabel:[creator_id/party:[creator_id=0]/organizationname=TNRS]/taxonomicname/_join_words/2/_alt/2/_join_words/1/_alt/1",
14 11
currentTaxonName sec Weakley 2006,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_join_words/2/_alt/2/_join_words/1/_alt/1,
15 12
currentTaxonName sec Weakley 2006,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/binomial,
13
locationAccuracy-m,/location/locationplace/*_id/place/*_id/coordinates/coordsaccuracy_deg/_noCV/value/_alt/1,
14
publicLatitude,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value",
15
publicLongitude,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value",
16 16
county,/location/locationplace/*_id/place/county,
17 17
state,/location/locationplace/*_id/place/stateprovince,
18 18
confidentialityStatus,,** No join mapping for *confidentialityStatus ** 
inputs/CVS/Organism/test.xml.ref
5 5
        <path>
6 6
            <location>
7 7
                <authorlocationcode>$authorObsCode</authorlocationcode>
8
                <locationcoords>
9
                    <coordsaccuracy_deg><_noCV><value>$locationAccuracy-m</value></_noCV></coordsaccuracy_deg>
10
                    <latitude_deg>
11
                        <_nullIf>
12
                            <null>0</null>
13
                            <type>float</type>
14
                            <value>$publicLatitude</value>
15
                        </_nullIf>
16
                    </latitude_deg>
17
                    <longitude_deg>
18
                        <_nullIf>
19
                            <null>0</null>
20
                            <type>float</type>
21
                            <value>$publicLongitude</value>
22
                        </_nullIf>
23
                    </longitude_deg>
24
                </locationcoords>
25 8
                <locationevent>
26 9
                    <authoreventcode>$authorObsCode</authoreventcode>
27 10
                    <obsstartdate><_date><date>$obsStartDate</date></_date></obsstartdate>
......
56 39
                <locationplace>
57 40
                    <place_id>
58 41
                        <place>
42
                            <coordinates_id>
43
                                <coordinates>
44
                                    <coordsaccuracy_deg><_noCV><value>$locationAccuracy-m</value></_noCV></coordsaccuracy_deg>
45
                                    <latitude_deg>
46
                                        <_nullIf>
47
                                            <null>0</null>
48
                                            <type>float</type>
49
                                            <value>$publicLatitude</value>
50
                                        </_nullIf>
51
                                    </latitude_deg>
52
                                    <longitude_deg>
53
                                        <_nullIf>
54
                                            <null>0</null>
55
                                            <type>float</type>
56
                                            <value>$publicLongitude</value>
57
                                        </_nullIf>
58
                                    </longitude_deg>
59
                                </coordinates>
60
                            </coordinates_id>
59 61
                            <county>$county</county>
60 62
                            <stateprovince>$state</stateprovince>
61 63
                        </place>
inputs/REMIB/Specimen/VegBIEN.csv
18 18
GROUP BY acronym, accession_number
19 19
HAVING count(*) > 1
20 20
-----"
21
lat_deg,"/location/locationcoords/latitude_deg/_nullIf:[null=0,type=float]/value",
22
long_deg,"/location/locationcoords/longitude_deg/_nullIf:[null=0,type=float]/value",
23 21
coll_day,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/day/_nullIf:[null=0,type=float]/value",
24 22
coll_month,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/month/_nullIf:[null=0,type=float]/value",
25 23
coll_year,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/year/_nullIf:[null=0,type=float]/value",
......
59 57
-----"
60 58
locality,/location/locationnarrative/_merge/1,
61 59
habitat,"/location/locationnarrative/_merge/3/_label[label=""habitat""]/value","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
60
lat_deg,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value",
61
long_deg,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value",
62 62
country,/location/locationplace/*_id/place/country,
63 63
county,/location/locationplace/*_id/place/county,
64 64
state,/location/locationplace/*_id/place/stateprovince,
inputs/REMIB/Specimen/test.xml.ref
10 10
                        <3>$accession_number</3>
11 11
                    </_join>
12 12
                </authorlocationcode>
13
                <locationcoords>
14
                    <latitude_deg>
15
                        <_nullIf>
16
                            <null>0</null>
17
                            <type>float</type>
18
                            <value>$lat_deg</value>
19
                        </_nullIf>
20
                    </latitude_deg>
21
                    <longitude_deg>
22
                        <_nullIf>
23
                            <null>0</null>
24
                            <type>float</type>
25
                            <value>$long_deg</value>
26
                        </_nullIf>
27
                    </longitude_deg>
28
                </locationcoords>
29 13
                <locationevent>
30 14
                    <taxonoccurrence>
31 15
                        <aggregateoccurrence>
......
165 149
                <locationplace>
166 150
                    <place_id>
167 151
                        <place>
152
                            <coordinates_id>
153
                                <coordinates>
154
                                    <latitude_deg>
155
                                        <_nullIf>
156
                                            <null>0</null>
157
                                            <type>float</type>
158
                                            <value>$lat_deg</value>
159
                                        </_nullIf>
160
                                    </latitude_deg>
161
                                    <longitude_deg>
162
                                        <_nullIf>
163
                                            <null>0</null>
164
                                            <type>float</type>
165
                                            <value>$long_deg</value>
166
                                        </_nullIf>
167
                                    </longitude_deg>
168
                                </coordinates>
169
                            </coordinates_id>
168 170
                            <country>$country</country>
169 171
                            <county>$county</county>
170 172
                            <stateprovince>$state</stateprovince>
......
175 177
        </path>
176 178
    </_simplifyPath>
177 179
</VegBIEN>
178
Inserted 27 new rows into database
180
Inserted 26 new rows into database
inputs/CTFS/Plot/VegBIEN.csv
14 14
GROUP BY ""Elevation""::real , ""LocationName""
15 15
ORDER BY ""Elevation""::real DESC
16 16
-----"
17
ShapeOfSite,/location/locationcoords/footprintgeometry_dwc,
18
Latitude,"/location/locationcoords/latitude_deg/_nullIf:[null=0,type=float]/value",
19
Longitude,"/location/locationcoords/longitude_deg/_nullIf:[null=0,type=float]/value",
20 17
PlotName,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if event""]/then/parent_id/locationevent/*_id/location/authorlocationcode",
21 18
PlotID,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if event""]/then/parent_id/locationevent/*_id/location/sourceaccessioncode",
22 19
PlotID,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists",
23 20
PlotName,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists",
24 21
DescriptionOfSite,/location/locationnarrative/_merge/1,
25 22
LocationName,/location/locationnarrative/_merge/1,
23
ShapeOfSite,/location/locationplace/*_id/place/*_id/coordinates/footprintgeometry_dwc,
24
Latitude,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value",
25
Longitude,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value",
26 26
CountryName,/location/locationplace/*_id/place/country,
27 27
PlotID,"/location/sourceaccessioncode/_join/1/_if[@name=""if subplot and unique only within parent""]/then/_first/1",
28 28
PlotName,"/location/sourceaccessioncode/_join/1/_if[@name=""if subplot and unique only within parent""]/then/_first/2",
inputs/CTFS/Plot/test.xml.ref
8 8
                <sourceaccessioncode>$PlotID</sourceaccessioncode>
9 9
                <area_m2><_ha_to_m2><value>$SizeOfSite</value></_ha_to_m2></area_m2>
10 10
                <elevation_m>$Elevation</elevation_m>
11
                <locationcoords>
12
                    <footprintgeometry_dwc>$ShapeOfSite</footprintgeometry_dwc>
13
                    <latitude_deg>
14
                        <_nullIf>
15
                            <null>0</null>
16
                            <type>float</type>
17
                            <value>$Latitude</value>
18
                        </_nullIf>
19
                    </latitude_deg>
20
                    <longitude_deg>
21
                        <_nullIf>
22
                            <null>0</null>
23
                            <type>float</type>
24
                            <value>$Longitude</value>
25
                        </_nullIf>
26
                    </longitude_deg>
27
                </locationcoords>
28 11
                <locationnarrative>
29 12
                    <_alt>
30 13
                        <0>$DescriptionOfSite</0>
31 14
                        <1>$LocationName</1>
32 15
                    </_alt>
33 16
                </locationnarrative>
34
                <locationplace><place_id><place><country>$CountryName</country></place></place_id></locationplace>
17
                <locationplace>
18
                    <place_id>
19
                        <place>
20
                            <coordinates_id>
21
                                <coordinates>
22
                                    <footprintgeometry_dwc>$ShapeOfSite</footprintgeometry_dwc>
23
                                    <latitude_deg>
24
                                        <_nullIf>
25
                                            <null>0</null>
26
                                            <type>float</type>
27
                                            <value>$Latitude</value>
28
                                        </_nullIf>
29
                                    </latitude_deg>
30
                                    <longitude_deg>
31
                                        <_nullIf>
32
                                            <null>0</null>
33
                                            <type>float</type>
34
                                            <value>$Longitude</value>
35
                                        </_nullIf>
36
                                    </longitude_deg>
37
                                </coordinates>
38
                            </coordinates_id>
39
                            <country>$CountryName</country>
40
                        </place>
41
                    </place_id>
42
                </locationplace>
35 43
            </location>
36 44
        </path>
37 45
    </_simplifyPath>
38 46
</VegBIEN>
39
Inserted 8 new rows into database
47
Inserted 9 new rows into database
inputs/FIA/Organism/VegBIEN.csv
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",
5
DecimalLatitude,"/location/locationcoords/latitude_deg/_nullIf:[null=0,type=float]/value",
6
DecimalLongitude,"/location/locationcoords/longitude_deg/_nullIf:[null=0,type=float]/value",
7 5
PlotCD,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if event""]/then/parent_id/locationevent/*_id/location/sourceaccessioncode",
8 6
MeasDay,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/day/_nullIf:[null=0,type=float]/value",
9 7
MeasMon,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/month/_nullIf:[null=0,type=float]/value",
......
25 23
SpecificEpithet,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_join_words/2/_alt/2/_join_words/1/_alt/2/_join_words/3/_join_words/1,
26 24
Genus,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/genus,
27 25
SpecificEpithet,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/specific_epithet,
26
DecimalLatitude,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value",
27
DecimalLongitude,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value",
28 28
County,/location/locationplace/*_id/place/county,
29 29
StateProvince,/location/locationplace/*_id/place/stateprovince,
30 30
PlotCD,"/location/sourceaccessioncode/_join/1/_if[@name=""if subplot and unique only within parent""]/then/_first/1",
inputs/FIA/Organism/test.xml.ref
5 5
        <path>
6 6
            <location>
7 7
                <sourceaccessioncode>$PlotCD</sourceaccessioncode>
8
                <locationcoords>
9
                    <latitude_deg>
10
                        <_nullIf>
11
                            <null>0</null>
12
                            <type>float</type>
13
                            <value>$DecimalLatitude</value>
14
                        </_nullIf>
15
                    </latitude_deg>
16
                    <longitude_deg>
17
                        <_nullIf>
18
                            <null>0</null>
19
                            <type>float</type>
20
                            <value>$DecimalLongitude</value>
21
                        </_nullIf>
22
                    </longitude_deg>
23
                </locationcoords>
24 8
                <locationevent>
25 9
                    <taxonoccurrence>
26 10
                        <aggregateoccurrence>
......
134 118
                <locationplace>
135 119
                    <place_id>
136 120
                        <place>
121
                            <coordinates_id>
122
                                <coordinates>
123
                                    <latitude_deg>
124
                                        <_nullIf>
125
                                            <null>0</null>
126
                                            <type>float</type>
127
                                            <value>$DecimalLatitude</value>
128
                                        </_nullIf>
129
                                    </latitude_deg>
130
                                    <longitude_deg>
131
                                        <_nullIf>
132
                                            <null>0</null>
133
                                            <type>float</type>
134
                                            <value>$DecimalLongitude</value>
135
                                        </_nullIf>
136
                                    </longitude_deg>
137
                                </coordinates>
138
                            </coordinates_id>
137 139
                            <county>$County</county>
138 140
                            <stateprovince>$StateProvince</stateprovince>
139 141
                        </place>
inputs/SALVIAS/plotMetadata/VegBIEN.csv
8 8
Elev,/location/elevation_m/_alt/1,Brad: Mean elevation in meters. This is a constrained decimal value; is there no place for this in VegX other than verbatimElevation? Check with Nick.
9 9
elev_max_m,/location/elevation_m/_alt/2/_avg/max,
10 10
elev_min_m,/location/elevation_m/_alt/2/_avg/min,
11
LatDec,"/location/locationcoords/latitude_deg/_nullIf:[null=0,type=float]/value",
12
LongDec,"/location/locationcoords/longitude_deg/_nullIf:[null=0,type=float]/value",
13 11
PlotMethod,/location/locationevent/*_id/method/name,
14 12
project_id,/location/locationevent/*_id/project/sourceaccessioncode,
15 13
SiteCode,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if event""]/then/parent_id/locationevent/*_id/location/authorlocationcode",Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)
......
41 39
Temp,/location/locationevent/temperature_c,
42 40
Locality_Description,/location/locationnarrative/_merge/1,"Brad: No; this is free text description of locality where plot was situated, same as for DwC. Not a description of vegetation. Most likely='namedPlace.placeDescription' in VB; not sure about VX, again need to ask Nick where locality descriptions live in VX"
43 41
Habitat,"/location/locationnarrative/_merge/3/_label[label=""habitat""]/value","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
42
LatDec,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value",
43
LongDec,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value",
44 44
MajorGeo,/location/locationplace/*_id/place/continent,
45 45
Country,/location/locationplace/*_id/place/country,
46 46
pol2,/location/locationplace/*_id/place/county,Brad: No pol2=countyParish
inputs/SALVIAS/plotMetadata/test.xml.ref
18 18
                        </2>
19 19
                    </_alt>
20 20
                </elevation_m>
21
                <locationcoords>
22
                    <latitude_deg>
23
                        <_nullIf>
24
                            <null>0</null>
25
                            <type>float</type>
26
                            <value>$LatDec</value>
27
                        </_nullIf>
28
                    </latitude_deg>
29
                    <longitude_deg>
30
                        <_nullIf>
31
                            <null>0</null>
32
                            <type>float</type>
33
                            <value>$LongDec</value>
34
                        </_nullIf>
35
                    </longitude_deg>
36
                </locationcoords>
37 21
                <locationevent>
38 22
                    <method_id><method><name>$PlotMethod</name></method></method_id>
39 23
                    <project_id><project><sourceaccessioncode>$project_id</sourceaccessioncode></project></project_id>
......
105 89
                <locationplace>
106 90
                    <place_id>
107 91
                        <place>
92
                            <coordinates_id>
93
                                <coordinates>
94
                                    <latitude_deg>
95
                                        <_nullIf>
96
                                            <null>0</null>
97
                                            <type>float</type>
98
                                            <value>$LatDec</value>
99
                                        </_nullIf>
100
                                    </latitude_deg>
101
                                    <longitude_deg>
102
                                        <_nullIf>
103
                                            <null>0</null>
104
                                            <type>float</type>
105
                                            <value>$LongDec</value>
106
                                        </_nullIf>
107
                                    </longitude_deg>
108
                                </coordinates>
109
                            </coordinates_id>
108 110
                            <continent>$MajorGeo</continent>
109 111
                            <country>$Country</country>
110 112
                            <county>$pol2</county>
inputs/U/Specimen/test.xml.ref
10 10
                        <2>$Barcode</2>
11 11
                    </_alt>
12 12
                </authorlocationcode>
13
                <locationcoords>
14
                    <latitude_deg>
15
                        <_nullIf>
16
                            <null>0</null>
17
                            <type>float</type>
18
                            <value>$Lat</value>
19
                        </_nullIf>
20
                    </latitude_deg>
21
                    <longitude_deg>
22
                        <_nullIf>
23
                            <null>0</null>
24
                            <type>float</type>
25
                            <value>$Long</value>
26
                        </_nullIf>
27
                    </longitude_deg>
28
                </locationcoords>
29 13
                <locationevent>
30 14
                    <taxonoccurrence>
31 15
                        <aggregateoccurrence>
......
203 187
                        </3>
204 188
                    </_merge>
205 189
                </locationnarrative>
206
                <locationplace><place_id><place><country>$Country</country></place></place_id></locationplace>
190
                <locationplace>
191
                    <place_id>
192
                        <place>
193
                            <coordinates_id>
194
                                <coordinates>
195
                                    <latitude_deg>
196
                                        <_nullIf>
197
                                            <null>0</null>
198
                                            <type>float</type>
199
                                            <value>$Lat</value>
200
                                        </_nullIf>
201
                                    </latitude_deg>
202
                                    <longitude_deg>
203
                                        <_nullIf>
204
                                            <null>0</null>
205
                                            <type>float</type>
206
                                            <value>$Long</value>
207
                                        </_nullIf>
208
                                    </longitude_deg>
209
                                </coordinates>
210
                            </coordinates_id>
211
                            <country>$Country</country>
212
                        </place>
213
                    </place_id>
214
                </locationplace>
207 215
            </location>
208 216
        </path>
209 217
    </_simplifyPath>
210 218
</VegBIEN>
211
Inserted 32 new rows into database
219
Inserted 31 new rows into database
inputs/ARIZ/Specimen/test.xml.ref
27 27
                        <min>$MinimumElevationInMeters</min>
28 28
                    </_avg>
29 29
                </elevation_m>
30
                <locationcoords>
31
                    <coordsaccuracy_deg><_noCV><value>$CoordinateUncertaintyInMeters</value></_noCV></coordsaccuracy_deg>
32
                    <footprintgeometry_dwc>$BoundingBox</footprintgeometry_dwc>
33
                    <latitude_deg>
34
                        <_nullIf>
35
                            <null>0</null>
36
                            <type>float</type>
37
                            <value>$DecimalLatitude</value>
38
                        </_nullIf>
39
                    </latitude_deg>
40
                    <longitude_deg>
41
                        <_nullIf>
42
                            <null>0</null>
43
                            <type>float</type>
44
                            <value>$DecimalLongitude</value>
45
                        </_nullIf>
46
                    </longitude_deg>
47
                </locationcoords>
48 30
                <locationevent>
49 31
                    <taxonoccurrence>
50 32
                        <aggregateoccurrence>
......
313 295
                <locationplace>
314 296
                    <place_id>
315 297
                        <place>
298
                            <coordinates_id>
299
                                <coordinates>
300
                                    <coordsaccuracy_deg><_noCV><value>$CoordinateUncertaintyInMeters</value></_noCV></coordsaccuracy_deg>
301
                                    <footprintgeometry_dwc>$BoundingBox</footprintgeometry_dwc>
302
                                    <latitude_deg>
303
                                        <_nullIf>
304
                                            <null>0</null>
305
                                            <type>float</type>
306
                                            <value>$DecimalLatitude</value>
307
                                        </_nullIf>
308
                                    </latitude_deg>
309
                                    <longitude_deg>
310
                                        <_nullIf>
311
                                            <null>0</null>
312
                                            <type>float</type>
313
                                            <value>$DecimalLongitude</value>
314
                                        </_nullIf>
315
                                    </longitude_deg>
316
                                </coordinates>
317
                            </coordinates_id>
316 318
                            <continent>$ContinentOcean</continent>
317 319
                            <country>$Country</country>
318 320
                            <county>$County</county>
......
324 326
        </path>
325 327
    </_simplifyPath>
326 328
</VegBIEN>
327
Inserted 41 new rows into database
329
Inserted 39 new rows into database
inputs/GBIF/Specimen/test.xml.ref
17 17
                        <min>$MinimumElevationInMeter</min>
18 18
                    </_avg>
19 19
                </elevation_m>
20
                <locationcoords>
21
                    <latitude_deg>
22
                        <_nullIf>
23
                            <null>0</null>
24
                            <type>float</type>
25
                            <value>$VerbatimLatitude</value>
26
                        </_nullIf>
27
                    </latitude_deg>
28
                    <longitude_deg>
29
                        <_nullIf>
30
                            <null>0</null>
31
                            <type>float</type>
32
                            <value>$VerbatimLongitude</value>
33
                        </_nullIf>
34
                    </longitude_deg>
35
                </locationcoords>
36 20
                <locationevent>
37 21
                    <taxonoccurrence>
38 22
                        <aggregateoccurrence>
......
258 242
                <locationplace>
259 243
                    <place_id>
260 244
                        <place>
245
                            <coordinates_id>
246
                                <coordinates>
247
                                    <latitude_deg>
248
                                        <_nullIf>
249
                                            <null>0</null>
250
                                            <type>float</type>
251
                                            <value>$VerbatimLatitude</value>
252
                                        </_nullIf>
253
                                    </latitude_deg>
254
                                    <longitude_deg>
255
                                        <_nullIf>
256
                                            <null>0</null>
257
                                            <type>float</type>
258
                                            <value>$VerbatimLongitude</value>
259
                                        </_nullIf>
260
                                    </longitude_deg>
261
                                </coordinates>
262
                            </coordinates_id>
261 263
                            <country>$Country</country>
262 264
                            <county>$County</county>
263 265
                            <stateprovince>$StateProvince</stateprovince>
......
268 270
        </path>
269 271
    </_simplifyPath>
270 272
</VegBIEN>
271
Inserted 43 new rows into database
273
Inserted 41 new rows into database
inputs/NCU-NCSC/Specimen/test.xml.ref
22 22
                        <value>$Elevation</value>
23 23
                    </_units>
24 24
                </elevation_m>
25
                <locationcoords>
26
                    <coordsaccuracy_deg><_noCV><value>$Accuracy</value></_noCV></coordsaccuracy_deg>
27
                    <latitude_deg>
28
                        <_nullIf>
29
                            <null>0</null>
30
                            <type>float</type>
31
                            <value>
32
                                <_replace>
33
                                    <\?$></\?$>
34
                                    <value>$Lat (-=S)</value>
35
                                </_replace>
36
                            </value>
37
                        </_nullIf>
38
                    </latitude_deg>
39
                    <longitude_deg>
40
                        <_nullIf>
41
                            <null>0</null>
42
                            <type>float</type>
43
                            <value>
44
                                <_replace>
45
                                    <\?$></\?$>
46
                                    <value>$Long (-=W)</value>
47
                                </_replace>
48
                            </value>
49
                        </_nullIf>
50
                    </longitude_deg>
51
                </locationcoords>
52 25
                <locationevent>
53 26
                    <taxonoccurrence>
54 27
                        <aggregateoccurrence>
......
91 64
                <locationplace>
92 65
                    <place_id>
93 66
                        <place>
67
                            <coordinates_id>
68
                                <coordinates>
69
                                    <coordsaccuracy_deg><_noCV><value>$Accuracy</value></_noCV></coordsaccuracy_deg>
70
                                    <latitude_deg>
71
                                        <_nullIf>
72
                                            <null>0</null>
73
                                            <type>float</type>
74
                                            <value>
75
                                                <_replace>
76
                                                    <\?$></\?$>
77
                                                    <value>$Lat (-=S)</value>
78
                                                </_replace>
79
                                            </value>
80
                                        </_nullIf>
81
                                    </latitude_deg>
82
                                    <longitude_deg>
83
                                        <_nullIf>
84
                                            <null>0</null>
85
                                            <type>float</type>
86
                                            <value>
87
                                                <_replace>
88
                                                    <\?$></\?$>
89
                                                    <value>$Long (-=W)</value>
90
                                                </_replace>
91
                                            </value>
92
                                        </_nullIf>
93
                                    </longitude_deg>
94
                                </coordinates>
95
                            </coordinates_id>
94 96
                            <country>$Country</country>
95 97
                            <county>$County</county>
96 98
                            <stateprovince>$State</stateprovince>
......
102 104
        </path>
103 105
    </_simplifyPath>
104 106
</VegBIEN>
105
Inserted 28 new rows into database
107
Inserted 26 new rows into database
inputs/bien_web/observation/VegBIEN.csv
4 4
plotCode,"/location/_if[@name=""if subplot""]/then/parent_id/location/authorlocationcode",
5 5
plotAreaHa,/location/area_m2/_ha_to_m2/value,
6 6
elevation_m,/location/elevation_m/_alt/1,
7
latitude,"/location/locationcoords/latitude_deg/_nullIf:[null=0,type=float]/value",
8
longitude,"/location/locationcoords/longitude_deg/_nullIf:[null=0,type=float]/value",
9 7
plotMethod,/location/locationevent/*_id/method/name,
10 8
plotCode,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if event""]/then/parent_id/locationevent/*_id/location/authorlocationcode",
11 9
observationDate,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1/_*/date,
......
39 37
species,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/specific_epithet,
40 38
taxon,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/taxonomicname,
41 39
collector,/location/locationevent/taxonoccurrence/verbatimcollectorname,
40
latitude,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value",
41
longitude,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value",
42 42
country,/location/locationplace/*_id/place/country,
43 43
countyParish,/location/locationplace/*_id/place/county,
44 44
stateProvince,/location/locationplace/*_id/place/stateprovince,
inputs/MO/Specimen/test.xml.ref
17 17
                        <min>$MinimumElevation</min>
18 18
                    </_avg>
19 19
                </elevation_m>
20
                <locationcoords>
21
                    <latitude_deg>
22
                        <_nullIf>
23
                            <null>0</null>
24
                            <type>float</type>
25
                            <value>$latitude</value>
26
                        </_nullIf>
27
                    </latitude_deg>
28
                    <longitude_deg>
29
                        <_nullIf>
30
                            <null>0</null>
31
                            <type>float</type>
32
                            <value>$longitude</value>
33
                        </_nullIf>
34
                    </longitude_deg>
35
                </locationcoords>
36 20
                <locationevent>
37 21
                    <taxonoccurrence>
38 22
                        <aggregateoccurrence>
......
224 208
                <locationplace>
225 209
                    <place_id>
226 210
                        <place>
211
                            <coordinates_id>
212
                                <coordinates>
213
                                    <latitude_deg>
214
                                        <_nullIf>
215
                                            <null>0</null>
216
                                            <type>float</type>
217
                                            <value>$latitude</value>
218
                                        </_nullIf>
219
                                    </latitude_deg>
220
                                    <longitude_deg>
221
                                        <_nullIf>
222
                                            <null>0</null>
223
                                            <type>float</type>
224
                                            <value>$longitude</value>
225
                                        </_nullIf>
226
                                    </longitude_deg>
227
                                </coordinates>
228
                            </coordinates_id>
227 229
                            <continent>$ContinentOcean</continent>
228 230
                            <country>$Country</country>
229 231
                            <county>$County</county>
......
235 237
        </path>
236 238
    </_simplifyPath>
237 239
</VegBIEN>
238
Inserted 36 new rows into database
240
Inserted 34 new rows into database
inputs/QMOR/Specimen/VegBIEN.csv
8 8
verbatimElevation,"/location/elevation_m/_alt/1/_units:[to=m,to=]/value",
9 9
maximumElevationInMeters,/location/elevation_m/_alt/2/_avg/max,
10 10
minimumElevationInMeters,/location/elevation_m/_alt/2/_avg/min,
11
coordinateUncertaintyInMeters,/location/locationcoords/coordsaccuracy_deg/_noCV/value/_alt/1,
12
footprintWKT,/location/locationcoords/footprintgeometry_dwc,
13
decimalLatitude,"/location/locationcoords/latitude_deg/_nullIf:[null=0,type=float]/value",
14
decimalLongitude,"/location/locationcoords/longitude_deg/_nullIf:[null=0,type=float]/value",
15
verbatimLatitude,/location/locationcoords/verbatimlatitude,
16
verbatimLongitude,/location/locationcoords/verbatimlongitude,
17 11
samplingProtocol,/location/locationevent/*_id/method/name,
18 12
eventDate,/location/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value,
19 13
eventDate,/location/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value,
......
72 66
catalogNumber,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/then",
73 67
locality,/location/locationnarrative/_merge/1,
74 68
habitat,"/location/locationnarrative/_merge/3/_label[label=""habitat""]/value","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
69
coordinateUncertaintyInMeters,/location/locationplace/*_id/place/*_id/coordinates/coordsaccuracy_deg/_noCV/value/_alt/1,
70
footprintWKT,/location/locationplace/*_id/place/*_id/coordinates/footprintgeometry_dwc,
71
decimalLatitude,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value",
72
decimalLongitude,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value",
73
verbatimLatitude,/location/locationplace/*_id/place/*_id/coordinates/verbatimlatitude,
74
verbatimLongitude,/location/locationplace/*_id/place/*_id/coordinates/verbatimlongitude,
75 75
continent,/location/locationplace/*_id/place/continent,
76 76
country,/location/locationplace/*_id/place/country,
77 77
county,/location/locationplace/*_id/place/county,
inputs/SpeciesLink/Specimen/test.xml.ref
57 57
                        </min>
58 58
                    </_avg>
59 59
                </elevation_m>
60
                <locationcoords>
61
                    <coordsaccuracy_deg>
62
                        <_noCV>
63
                            <value>
64
                                <_alt>
65
                                    <1>$dwc_terms_coordinateUncertaintyInMeters</1>
66
                                    <2>$conceptual_darwin_2003_1_0_CoordinatePrecision</2>
67
                                </_alt>
68
                            </value>
69
                        </_noCV>
70
                    </coordsaccuracy_deg>
71
                    <footprintgeometry_dwc>$conceptual_darwin_2003_1_0_BoundingBox</footprintgeometry_dwc>
72
                    <latitude_deg>
73
                        <_nullIf>
74
                            <null>0</null>
75
                            <type>float</type>
76
                            <value>
77
                                <_alt>
78
                                    <0>$conceptual_darwin_2003_1_0_Latitude</0>
79
                                    <1>$dwc_geospatial_DecimalLatitude</1>
80
                                    <2>$dwc_terms_decimalLatitude</2>
81
                                </_alt>
82
                            </value>
83
                        </_nullIf>
84
                    </latitude_deg>
85
                    <longitude_deg>
86
                        <_nullIf>
87
                            <null>0</null>
88
                            <type>float</type>
89
                            <value>
90
                                <_alt>
91
                                    <0>$conceptual_darwin_2003_1_0_Longitude</0>
92
                                    <1>$dwc_geospatial_DecimalLongitude</1>
93
                                    <2>$dwc_terms_decimalLongitude</2>
94
                                </_alt>
95
                            </value>
96
                        </_nullIf>
97
                    </longitude_deg>
98
                    <verbatimlatitude>
99
                        <_alt>
100
                            <0>$dwc_geospatial_VerbatimLatitude</0>
101
                            <1>$dwc_terms_verbatimLatitude</1>
102
                        </_alt>
103
                    </verbatimlatitude>
104
                    <verbatimlongitude>
105
                        <_alt>
106
                            <0>$dwc_geospatial_VerbatimLongitude</0>
107
                            <1>$dwc_terms_verbatimLongitude</1>
108
                        </_alt>
109
                    </verbatimlongitude>
110
                </locationcoords>
111 60
                <locationevent>
112 61
                    <taxonoccurrence>
113 62
                        <aggregateoccurrence>
......
633 582
                <locationplace>
634 583
                    <place_id>
635 584
                        <place>
585
                            <coordinates_id>
586
                                <coordinates>
587
                                    <coordsaccuracy_deg>
588
                                        <_noCV>
589
                                            <value>
590
                                                <_alt>
591
                                                    <1>$dwc_terms_coordinateUncertaintyInMeters</1>
592
                                                    <2>$conceptual_darwin_2003_1_0_CoordinatePrecision</2>
593
                                                </_alt>
594
                                            </value>
595
                                        </_noCV>
596
                                    </coordsaccuracy_deg>
597
                                    <footprintgeometry_dwc>$conceptual_darwin_2003_1_0_BoundingBox</footprintgeometry_dwc>
598
                                    <latitude_deg>
599
                                        <_nullIf>
600
                                            <null>0</null>
601
                                            <type>float</type>
602
                                            <value>
603
                                                <_alt>
604
                                                    <0>$conceptual_darwin_2003_1_0_Latitude</0>
605
                                                    <1>$dwc_geospatial_DecimalLatitude</1>
606
                                                    <2>$dwc_terms_decimalLatitude</2>
607
                                                </_alt>
608
                                            </value>
609
                                        </_nullIf>
610
                                    </latitude_deg>
611
                                    <longitude_deg>
612
                                        <_nullIf>
613
                                            <null>0</null>
614
                                            <type>float</type>
615
                                            <value>
616
                                                <_alt>
617
                                                    <0>$conceptual_darwin_2003_1_0_Longitude</0>
618
                                                    <1>$dwc_geospatial_DecimalLongitude</1>
619
                                                    <2>$dwc_terms_decimalLongitude</2>
620
                                                </_alt>
621
                                            </value>
622
                                        </_nullIf>
623
                                    </longitude_deg>
624
                                    <verbatimlatitude>
625
                                        <_alt>
626
                                            <0>$dwc_geospatial_VerbatimLatitude</0>
627
                                            <1>$dwc_terms_verbatimLatitude</1>
628
                                        </_alt>
629
                                    </verbatimlatitude>
630
                                    <verbatimlongitude>
631
                                        <_alt>
632
                                            <0>$dwc_geospatial_VerbatimLongitude</0>
633
                                            <1>$dwc_terms_verbatimLongitude</1>
634
                                        </_alt>
635
                                    </verbatimlongitude>
636
                                </coordinates>
637
                            </coordinates_id>
636 638
                            <continent>
637 639
                                <_alt>
638 640
                                    <0>$conceptual_darwin_2003_1_0_ContinentOcean</0>
inputs/MO/Specimen/VegBIEN.csv
5 5
CatalogNumber,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_if[@name=""if catalogNumber""]/then/_join/3/_if[@name=""if indirect voucher""]/else",
6 6
MaximumElevation,/location/elevation_m/_alt/2/_avg/max,
7 7
MinimumElevation,/location/elevation_m/_alt/2/_avg/min,
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff