Project

General

Profile

« Previous | Next » 

Revision 4276

Added inputs/CTFS/

View differences:

inputs/CTFS/Plot/src.csv
1
CTFS[Veg+],Veg+,Comments
2
CountryID,,
3
PlotID,,
4
PlotName,,
5
LocationName,,
6
Latitude,,
7
Longitude,,
8
Elevation,,
9
ReferenceX,,
10
ReferenceY,,
11
SizeOfSite,,
12
ShapeOfSite,,
13
DescriptionOfSite,,
14
CountryName,,
15
row_num,,
inputs/CTFS/Plot/header.csv
1
CountryID,PlotID,PlotName,LocationName,Latitude,Longitude,Elevation,ReferenceX,ReferenceY,SizeOfSite,ShapeOfSite,DescriptionOfSite,CountryName,row_num
inputs/CTFS/Plot/map.csv
1
CTFS[Veg+],Veg+,Comments
2
CountryID,,
3
ReferenceX,,Rarely used
4
ReferenceY,,Rarely used
5
row_num,,
inputs/CTFS/Plot/map.full.csv
1
CTFS[Veg+],Veg+,Comments
2
CountryName,CountryName
3
DescriptionOfSite,DescriptionOfSite
4
Elevation,Elevation
5
Latitude,Latitude
6
LocationName,LocationName
7
Longitude,Longitude
8
PlotID,PlotID
9
PlotName,PlotName
10
ShapeOfSite,ShapeOfSite
11
SizeOfSite,SizeOfSite
inputs/CTFS/Plot/VegBIEN.csv
1
CTFS[Veg+],VegBIEN:,Comments
2
SizeOfSite,/location/area,
3
PlotName,"/location/authorlocationcode/_alt/1/_if[@name=""if subplot""]/else",
4
Elevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
5
ShapeOfSite,/location/locationdetermination/footprintgeometry_dwc,
6
Latitude,"/location/locationdetermination/latitude/_alt/2/_nullIf:[null=0,type=float]/value",
7
Longitude,"/location/locationdetermination/longitude/_alt/2/_nullIf:[null=0,type=float]/value",
8
CountryName,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",
9
DescriptionOfSite,/location/locationnarrative/_merge/1,
10
LocationName,/location/locationnarrative/_merge/1,
11
PlotName,"/location/parent_id/location/authorlocationcode/_if[@name=""if subplot""]/then",
12
PlotID,"/location/parent_id/location/sourceaccessioncode/_if[@name=""if subplot""]/then",
13
PlotID,"/location/sourceaccessioncode/_if[@name=""if subplot""]/else",
inputs/CTFS/Plot/test.xml.ref
1
Put template:
2
<VegBIEN>
3
    <location id="-1">
4
        <area>$SizeOfSite</area>
5
        <authorlocationcode>$PlotName</authorlocationcode>
6
        <elevation>
7
            <_replace>
8
                <\bca\.?></\bca\.?>
9
                <value>$Elevation</value>
10
            </_replace>
11
        </elevation>
12
        <locationdetermination>
13
            <footprintgeometry_dwc>$ShapeOfSite</footprintgeometry_dwc>
14
            <latitude>
15
                <_nullIf>
16
                    <null>0</null>
17
                    <type>float</type>
18
                    <value>$Latitude</value>
19
                </_nullIf>
20
            </latitude>
21
            <longitude>
22
                <_nullIf>
23
                    <null>0</null>
24
                    <type>float</type>
25
                    <value>$Longitude</value>
26
                </_nullIf>
27
            </longitude>
28
            <namedplace_id>
29
                <_simplifyPath>
30
                    <next>parent_id/namedplace</next>
31
                    <require>placename</require>
32
                    <path>
33
                        <namedplace>
34
                            <rank>county</rank>
35
                            <parent_id>
36
                                <namedplace>
37
                                    <rank>stateProvince</rank>
38
                                    <parent_id>
39
                                        <namedplace>
40
                                            <rank>country</rank>
41
                                            <placename>$CountryName</placename>
42
                                        </namedplace>
43
                                    </parent_id>
44
                                </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
        <sourceaccessioncode>$PlotID</sourceaccessioncode>
58
    </location>
59
</VegBIEN>
60
Inserted 6 new rows into database

Also available in: Unified diff