@bedrock-engineer/bro-xml-parser 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -12
- package/dist/browser.d.ts +15 -5
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +7 -5
- package/dist/browser.js.map +1 -1
- package/dist/core/columns.d.ts +80 -0
- package/dist/core/columns.d.ts.map +1 -0
- package/dist/core/columns.js +100 -0
- package/dist/core/columns.js.map +1 -0
- package/dist/core/producer.d.ts +216 -0
- package/dist/core/producer.d.ts.map +1 -0
- package/dist/core/producer.js +85 -0
- package/dist/core/producer.js.map +1 -0
- package/dist/core/schema-parser.d.ts +41 -17
- package/dist/core/schema-parser.d.ts.map +1 -1
- package/dist/core/schema-parser.js +178 -73
- package/dist/core/schema-parser.js.map +1 -1
- package/dist/core/version-detector.d.ts +3 -1
- package/dist/core/version-detector.d.ts.map +1 -1
- package/dist/core/version-detector.js +37 -0
- package/dist/core/version-detector.js.map +1 -1
- package/dist/decoders/constants.d.ts +2 -0
- package/dist/decoders/constants.d.ts.map +1 -0
- package/dist/decoders/constants.js +2 -0
- package/dist/decoders/constants.js.map +1 -0
- package/dist/decoders/type-decoders.d.ts +38 -0
- package/dist/decoders/type-decoders.d.ts.map +1 -0
- package/dist/decoders/type-decoders.js +134 -0
- package/dist/decoders/type-decoders.js.map +1 -0
- package/dist/namespaces.d.ts.map +1 -1
- package/dist/namespaces.js +16 -0
- package/dist/namespaces.js.map +1 -1
- package/dist/node.d.ts +15 -5
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +7 -5
- package/dist/node.js.map +1 -1
- package/dist/parser.d.ts +69 -19
- package/dist/parser.d.ts.map +1 -1
- package/dist/parser.js +103 -29
- package/dist/parser.js.map +1 -1
- package/dist/producers.d.ts +36 -0
- package/dist/producers.d.ts.map +1 -0
- package/dist/producers.js +35 -0
- package/dist/producers.js.map +1 -0
- package/dist/resolvers/bhrg-resolvers.d.ts +3 -18
- package/dist/resolvers/bhrg-resolvers.d.ts.map +1 -1
- package/dist/resolvers/bhrg-resolvers.js +294 -41
- package/dist/resolvers/bhrg-resolvers.js.map +1 -1
- package/dist/resolvers/bore-resolver-utils.d.ts +21 -2
- package/dist/resolvers/bore-resolver-utils.d.ts.map +1 -1
- package/dist/resolvers/bore-resolver-utils.js +69 -22
- package/dist/resolvers/bore-resolver-utils.js.map +1 -1
- package/dist/resolvers/bore-resolvers.d.ts +34 -17
- package/dist/resolvers/bore-resolvers.d.ts.map +1 -1
- package/dist/resolvers/bore-resolvers.js +342 -175
- package/dist/resolvers/bore-resolvers.js.map +1 -1
- package/dist/resolvers/cpt-resolvers.d.ts +1 -8
- package/dist/resolvers/cpt-resolvers.d.ts.map +1 -1
- package/dist/resolvers/cpt-resolvers.js +2 -29
- package/dist/resolvers/cpt-resolvers.js.map +1 -1
- package/dist/resolvers/gld-resolvers.d.ts +30 -0
- package/dist/resolvers/gld-resolvers.d.ts.map +1 -0
- package/dist/resolvers/gld-resolvers.js +76 -0
- package/dist/resolvers/gld-resolvers.js.map +1 -0
- package/dist/resolvers/gmw-resolvers.d.ts +37 -0
- package/dist/resolvers/gmw-resolvers.d.ts.map +1 -0
- package/dist/resolvers/gmw-resolvers.js +101 -0
- package/dist/resolvers/gmw-resolvers.js.map +1 -0
- package/dist/resolvers/type-resolvers.d.ts +12 -4
- package/dist/resolvers/type-resolvers.d.ts.map +1 -1
- package/dist/resolvers/type-resolvers.js +12 -4
- package/dist/resolvers/type-resolvers.js.map +1 -1
- package/dist/resolvers.d.ts +5 -2
- package/dist/resolvers.d.ts.map +1 -1
- package/dist/resolvers.js +8 -2
- package/dist/resolvers.js.map +1 -1
- package/dist/schema-presets.d.ts +67 -16
- package/dist/schema-presets.d.ts.map +1 -1
- package/dist/schema-presets.js +51 -114
- package/dist/schema-presets.js.map +1 -1
- package/dist/schemas/bhrg-schema.d.ts +528 -9
- package/dist/schemas/bhrg-schema.d.ts.map +1 -1
- package/dist/schemas/bhrg-schema.js +330 -162
- package/dist/schemas/bhrg-schema.js.map +1 -1
- package/dist/schemas/bhrgt-analysis.d.ts +1057 -0
- package/dist/schemas/bhrgt-analysis.d.ts.map +1 -0
- package/dist/schemas/bhrgt-analysis.js +454 -0
- package/dist/schemas/bhrgt-analysis.js.map +1 -0
- package/dist/schemas/bore-schema.d.ts +773 -9
- package/dist/schemas/bore-schema.d.ts.map +1 -1
- package/dist/schemas/bore-schema.js +344 -257
- package/dist/schemas/bore-schema.js.map +1 -1
- package/dist/schemas/common-fields.d.ts +61 -0
- package/dist/schemas/common-fields.d.ts.map +1 -0
- package/dist/schemas/common-fields.js +82 -0
- package/dist/schemas/common-fields.js.map +1 -0
- package/dist/schemas/cpt-schema.d.ts +126 -9
- package/dist/schemas/cpt-schema.d.ts.map +1 -1
- package/dist/schemas/cpt-schema.js +182 -275
- package/dist/schemas/cpt-schema.js.map +1 -1
- package/dist/schemas/generated/gld.generated.d.ts +9 -0
- package/dist/schemas/generated/gld.generated.d.ts.map +1 -0
- package/dist/schemas/generated/gld.generated.js +19 -0
- package/dist/schemas/generated/gld.generated.js.map +1 -0
- package/dist/schemas/gld-schema.d.ts +92 -0
- package/dist/schemas/gld-schema.d.ts.map +1 -0
- package/dist/schemas/gld-schema.js +88 -0
- package/dist/schemas/gld-schema.js.map +1 -0
- package/dist/schemas/gmw-schema.d.ts +180 -0
- package/dist/schemas/gmw-schema.d.ts.map +1 -0
- package/dist/schemas/gmw-schema.js +131 -0
- package/dist/schemas/gmw-schema.js.map +1 -0
- package/dist/types/index.d.ts +51 -1005
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +3 -2
|
@@ -1,279 +1,186 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* CPT (Cone Penetration Test) schema
|
|
2
|
+
* CPT (Cone Penetration Test) schema.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* -
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* Maps the dscpt/1.1 registration object to {@link CPTData}. Most of the ~60
|
|
5
|
+
* metadata fields are scalars; the embedded measurement CSV (`data`) and the
|
|
6
|
+
* dissipation-test time-series (`dissipationTests`) are {@link custom} producers
|
|
7
|
+
* driven by a {@link NodeLens}.
|
|
8
|
+
*
|
|
9
|
+
* Field coverage is verified against the official XSD with
|
|
10
|
+
* `npm run check:xsd-coverage`.
|
|
10
11
|
*/
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
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
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
resolver: typeResolvers.parseFloat,
|
|
186
|
-
},
|
|
187
|
-
zlmConeResistanceAfter: {
|
|
188
|
-
xpath: "./dscpt:conePenetrometerSurvey/cptcommon:conePenetrometer/cptcommon:zeroLoadMeasurement/cptcommon:coneResistanceAfter",
|
|
189
|
-
resolver: typeResolvers.parseFloat,
|
|
190
|
-
},
|
|
191
|
-
// Inclination East-West
|
|
192
|
-
zlmInclinationEwBefore: {
|
|
193
|
-
xpath: "./dscpt:conePenetrometerSurvey/cptcommon:conePenetrometer/cptcommon:zeroLoadMeasurement/cptcommon:inclinationEWBefore",
|
|
194
|
-
resolver: typeResolvers.parseInt,
|
|
195
|
-
},
|
|
196
|
-
zlmInclinationEwAfter: {
|
|
197
|
-
xpath: "./dscpt:conePenetrometerSurvey/cptcommon:conePenetrometer/cptcommon:zeroLoadMeasurement/cptcommon:inclinationEWAfter",
|
|
198
|
-
resolver: typeResolvers.parseInt,
|
|
199
|
-
},
|
|
200
|
-
// Inclination North-South
|
|
201
|
-
zlmInclinationNsBefore: {
|
|
202
|
-
xpath: "./dscpt:conePenetrometerSurvey/cptcommon:conePenetrometer/cptcommon:zeroLoadMeasurement/cptcommon:inclinationNSBefore",
|
|
203
|
-
resolver: typeResolvers.parseInt,
|
|
204
|
-
},
|
|
205
|
-
zlmInclinationNsAfter: {
|
|
206
|
-
xpath: "./dscpt:conePenetrometerSurvey/cptcommon:conePenetrometer/cptcommon:zeroLoadMeasurement/cptcommon:inclinationNSAfter",
|
|
207
|
-
resolver: typeResolvers.parseInt,
|
|
208
|
-
},
|
|
209
|
-
// Inclination Resultant
|
|
210
|
-
zlmInclinationResultantBefore: {
|
|
211
|
-
xpath: "./dscpt:conePenetrometerSurvey/cptcommon:conePenetrometer/cptcommon:zeroLoadMeasurement/cptcommon:inclinationResultantBefore",
|
|
212
|
-
resolver: typeResolvers.parseInt,
|
|
213
|
-
},
|
|
214
|
-
zlmInclinationResultantAfter: {
|
|
215
|
-
xpath: "./dscpt:conePenetrometerSurvey/cptcommon:conePenetrometer/cptcommon:zeroLoadMeasurement/cptcommon:inclinationResultantAfter",
|
|
216
|
-
resolver: typeResolvers.parseInt,
|
|
217
|
-
},
|
|
218
|
-
// Local Friction
|
|
219
|
-
zlmLocalFrictionBefore: {
|
|
220
|
-
xpath: "./dscpt:conePenetrometerSurvey/cptcommon:conePenetrometer/cptcommon:zeroLoadMeasurement/cptcommon:localFrictionBefore",
|
|
221
|
-
resolver: typeResolvers.parseFloat,
|
|
222
|
-
},
|
|
223
|
-
zlmLocalFrictionAfter: {
|
|
224
|
-
xpath: "./dscpt:conePenetrometerSurvey/cptcommon:conePenetrometer/cptcommon:zeroLoadMeasurement/cptcommon:localFrictionAfter",
|
|
225
|
-
resolver: typeResolvers.parseFloat,
|
|
226
|
-
},
|
|
227
|
-
// Pore Pressure U1
|
|
228
|
-
zlmPorePressureU1Before: {
|
|
229
|
-
xpath: "./dscpt:conePenetrometerSurvey/cptcommon:conePenetrometer/cptcommon:zeroLoadMeasurement/cptcommon:porePressureU1Before",
|
|
230
|
-
resolver: typeResolvers.parseFloat,
|
|
231
|
-
},
|
|
232
|
-
zlmPorePressureU1After: {
|
|
233
|
-
xpath: "./dscpt:conePenetrometerSurvey/cptcommon:conePenetrometer/cptcommon:zeroLoadMeasurement/cptcommon:porePressureU1After",
|
|
234
|
-
resolver: typeResolvers.parseFloat,
|
|
235
|
-
},
|
|
236
|
-
// Pore Pressure U2
|
|
237
|
-
zlmPorePressureU2Before: {
|
|
238
|
-
xpath: "./dscpt:conePenetrometerSurvey/cptcommon:conePenetrometer/cptcommon:zeroLoadMeasurement/cptcommon:porePressureU2Before",
|
|
239
|
-
resolver: typeResolvers.parseFloat,
|
|
240
|
-
},
|
|
241
|
-
zlmPorePressureU2After: {
|
|
242
|
-
xpath: "./dscpt:conePenetrometerSurvey/cptcommon:conePenetrometer/cptcommon:zeroLoadMeasurement/cptcommon:porePressureU2After",
|
|
243
|
-
resolver: typeResolvers.parseFloat,
|
|
244
|
-
},
|
|
245
|
-
// Pore Pressure U3
|
|
246
|
-
zlmPorePressureU3Before: {
|
|
247
|
-
xpath: "./dscpt:conePenetrometerSurvey/cptcommon:conePenetrometer/cptcommon:zeroLoadMeasurement/cptcommon:porePressureU3Before",
|
|
248
|
-
resolver: typeResolvers.parseFloat,
|
|
249
|
-
},
|
|
250
|
-
zlmPorePressureU3After: {
|
|
251
|
-
xpath: "./dscpt:conePenetrometerSurvey/cptcommon:conePenetrometer/cptcommon:zeroLoadMeasurement/cptcommon:porePressureU3After",
|
|
252
|
-
resolver: typeResolvers.parseFloat,
|
|
253
|
-
},
|
|
254
|
-
// Electrical Conductivity
|
|
255
|
-
zlmElectricalConductivityBefore: {
|
|
256
|
-
xpath: "./dscpt:conePenetrometerSurvey/cptcommon:conePenetrometer/cptcommon:zeroLoadMeasurement/cptcommon:electricalConductivityBefore",
|
|
257
|
-
resolver: typeResolvers.parseFloat,
|
|
258
|
-
},
|
|
259
|
-
zlmElectricalConductivityAfter: {
|
|
260
|
-
xpath: "./dscpt:conePenetrometerSurvey/cptcommon:conePenetrometer/cptcommon:zeroLoadMeasurement/cptcommon:electricalConductivityAfter",
|
|
261
|
-
resolver: typeResolvers.parseFloat,
|
|
262
|
-
},
|
|
263
|
-
// === Measurement Data ===
|
|
264
|
-
data: {
|
|
265
|
-
xpath: "./dscpt:conePenetrometerSurvey",
|
|
266
|
-
resolver: measurementResolvers.processCPTResult,
|
|
267
|
-
},
|
|
268
|
-
// === Dissipation Tests ===
|
|
269
|
-
dissipationTests: {
|
|
270
|
-
xpath: "./dscpt:conePenetrometerSurvey",
|
|
271
|
-
resolver: measurementResolvers.processDissipationTests,
|
|
272
|
-
},
|
|
273
|
-
// === Administrative History ===
|
|
274
|
-
registrationHistory: {
|
|
275
|
-
xpath: ".",
|
|
276
|
-
resolver: cptResolvers.processCPTRegistrationHistory,
|
|
277
|
-
},
|
|
278
|
-
};
|
|
12
|
+
import { object_, array, custom, scalar, text, date, number_, integer, boolean_, qualityClass, } from "../core/producer.js";
|
|
13
|
+
import { COMMON_REGISTRATION_PRODUCERS, REGISTRATION_HISTORY, gmlLocation, } from "./common-fields.js";
|
|
14
|
+
import { decodeColumns, col } from "../core/columns.js";
|
|
15
|
+
import { parseFloat } from "../decoders/type-decoders.js";
|
|
16
|
+
const SURVEY = "./dscpt:conePenetrometerSurvey";
|
|
17
|
+
const CONE = `${SURVEY}/cptcommon:conePenetrometer`;
|
|
18
|
+
const ZLM = `${CONE}/cptcommon:zeroLoadMeasurement`;
|
|
19
|
+
const VPOS = "./dscpt:deliveredVerticalPosition";
|
|
20
|
+
/** Fixed columns of a dissipation-test time-series. */
|
|
21
|
+
const DISSIPATION_COLUMNS = [
|
|
22
|
+
{ name: "elapsedTime", parse: col.num },
|
|
23
|
+
{ name: "coneResistance", parse: col.num, optional: true },
|
|
24
|
+
{ name: "porePressureU1", parse: col.num, optional: true },
|
|
25
|
+
{ name: "porePressureU2", parse: col.num, optional: true },
|
|
26
|
+
{ name: "porePressureU3", parse: col.num, optional: true },
|
|
27
|
+
];
|
|
28
|
+
/**
|
|
29
|
+
* Parse the embedded measurement CSV from the `conePenetrometerSurvey` node.
|
|
30
|
+
*
|
|
31
|
+
* The `parameters` element flags (ja/nee) which columns are present, in
|
|
32
|
+
* document order; the CSV in `values` always carries every column, so the
|
|
33
|
+
* decode spec maps only the flagged positions (others are skipped with `null`).
|
|
34
|
+
* Rows are then sorted by penetration length (BRO does not guarantee depth order
|
|
35
|
+
* in the values block).
|
|
36
|
+
*/
|
|
37
|
+
function parseMeasurements(lens) {
|
|
38
|
+
const enc = (attr, fallback) => lens.attr(`.//swe:encoding/swe:TextEncoding/@${attr}`) ?? fallback;
|
|
39
|
+
const decimalSeparator = enc("decimalSeparator", ".");
|
|
40
|
+
if (decimalSeparator !== ".") {
|
|
41
|
+
console.warn(`Non-standard decimal separator: ${decimalSeparator} (expected ".")`);
|
|
42
|
+
}
|
|
43
|
+
// A spec entry per parameter position, in document order: a column for the
|
|
44
|
+
// "ja" positions, `null` (skip) for the rest. Scope to the first `parameters`
|
|
45
|
+
// block — dissipation tests carry their own values/encoding.
|
|
46
|
+
const parameters = lens.all(".//cptcommon:parameters")[0];
|
|
47
|
+
const spec = (parameters ? parameters.all("./*") : []).map((param) => {
|
|
48
|
+
const columnName = param.name();
|
|
49
|
+
const included = (param.text() ?? "").toLowerCase() === "ja";
|
|
50
|
+
return columnName && included ? { name: columnName, parse: col.num } : null;
|
|
51
|
+
});
|
|
52
|
+
if (spec.every((c) => c === null)) {
|
|
53
|
+
return [];
|
|
54
|
+
}
|
|
55
|
+
const rows = decodeColumns(lens.textAt(".//cptcommon:values"), spec, {
|
|
56
|
+
rowSeparator: enc("blockSeparator", ";"),
|
|
57
|
+
colSeparator: enc("tokenSeparator", ","),
|
|
58
|
+
})
|
|
59
|
+
// Drop all-null rows.
|
|
60
|
+
.filter((m) => Object.values(m).some((v) => v !== null && v !== undefined));
|
|
61
|
+
return rows.sort((a, b) => a.penetrationLength - b.penetrationLength);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* A dissipation test's pore-pressure decay CSV. Kept custom because the row/col
|
|
65
|
+
* separators are read from the test's own `swe:TextEncoding`.
|
|
66
|
+
*/
|
|
67
|
+
const DISSIPATION_MEASUREMENTS = custom({
|
|
68
|
+
produce: (test) => {
|
|
69
|
+
const enc = "./cptcommon:disResult/swe:encoding/swe:TextEncoding";
|
|
70
|
+
return decodeColumns(test.textAt("./cptcommon:disResult/cptcommon:values"), DISSIPATION_COLUMNS, {
|
|
71
|
+
rowSeparator: test.attr(`${enc}/@blockSeparator`) ?? ";",
|
|
72
|
+
colSeparator: test.attr(`${enc}/@tokenSeparator`) ?? ",",
|
|
73
|
+
});
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
/**
|
|
77
|
+
* One dissipation test (pore-pressure decay time-series at a fixed depth), a
|
|
78
|
+
* sibling of the cone-penetration test inside `conePenetrometerSurvey`.
|
|
79
|
+
*/
|
|
80
|
+
const DISSIPATION_TEST = object_({
|
|
81
|
+
fields: {
|
|
82
|
+
penetrationLength: scalar({
|
|
83
|
+
at: "./cptcommon:penetrationLength",
|
|
84
|
+
decode: (raw) => parseFloat(raw) ?? 0,
|
|
85
|
+
}),
|
|
86
|
+
phenomenonTime: date("./om:phenomenonTime//gml:timePosition"),
|
|
87
|
+
measurements: DISSIPATION_MEASUREMENTS,
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
/** A layer removed before the CPT was performed (e.g. asphalt, gravel fill). */
|
|
91
|
+
const REMOVED_LAYER = object_({
|
|
92
|
+
fields: {
|
|
93
|
+
sequenceNumber: integer("./cptcommon:sequenceNumber"),
|
|
94
|
+
upperBoundary: number_("./cptcommon:upperBoundary"),
|
|
95
|
+
lowerBoundary: number_("./cptcommon:lowerBoundary"),
|
|
96
|
+
description: text("./cptcommon:description"),
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
export const CPT_PRODUCER = object_({
|
|
100
|
+
fields: {
|
|
101
|
+
// === Core identification (shared brocom fields) ===
|
|
102
|
+
...COMMON_REGISTRATION_PRODUCERS,
|
|
103
|
+
researchOperator: text("./dscpt:researchOperator"),
|
|
104
|
+
researchReportDate: date("./dscpt:researchReportDate"),
|
|
105
|
+
// Measurement timing (OGC O&M timestamps on the conePenetrationTest observation)
|
|
106
|
+
conePenetrationTestPhenomenonTime: date(`${SURVEY}/cptcommon:conePenetrationTest/om:phenomenonTime/gml:TimeInstant/gml:timePosition`),
|
|
107
|
+
conePenetrationTestResultTime: date(`${SURVEY}/cptcommon:conePenetrationTest/om:resultTime/gml:TimeInstant/gml:timePosition`),
|
|
108
|
+
cptStandard: text("./dscpt:cptStandard"),
|
|
109
|
+
// === Location ===
|
|
110
|
+
deliveredLocation: gmlLocation("./dscpt:deliveredLocation/cptcommon:location"),
|
|
111
|
+
standardizedLocation: gmlLocation("./dscpt:standardizedLocation/brocom:location"),
|
|
112
|
+
coordinateTransformation: text("./dscpt:standardizedLocation/brocom:coordinateTransformation"),
|
|
113
|
+
horizontalPositioningDate: date("./dscpt:deliveredLocation/cptcommon:horizontalPositioningDate"),
|
|
114
|
+
horizontalPositioningMethod: text("./dscpt:deliveredLocation/cptcommon:horizontalPositioningMethod"),
|
|
115
|
+
horizontalPositioningOperator: text("./dscpt:deliveredLocation/cptcommon:horizontalPositioningOperator"),
|
|
116
|
+
// === Vertical position ===
|
|
117
|
+
deliveredVerticalPositionOffset: number_(`${VPOS}/cptcommon:offset`),
|
|
118
|
+
deliveredVerticalPositionDatum: text(`${VPOS}/cptcommon:verticalDatum`),
|
|
119
|
+
deliveredVerticalPositionReferencePoint: text(`${VPOS}/cptcommon:localVerticalReferencePoint`),
|
|
120
|
+
waterDepth: number_(`${VPOS}/cptcommon:waterDepth`),
|
|
121
|
+
verticalPositioningDate: date(`${VPOS}/cptcommon:verticalPositioningDate`),
|
|
122
|
+
verticalPositioningMethod: text(`${VPOS}/cptcommon:verticalPositioningMethod`),
|
|
123
|
+
verticalPositioningOperator: text(`${VPOS}/cptcommon:verticalPositioningOperator`),
|
|
124
|
+
// === Survey context ===
|
|
125
|
+
deliveryContext: text("./dscpt:deliveryContext"),
|
|
126
|
+
surveyPurpose: text("./dscpt:surveyPurpose"),
|
|
127
|
+
additionalInvestigationPerformed: boolean_("./dscpt:additionalInvestigationPerformed"),
|
|
128
|
+
// === Test metadata ===
|
|
129
|
+
cptMethod: text(`${SURVEY}/cptcommon:cptMethod`),
|
|
130
|
+
stopCriterion: text(`${SURVEY}/cptcommon:stopCriterion`),
|
|
131
|
+
sensorAzimuth: number_(`${SURVEY}/cptcommon:sensorAzimuth`),
|
|
132
|
+
dissipationtestPerformed: boolean_(`${SURVEY}/cptcommon:dissipationTestPerformed`),
|
|
133
|
+
qualityClass: qualityClass(`${SURVEY}/cptcommon:qualityClass`),
|
|
134
|
+
groundwaterLevel: number_("./dscpt:additionalInvestigation/cptcommon:groundwaterLevel"),
|
|
135
|
+
// === Additional investigation ===
|
|
136
|
+
investigationDate: date("./dscpt:additionalInvestigation/cptcommon:investigationDate"),
|
|
137
|
+
conditions: text("./dscpt:additionalInvestigation/cptcommon:conditions"),
|
|
138
|
+
surfaceDescription: text("./dscpt:additionalInvestigation/cptcommon:surfaceDescription"),
|
|
139
|
+
removedLayers: array({
|
|
140
|
+
each: "./dscpt:additionalInvestigation/cptcommon:removedLayer",
|
|
141
|
+
item: REMOVED_LAYER,
|
|
142
|
+
}),
|
|
143
|
+
predrilledDepth: number_(`${SURVEY}/cptcommon:trajectory/cptcommon:predrilledDepth`),
|
|
144
|
+
finalDepth: number_(`${SURVEY}/cptcommon:trajectory/cptcommon:finalDepth`),
|
|
145
|
+
// === Processing flags ===
|
|
146
|
+
finalProcessingDate: date(`${SURVEY}/cptcommon:finalProcessingDate`),
|
|
147
|
+
signalProcessingPerformed: boolean_(`${SURVEY}/cptcommon:procedure/cptcommon:signalProcessingPerformed`),
|
|
148
|
+
interruptionProcessingPerformed: boolean_(`${SURVEY}/cptcommon:procedure/cptcommon:interruptionProcessingPerformed`),
|
|
149
|
+
expertCorrectionPerformed: boolean_(`${SURVEY}/cptcommon:procedure/cptcommon:expertCorrectionPerformed`),
|
|
150
|
+
// === Equipment specifications ===
|
|
151
|
+
cptDescription: text(`${CONE}/cptcommon:description`),
|
|
152
|
+
cptType: text(`${CONE}/cptcommon:conePenetrometerType`),
|
|
153
|
+
coneSurfaceArea: integer(`${CONE}/cptcommon:coneSurfaceArea`),
|
|
154
|
+
coneDiameter: integer(`${CONE}/cptcommon:coneDiameter`),
|
|
155
|
+
coneSurfaceQuotient: number_(`${CONE}/cptcommon:coneSurfaceQuotient`),
|
|
156
|
+
coneToFrictionSleeveDistance: integer(`${CONE}/cptcommon:coneToFrictionSleeveDistance`),
|
|
157
|
+
coneToFrictionSleeveSurfaceArea: integer(`${CONE}/cptcommon:frictionSleeveSurfaceArea`),
|
|
158
|
+
coneToFrictionSleeveSurfaceQuotient: number_(`${CONE}/cptcommon:frictionSleeveSurfaceQuotient`),
|
|
159
|
+
// === Zero-load measurements (equipment calibration) ===
|
|
160
|
+
zlmConeResistanceBefore: number_(`${ZLM}/cptcommon:coneResistanceBefore`),
|
|
161
|
+
zlmConeResistanceAfter: number_(`${ZLM}/cptcommon:coneResistanceAfter`),
|
|
162
|
+
zlmInclinationEwBefore: integer(`${ZLM}/cptcommon:inclinationEWBefore`),
|
|
163
|
+
zlmInclinationEwAfter: integer(`${ZLM}/cptcommon:inclinationEWAfter`),
|
|
164
|
+
zlmInclinationNsBefore: integer(`${ZLM}/cptcommon:inclinationNSBefore`),
|
|
165
|
+
zlmInclinationNsAfter: integer(`${ZLM}/cptcommon:inclinationNSAfter`),
|
|
166
|
+
zlmInclinationResultantBefore: integer(`${ZLM}/cptcommon:inclinationResultantBefore`),
|
|
167
|
+
zlmInclinationResultantAfter: integer(`${ZLM}/cptcommon:inclinationResultantAfter`),
|
|
168
|
+
zlmLocalFrictionBefore: number_(`${ZLM}/cptcommon:localFrictionBefore`),
|
|
169
|
+
zlmLocalFrictionAfter: number_(`${ZLM}/cptcommon:localFrictionAfter`),
|
|
170
|
+
zlmPorePressureU1Before: number_(`${ZLM}/cptcommon:porePressureU1Before`),
|
|
171
|
+
zlmPorePressureU1After: number_(`${ZLM}/cptcommon:porePressureU1After`),
|
|
172
|
+
zlmPorePressureU2Before: number_(`${ZLM}/cptcommon:porePressureU2Before`),
|
|
173
|
+
zlmPorePressureU2After: number_(`${ZLM}/cptcommon:porePressureU2After`),
|
|
174
|
+
zlmPorePressureU3Before: number_(`${ZLM}/cptcommon:porePressureU3Before`),
|
|
175
|
+
zlmPorePressureU3After: number_(`${ZLM}/cptcommon:porePressureU3After`),
|
|
176
|
+
zlmElectricalConductivityBefore: number_(`${ZLM}/cptcommon:electricalConductivityBefore`),
|
|
177
|
+
zlmElectricalConductivityAfter: number_(`${ZLM}/cptcommon:electricalConductivityAfter`),
|
|
178
|
+
// === Measurement data (embedded CSV) ===
|
|
179
|
+
data: custom({ at: SURVEY, produce: parseMeasurements }),
|
|
180
|
+
// === Dissipation tests ===
|
|
181
|
+
dissipationTests: array({ at: SURVEY, each: ".//cptcommon:dissipationTest", item: DISSIPATION_TEST }),
|
|
182
|
+
// === Administrative history ===
|
|
183
|
+
registrationHistory: REGISTRATION_HISTORY,
|
|
184
|
+
},
|
|
185
|
+
});
|
|
279
186
|
//# sourceMappingURL=cpt-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cpt-schema.js","sourceRoot":"","sources":["../../src/schemas/cpt-schema.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"cpt-schema.js","sourceRoot":"","sources":["../../src/schemas/cpt-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,EACL,OAAO,EACP,KAAK,EACL,MAAM,EACN,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,QAAQ,EACR,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,6BAA6B,EAC7B,oBAAoB,EACpB,WAAW,GACZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,GAAG,EAAmB,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,MAAM,MAAM,GAAG,gCAAgC,CAAC;AAChD,MAAM,IAAI,GAAG,GAAG,MAAM,6BAA6B,CAAC;AACpD,MAAM,GAAG,GAAG,GAAG,IAAI,gCAAgC,CAAC;AACpD,MAAM,IAAI,GAAG,mCAAmC,CAAC;AAEjD,uDAAuD;AACvD,MAAM,mBAAmB,GAAsB;IAC7C,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,CAAC,GAAG,EAAE;IACvC,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC1D,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE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,GAAG,GAAG,sCAAsC,CAAC;QACnF,sBAAsB,EAAE,OAAO,CAAC,GAAG,GAAG,gCAAgC,CAAC;QACvE,qBAAqB,EAAE,OAAO,CAAC,GAAG,GAAG,+BAA+B,CAAC;QACrE,uBAAuB,EAAE,OAAO,CAAC,GAAG,GAAG,iCAAiC,CAAC;QACzE,sBAAsB,EAAE,OAAO,CAAC,GAAG,GAAG,gCAAgC,CAAC;QACvE,uBAAuB,EAAE,OAAO,CAAC,GAAG,GAAG,iCAAiC,CAAC;QACzE,sBAAsB,EAAE,OAAO,CAAC,GAAG,GAAG,gCAAgC,CAAC;QACvE,uBAAuB,EAAE,OAAO,CAAC,GAAG,GAAG,iCAAiC,CAAC;QACzE,sBAAsB,EAAE,OAAO,CAAC,GAAG,GAAG,gCAAgC,CAAC;QACvE,+BAA+B,EAAE,OAAO,CAAC,GAAG,GAAG,yCAAyC,CAAC;QACzF,8BAA8B,EAAE,OAAO,CAAC,GAAG,GAAG,wCAAwC,CAAC;QAEvF,0CAA0C;QAC1C,IAAI,EAAE,MAAM,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;QAExD,4BAA4B;QAC5B,gBAAgB,EAAE,KAAK,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,8BAA8B,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;QAErG,iCAAiC;QACjC,mBAAmB,EAAE,oBAAoB;KAC1C;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Schema } from "../../types/index.js";
|
|
2
|
+
export declare const GLD_SCALARS: Schema;
|
|
3
|
+
export interface GLDScalars {
|
|
4
|
+
/** `dsgld:researchFirstDate` (0..1, date) */
|
|
5
|
+
researchFirstDate: string | null;
|
|
6
|
+
/** `dsgld:researchLastDate` (0..1, date) */
|
|
7
|
+
researchLastDate: string | null;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=gld.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gld.generated.d.ts","sourceRoot":"","sources":["../../../src/schemas/generated/gld.generated.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAGnD,eAAO,MAAM,WAAW,EAAE,MASzB,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,6CAA6C;IAC7C,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,4CAA4C;IAC5C,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// GENERATED by `npm run codegen:schema` - DO NOT EDIT.
|
|
2
|
+
// Source XSD: https://schema.broservices.nl/xsd/dsgld/1.0/dsgld-messages.xsd
|
|
3
|
+
//
|
|
4
|
+
// Scalar SchemaField bindings + result type for the GLD registration
|
|
5
|
+
// object, derived from the XSD. Complex/array fields are hand-written in the
|
|
6
|
+
// domain schema/types; re-run codegen after an XSD bump and let the coverage
|
|
7
|
+
// checker (npm run check:xsd-coverage) prove completeness.
|
|
8
|
+
import * as typeResolvers from "../../resolvers/type-resolvers.js";
|
|
9
|
+
export const GLD_SCALARS = {
|
|
10
|
+
researchFirstDate: {
|
|
11
|
+
xpath: "./dsgld:researchFirstDate",
|
|
12
|
+
resolver: typeResolvers.parseDate,
|
|
13
|
+
},
|
|
14
|
+
researchLastDate: {
|
|
15
|
+
xpath: "./dsgld:researchLastDate",
|
|
16
|
+
resolver: typeResolvers.parseDate,
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=gld.generated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gld.generated.js","sourceRoot":"","sources":["../../../src/schemas/generated/gld.generated.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,6EAA6E;AAC7E,EAAE;AACF,qEAAqE;AACrE,6EAA6E;AAC7E,6EAA6E;AAC7E,2DAA2D;AAG3D,OAAO,KAAK,aAAa,MAAM,mCAAmC,CAAC;AAEnE,MAAM,CAAC,MAAM,WAAW,GAAW;IACjC,iBAAiB,EAAE;QACjB,KAAK,EAAE,2BAA2B;QAClC,QAAQ,EAAE,aAAa,CAAC,SAAS;KAClC;IACD,gBAAgB,EAAE;QAChB,KAAK,EAAE,0BAA0B;QACjC,QAAQ,EAAE,aAAa,CAAC,SAAS;KAClC;CACF,CAAC"}
|