-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
executable file
·160 lines (157 loc) · 8.34 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
from pathlib import Path
"""
Config for creation of ISO19139 or ISO19115-3 XML metadata records from PDF reports or online metadata services
(e.g. CKAN, dSpace, geonetwork)
See "CONFIG.md" in root directory for format details
"""
CONFIG = {
##
# Victorian Geological Survey has some PDF reports
'vic': { 'method': 'PDF',
'params': [ { 'name': 'Otway Basin',
'model_endpath': 'otway',
'pdf_file': '../data/reports/vic/G107513_OtwayBasin_3D_notes.pdf',
'pdf_url': 'https://gsv.vic.gov.au/downloader/Downloader?ID=ERPublications/reports/GSV-3d-Vic/G107513_OtwayBasin_3D.pdf',
'organisation': "Geological Survey of Victoria",
'title': "Otway 3D model",
'cutoff': 1000,
'output_file': 'otway_pdf.xml'
},
{ 'name': 'Bendigo',
'model_endpath': 'bendigo',
'pdf_file': '../data/reports/vic/G35615_3DVIC1_pt1.pdf',
'pdf_url': 'https://gsv.vic.gov.au/downloader/Downloader?ID=ERPublications/reports/GSV-3d-Vic/G35615_3DVIC1_pt1.pdf',
'organisation': "Geological Survey of Victoria",
'title': "Bendigo 3D model",
'cutoff': 3000,
'output_file': 'bendigo_pdf.xml'
},
],
},
#
# Use PDF version of academic paper for Uni of Adelaide Stuart Shelf model
'nci': { 'method': 'PDF',
'params': [ { 'name': 'Stuart Shelf',
'model_endpath': 'stuartshelf',
'pdf_file': '../data/reports/nci/Heinson-StuShelf.pdf',
'pdf_url': 'https://www.nature.com/articles/s41598-018-29016-2',
'organisation': 'NCI/University of Adelaide',
'title': 'Stuart Shelf Model',
'cutoff': 3000,
'output_file': 'stuartshelf_pdf.xml'
},
],
},
#
# Geo Survey of QLD has a CKAN repo
'qld': { 'method': 'CKAN',
'params': [ { 'name': 'Quamby',
'model_endpath': 'quamby',
'ckan_url': 'https://geoscience.data.qld.gov.au',
'package_id': 'ds000006',
'output_file': 'quamby_ckan.xml'
},
{ 'name': 'Mt Dore',
'model_endpath': 'mtdore',
'ckan_url': 'https://geoscience.data.qld.gov.au',
'package_id': 'ds000002',
'output_file': 'mtdore_ckan.xml'
}
]
},
#
# SA Geo Survey has a geonetwork with ISO19115-3 records
'sa': { 'method': 'ISO19115-3',
'params': [ { 'name': 'Burra Mine',
'model_endpath': 'burramine',
'metadata_url' :'https://catalog.sarig.sa.gov.au/geonetwork/srv/api/records/37e0f6f0-b9c7-47f0-bbed-482ce35851a4/formatters/xml',
'output_file': 'burra_19115-3.xml'
},
{ 'name': 'Central Flinders',
'model_endpath': 'centralflinders',
'metadata_url' :'https://catalog.sarig.sa.gov.au/geonetwork/srv/api/records/2369469b-4906-4352-9100-632974e0ec04/formatters/xml',
'output_file': 'centralflinders_19115-3.xml'
},
{ 'name': 'North Flinders',
'model_endpath': 'northflinders',
'metadata_url' :'https://catalog.sarig.sa.gov.au/geonetwork/srv/api/records/a86d7379-ca96-4e7d-8e1f-58bfeba9a8f5/formatters/xml',
'output_file': 'northflinders_19115-3.xml'
},
{ 'name': 'North Gawler',
'model_endpath': 'ngawler',
'metadata_url' :'https://catalog.sarig.sa.gov.au/geonetwork/srv/api/records/9c6ae754-291d-4100-afd9-478c3a9ddf42/formatters/xml',
'output_file': 'ngawler_19115-3.xml'
},
{ 'name': 'Curnamona Sedimentary Basins',
'model_endpath': 'curnamonased',
'metadata_url' :'https://catalog.sarig.sa.gov.au/geonetwork/srv/api/records/bda114bc-1eb8-4569-94e5-a9fa1a994645/formatters/xml',
'output_file': 'curnamonased_19115-3.xml'
},
{ 'name': 'Western Gawler',
'model_endpath': 'westgawler',
'metadata_url' :'https://catalog.sarig.sa.gov.au/geonetwork/srv/api/records/13ed6259-1ceb-4728-848f-35e81b502d12/formatters/xml',
'output_file': 'westgawler_19115-3.xml'
}
]
},
#
# SA also has some reports: Burra.pdf CurnamonaSed.pdf
#'sa-test': { 'method': 'PDF',
# 'params': [ { 'name': 'Burra Mine',
# 'model_endpath': 'burramine',
# 'pdf_file': '../data/reports/sa/Burra.pdf',
# 'organisation': 'South Australia Geological Survey',
# 'title': 'Burra Mine Test',
# 'cutoff': 3000,
# 'output_file': 'burra_pdf.xml'
# },
# { 'name': 'Curnamona Sedimentary Basins',
# 'model_endpath': 'curnamonased',
# 'pdf_file': '../data/reports/sa/CurnamonaSed.pdf',
# 'organisation': 'South Australia Geological Survey',
# 'title': 'Curnamona Sed Basins Test',
# 'cutoff': 3000,
# 'output_file': 'curnamonased_pdf.xml'
# },
# ],
#},
#
# NT Geo Survey has ISO19139 records
'nt': { 'method': 'ISO19139',
'params': [ { 'name': 'McArthur Basin',
'model_endpath': 'mcarthur',
'metadata_url': 'http://www.ntlis.nt.gov.au/metadata/export_data?type=xml&metadata_id=1080195AEBC6A054E050CD9B214436A1',
'output_file': 'mcarthur_19139.xml'
}
]
},
#
# NT also has an OAI-PMH interface
'nt2': { 'method': 'OAIPMH',
'params': [ { 'name': 'McArthur Basin',
'model_endpath': 'mcarthur',
'oai_id': 'oai:geoscience.nt.gov.au:1/81751',
'oai_prefix': 'oai_dc',
'service_name': "NTGS GEMIS",
'output_file': 'mcarthur_oai.xml'
}
]
},
#
# Geo Survey of WA has ISO19139 records
'wa': { 'method': 'ISO19139',
'params': [{ 'name': 'Sandstone',
'model_endpath': 'sandstone',
'metadata_url': 'https://warsydprdstadasc.blob.core.windows.net/downloads/Metadata_Statements/XML/3D_Sandstone_2015.xml',
'output_file': 'sandstone_19139.xml'
},
{ 'name': 'Windimurra',
'model_endpath': 'windimurra',
'metadata_url': 'https://warsydprdstadasc.blob.core.windows.net/downloads/Metadata_Statements/XML/3D_Windimurra_2015.xml',
'output_file': 'windimurra_19139.xml'
}
]
}
}
# Currently set to root dir
OUTPUT_DIR = str(Path(__file__).parent / 'output')