Skip to content

Instantly share code, notes, and snippets.

@CEZERT
Last active August 27, 2025 14:30
Show Gist options
  • Save CEZERT/2f8c6d63bd0ff1d55a8f5e581bb3f464 to your computer and use it in GitHub Desktop.
Save CEZERT/2f8c6d63bd0ff1d55a8f5e581bb3f464 to your computer and use it in GitHub Desktop.
Profondeur:
to_real(
replace(
substr(
"Text",
strpos("Text",'(') + 1,
strpos("Text",')') - strpos("Text",'(') - 1
),
',', '.'
)
)
ZTN:
-- Z (après "Z=" jusqu'à la fin)
to_real(
replace(
trim(
substr(
"Text",
strpos("Text",'Z=') + 2,
length("Text") - (strpos("Text",'Z=') + 1)
)
),
',', '.'
)
)
+
-- Profondeur (entre parenthèses)
to_real(
replace(
substr(
"Text",
strpos("Text",'(') + 1,
strpos("Text",')') - strpos("Text",'(') - 1
),
',', '.'
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment