[general]
name=Borehole Geology Sections
qgisMinimumVersion=4.0
qgisMaximumVersion=4.99
description=Borehole logs, sedimentary records, geological cross sections (2D) and 3D lithology models from borehole data in two CSV files, working in the coordinate system of the CSV file (S-JTSK, WGS84, ETRS89, NAD83 and its variants, UTM, Web Mercator)
about=Borehole Geology Sections turns borehole logs into geological models. Load two CSV files - a table of boreholes (name, X, Y, ground altitude, total depth) and a table of layers (borehole name, depth from, depth to, lithology, optional stratigraphy) - and the plugin shows the boreholes on the map, in the coordinate system of the CSV file - S-JTSK (EPSG:5514, also when written without the minus sign), WGS84, ETRS89, NAD83 (and its variants NAD83(HARN), NAD83(NSRS2007), NAD83(2011), NAD83(CSRS)), UTM (WGS84, NAD83, NAD83(CSRS), NAD83(2011), NAD83(HARN) or ETRS89, any zone) or Web Mercator. Borehole logs: pick one to four boreholes and draw their profiles side by side with a depth ruler and layer descriptions, or draw sedimentary records in which the column width follows the grain size (clay, silt, sand, gravel) and a Legend lists the rock types; both can be exported to PNG, SVG and PDF, the profiles also show a stratigraphy column and the rocks can be drawn with the FGDC lithologic patterns. 2D cross sections: draw a section line on the map (or use a selected line feature) and the plugin projects nearby boreholes onto it and correlates layers of the same lithology between neighbouring boreholes, with dip-following boundaries, pinch-outs, lateral lithology changes, optional bedrock surface, highlighted boundaries between stratigraphic sequences and user-defined faults. Vertical exaggeration and colours per lithology are adjustable, and sections can be exported to PNG, SVG and PDF. 3D models: build either a grid model (blocks interpolated from the nearest boreholes) or a fence model made of 2D cross sections (chosen manually or generated automatically as N-S and E-W families) as closed 3D solids, ready to open in the QGIS 3D Map View or in the plugin's own 3D viewer (WebGL: smooth rotation, section planes, vertical exaggeration, transparency, lithology legend, borehole names, PNG export). Intended for geologists, hydrogeologists and engineering-geology work with borehole data.
version=0.27.22
author=Jan Hlinský
email=englishaj303@gmail.com
category=Plugins
tracker=https://github.com/englishaj303-arch/borehole_sections/issues
icon=icon.png
repository=https://github.com/englishaj303-arch/borehole_sections
homepage=https://github.com/englishaj303-arch/borehole_sections
changelog=0.27.22 - added: a window with the progress (step, elapsed and remaining time) and a Cancel button while a 3D model is made (fence model, full model, QGIS 3D layers, preparation of the web viewer); Cancel throws away the unfinished model - the QGIS 3D layers made so far are removed, no viewer is opened and the earlier models stay; the model code reports its progress through core.progress(); fixed: dead 3D layers (deleted in QGIS) are forgotten in the list of lithologies, which hides when it is empty; the layers file with a borehole name differing only in the case of the letters says so in the warning; LogViewer.regenerate redraws the log; 3D viewer: the fault option in the X / Y mode says Top at the model surface (terrain)
    0.27.21 - 3D viewer: lithologic textures of the full model are drawn from above (horizontally, one direction, also on the undersides) on every surface that is not steep, so they no longer turn with the bends of curved surfaces; the side panel has the Models check boxes above View and all its sections fold away (rarely used ones start folded); plugin tab 3D model: heading Models under Common settings, the list of lithologies in the 3D models appears only when it has content; Borehole profiles: the Stratigraphy column shows the text of the column chosen in the side panel as it is written in the CSV file (by default the column Stratigraphy, otherwise the nearest column by name); Sedimentary record: the legend has no grain size in brackets
    0.27.20 - code quality (checked with a Pyflakes / Flake8 / Ruff / Bandit-like check; no finding of Bandit): unused imports removed from section_editor.py, ambiguous variable name l renamed in edits.py, exceptions re-raised with 'from' in the CSV reader, unused loop variables marked, lines longer than 120 characters wrapped; no change of behaviour
    0.27.19 - fixed: lithologic textures in the 3D viewer were far too large (one tile was a square of about 15 percent of the model width, so a thin layer showed a piece of one motif) - a tile is now about 1/20 of the model width and on walls its height follows the vertical scale, so the pattern is undistorted at any vertical scale, like in the 2D sections; the thin lines of the tiles get the same extra opacity as in 2D, so they stay visible when shrunk; the Texture size slider still changes the size from 20 to 400 percent
    0.27.18 - fixed: the pattern colour helpers (line_is_light, _recolor, LIGHT_LINE) were missing in patterns.py since 0.27.15, so drawing any lithologic pattern ended with a NameError - restored; the message about too many cells of the smooth model shows the limit (a missing f before the text); section edits: an unknown state of a forced link is refused, a lens with the tips in reverse order is turned the right way, apply_shift tolerates a contact of less than two points; 3D viewer: the texture filter without tiles, a clearer name in the copy of a fault
    0.27.17 - changed: the option 'Coordinates are given without minus sign' was removed from the Data tab - S-JTSK coordinates are made negative automatically (EPSG:5514 has both coordinates negative everywhere, so a positive value is only a missing sign); the log reports how many boreholes got the sign; 3D model tab: the groups A) Fence model and B) Full model fold away (opening one folds the other, only A) is open at first)
    0.27.16 - fixed: the columns X, Y (also E / N, lon / lat) and Layer to [m] are preselected on the Data tab when the heading of the CSV column contains the wanted word (e.g. 'X (northing, latitude)', 'Layer to [m]'); until now the short keywords (x, y, to, do, e, n) matched only a column that was named exactly so and the first column was taken
    0.27.15 - changed: all pattern tiles are black now (901 soil and 902 dirt were light) - the light variant for dark colours is made by the plugin from them; fixes: names of boreholes and lithologies lose control characters (a saved file of section edits could not be loaded again); the section edits are written through a new unpredictably named file in the same folder; undo history of the section editor is limited to 100 steps; only the file made by the plugin is opened in the web browser; 3D viewer: the cache of surface heights under a dragged fault is limited; pattern cache is LRU; 3D layers report a provider that refuses the features; a damaged age of a layer no longer breaks the stratigraphic column colours; the preview of a CSV file reads as many characters as bytes; removed: the unused functions with_faults and sanitize_faults
    0.27.14 - changed: lithologic patterns have two colour variants - black lines (as in the FGDC standard), or pale cream ones on a dark colour of the lithology (coal, soil, dirt, peat, dark clay...); the variant is chosen automatically from the luminance of the lithology colour, the same in the 2D sections, borehole logs, legends and the 3D viewer; the tiles 901 (soil) and 902 (dirt) follow the same rule instead of always having light lines; README corrected
    0.27.13 - added: 3D viewer, panel Faults - Export faults / Import faults (JSON file), so faults added in a web browser are not lost with the tab and can be carried to another model; changed: removing the overlaps of 2D section polygons subtracts only the neighbouring polygons (much faster for long sections); removed: the unused embedded 3D window (Viewer3DWindow, QtWebEngine code) - the viewer opens in the web browser as before; README corrected
    0.27.12 - fixes before the stable release: export to SVG / PDF always ends the painter; closing the section window after Regenerate no longer touches a deleted scene (and frees the new one); Esc / [X] of the main dialog during line drawing no longer re-opens it; duplicate borehole names keep the first borehole instead of mixing the layers of both; wait cursor while a section is built; NaN / Inf from a DEM is treated as NoData in the 3D fill; the field 'name' of the Boreholes layer is 256 characters long; patterns: painter always ended; 3D window: atomic Save as HTML; start-up cleanup of old viewer files is delayed by 5 s; development script removed from the package; changelog in metadata.txt shortened (full history in CHANGELOG.md); experimental=False
    0.27.11 - hardening: edit files are read like the CSV tables (regular file, at most 5 MB, UTF-8) and saved atomically (a temporary file, then replace); checked by random tests (correlation with edits, moving boundaries, loading damaged edit files)
    0.27.10 - fixes: 3D window - Save as HTML / Open in browser go on after 4 s when the page does not answer, warnings of the page go to the QGIS log, link checks; faults survive a lost WebGL context in sessionStorage (not window.name); the unused swap option of build_boreholes was removed; a failed edit restores the section without a second error message; Ctrl+Z / Ctrl+Y / Delete only act when the focus is in the section view or in a button of the edit panel; edit files reject nonsensical layer depths; the point layer of the boreholes warns when it cannot be filled; the number of ticks of a ruler is limited; the painter of the pattern icons is always ended
    0.27.9 - fixes: Unload runs every step on its own; section / log windows are deleted when closed (with their scene); closing or replacing the project clears the borehole layer and the section line; late-bound dialog reference in the plugin is dropped when the dialog is destroyed; no modal dialog during a lens drag; pattern bitmaps cache is limited; short keywords (coal, peat, till, tuf, fill, dirt) match only at the start of a word; correlation of huge columns is bounded; empty section gives a clear message; zero-width fault / zigzag guards; strat regexes cached; 3D: fault coordinates fall back to the model centre, picking buffer checked, no wall removed inside one body, colours always #rrggbb
    0.27.8 - fixes: inclined boreholes are correlated by elevation (not by length along the hole); stratigraphic inversion also across gaps and unknown ages; jurassic (jursky) recognised; very long words in the age column are skipped; layer names cut at the same length as borehole names are counted; empty column names are not kept; zero-thickness layers in a split; section edits use the faults of the last Regenerate; Ctrl+Z / Ctrl+Y / Delete leave the text fields alone and work only in the active window; edit files: limits and stricter checks; moved boundaries keep the original vertices; light pattern lines (901, 902) are no longer turned white; long words in the logs are split; the 3D window ignores a late answer of an older load; SVG export leaves no empty file; the section window comes to the front after the line is drawn
    Older versions: see CHANGELOG.md in the GitHub repository.
experimental=False
deprecated=False
tags=geology,borehole,cross section,3D,S-JTSK
