bedrock-ge 0.2.3__tar.gz → 0.2.4__tar.gz

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.
Files changed (73) hide show
  1. bedrock_ge-0.2.4/.github/workflows/python-tests.yml +33 -0
  2. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/.gitignore +3 -0
  3. bedrock_ge-0.2.4/.vscode/settings.json +7 -0
  4. bedrock_ge-0.2.4/CODE_OF_CONDUCT.md +133 -0
  5. bedrock_ge-0.2.4/PKG-INFO +209 -0
  6. bedrock_ge-0.2.4/README.md +175 -0
  7. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/RELEASE.md +2 -1
  8. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/examples/hk_kaitak_ags3/hk_kaitak_ags3_to_brgi_geodb.py +4 -4
  9. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/examples/hk_kaitak_ags3/kaitak_gi.gpkg +0 -0
  10. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/pyproject.toml +11 -7
  11. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/src/bedrock_ge/__init__.py +1 -1
  12. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/src/bedrock_ge/gi/ags/read.py +7 -5
  13. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/src/bedrock_ge/gi/ags/transform.py +1 -1
  14. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/src/bedrock_ge/gi/concatenate.py +1 -1
  15. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/src/bedrock_ge/gi/gis_geometry.py +13 -11
  16. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/src/bedrock_ge/gi/validate.py +1 -1
  17. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/src/bedrock_ge/gi/write.py +9 -6
  18. bedrock_ge-0.2.4/src/bedrock_ge/plot.py +4 -0
  19. bedrock_ge-0.2.4/tests/__init__.py +0 -0
  20. bedrock_ge-0.2.4/tests/test_bedrock_ge/__init__.py +0 -0
  21. bedrock_ge-0.2.4/tests/test_bedrock_ge/gi/__init__.py +0 -0
  22. bedrock_ge-0.2.3/tests/test_gi.py → bedrock_ge-0.2.4/tests/test_bedrock_ge/gi/test_ags.py +5 -10
  23. bedrock_ge-0.2.4/tests/test_bedrock_ge/test_plot.py +20 -0
  24. bedrock_ge-0.2.4/tests/test_examples/__init__.py +0 -0
  25. bedrock_ge-0.2.4/tests/test_examples/conftest.py +8 -0
  26. bedrock_ge-0.2.4/tests/test_examples/test_hk_kaitak_ags3_to_brgi_geodb.py +139 -0
  27. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/uv.lock +2366 -2297
  28. bedrock_ge-0.2.3/.python-version +0 -1
  29. bedrock_ge-0.2.3/PKG-INFO +0 -227
  30. bedrock_ge-0.2.3/README.md +0 -193
  31. bedrock_ge-0.2.3/src/bedrock_ge/plot.py +0 -2
  32. bedrock_ge-0.2.3/tests/test_plot.py +0 -2
  33. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/.gitattributes +0 -0
  34. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/LICENSE +0 -0
  35. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/examples/README.md +0 -0
  36. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/examples/hk_kaitak_ags3/64475_ASD012162.ags +0 -0
  37. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/examples/hk_kaitak_ags3/hk_kaitak_ags3_to_brgi_geodb.ipynb +0 -0
  38. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/examples/hk_kaitak_ags3/kaitak_ags3.zip +0 -0
  39. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/mypy.ini +0 -0
  40. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/ags3_to_gis.ipynb +0 -0
  41. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/bedrock_gi_to_speckle.ipynb +0 -0
  42. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/data_validation/README.md +0 -0
  43. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/data_validation/bedrock-data-package-schema.json +0 -0
  44. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/data_validation/bedrock_sql_model.ipynb +0 -0
  45. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/data_validation/frictionless-table-schema.json +0 -0
  46. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/data_validation/jsonschema_to_tableschema.py +0 -0
  47. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/data_validation/my-pandera-schema.json +0 -0
  48. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/data_validation/pandera-plus-schema.json +0 -0
  49. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/data_validation/sqlalchemy_to_json.py +0 -0
  50. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/data_validation/sqlmodel_tutorial.py +0 -0
  51. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/data_validation/try_pandera.ipynb +0 -0
  52. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/diggs/AGS Example Template.xml +0 -0
  53. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/diggs/DIGGS1-DIGGS.XML +0 -0
  54. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/diggs/DIGGS1.ags +0 -0
  55. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/hk_ags3/link_insitu_lab_gi/giu_metadata_main.csv +0 -0
  56. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/hk_ags3/link_insitu_lab_gi/giu_metadata_rel_rep.csv +0 -0
  57. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/leapfrog_weka_hills/boreholes/Geol.csv +0 -0
  58. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/leapfrog_weka_hills/boreholes/Location.csv +0 -0
  59. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/leapfrog_weka_hills/boreholes/SPT.csv +0 -0
  60. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/leapfrog_weka_hills/cpt/CPT.csv +0 -0
  61. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/leapfrog_weka_hills/cpt/Location.csv +0 -0
  62. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/sandbox/leapfrog_weka_hills/leapfrog_csv_to_gis.ipynb +0 -0
  63. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/src/bedrock_ge/gi/__init__.py +0 -0
  64. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/src/bedrock_ge/gi/ags/__init__.py +0 -0
  65. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/src/bedrock_ge/gi/ags/ags3_data_dictionary.json +0 -0
  66. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/src/bedrock_ge/gi/ags/ags4_data_dictionary.json +0 -0
  67. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/src/bedrock_ge/gi/ags/schemas.py +0 -0
  68. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/src/bedrock_ge/gi/ags/validate.py +0 -0
  69. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/src/bedrock_ge/gi/brgi-schema.json +0 -0
  70. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/src/bedrock_ge/gi/schemas.py +0 -0
  71. {bedrock_ge-0.2.3 → bedrock_ge-0.2.4}/src/bedrock_ge/gi/sqlmodels.py +0 -0
  72. {bedrock_ge-0.2.3/tests/fixtures → bedrock_ge-0.2.4/tests/test_bedrock_ge/gi/data}/ags4_sample.ags +0 -0
  73. {bedrock_ge-0.2.3/tests/fixtures → bedrock_ge-0.2.4/tests/test_bedrock_ge/gi/data}/asg4_expected.json +0 -0
@@ -0,0 +1,33 @@
1
+ name: Run Python tests
2
+
3
+ on:
4
+ push:
5
+ branches: [ main, dev ]
6
+ pull_request:
7
+ branches: [ main, dev ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ${{ matrix.os }}
12
+ strategy:
13
+ matrix:
14
+ os: [ubuntu-latest, windows-latest]
15
+ python-version: ['3.9']
16
+
17
+ steps:
18
+ - name: Checkout code
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Install uv
22
+ uses: astral-sh/setup-uv@v5
23
+
24
+ - name: Set up Python
25
+ uses: actions/setup-python@v5
26
+ with:
27
+ python-version: ${{ matrix.python-version }}
28
+
29
+ - name: Install bedrock-ge with testing dependencies
30
+ run: uv sync --locked --group tests
31
+
32
+ - name: Run tests
33
+ run: uv run pytest tests
@@ -117,3 +117,6 @@ cython_debug/
117
117
  # and can be added to the global gitignore or merged into this file. For a more nuclear
118
118
  # option (not recommended) you can uncomment the following to ignore the entire idea folder.
119
119
  .idea/
120
+
121
+ # Mac
122
+ .DS_Store
@@ -0,0 +1,7 @@
1
+ {
2
+ "python.testing.pytestArgs": [
3
+ "tests"
4
+ ],
5
+ "python.testing.unittestEnabled": false,
6
+ "python.testing.pytestEnabled": true
7
+ }
@@ -0,0 +1,133 @@
1
+
2
+ # Contributor Covenant Code of Conduct
3
+
4
+ ## Our Pledge
5
+
6
+ We as members, contributors, and leaders pledge to make participation in our
7
+ community a harassment-free experience for everyone, regardless of age, body
8
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
9
+ identity and expression, level of experience, education, socio-economic status,
10
+ nationality, personal appearance, race, caste, color, religion, or sexual
11
+ identity and orientation.
12
+
13
+ We pledge to act and interact in ways that contribute to an open, welcoming,
14
+ diverse, inclusive, and healthy community.
15
+
16
+ ## Our Standards
17
+
18
+ Examples of behavior that contributes to a positive environment for our
19
+ community include:
20
+
21
+ * Demonstrating empathy and kindness toward other people
22
+ * Being respectful of differing opinions, viewpoints, and experiences
23
+ * Giving and gracefully accepting constructive feedback
24
+ * Accepting responsibility and apologizing to those affected by our mistakes,
25
+ and learning from the experience
26
+ * Focusing on what is best not just for us as individuals, but for the overall
27
+ community
28
+
29
+ Examples of unacceptable behavior include:
30
+
31
+ * The use of sexualized language or imagery, and sexual attention or advances of
32
+ any kind
33
+ * Trolling, insulting or derogatory comments, and personal or political attacks
34
+ * Public or private harassment
35
+ * Publishing others' private information, such as a physical or email address,
36
+ without their explicit permission
37
+ * Other conduct which could reasonably be considered inappropriate in a
38
+ professional setting
39
+
40
+ ## Enforcement Responsibilities
41
+
42
+ Community leaders are responsible for clarifying and enforcing our standards of
43
+ acceptable behavior and will take appropriate and fair corrective action in
44
+ response to any behavior that they deem inappropriate, threatening, offensive,
45
+ or harmful.
46
+
47
+ Community leaders have the right and responsibility to remove, edit, or reject
48
+ comments, commits, code, wiki edits, issues, and other contributions that are
49
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
50
+ decisions when appropriate.
51
+
52
+ ## Scope
53
+
54
+ This Code of Conduct applies within all community spaces, and also applies when
55
+ an individual is officially representing the community in public spaces.
56
+ Examples of representing our community include using an official email address,
57
+ posting via an official social media account, or acting as an appointed
58
+ representative at an online or offline event.
59
+
60
+ ## Enforcement
61
+
62
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
63
+ reported to the community leaders responsible for enforcement at
64
+ info@bedrock.engineer.
65
+ All complaints will be reviewed and investigated promptly and fairly.
66
+
67
+ All community leaders are obligated to respect the privacy and security of the
68
+ reporter of any incident.
69
+
70
+ ## Enforcement Guidelines
71
+
72
+ Community leaders will follow these Community Impact Guidelines in determining
73
+ the consequences for any action they deem in violation of this Code of Conduct:
74
+
75
+ ### 1. Correction
76
+
77
+ **Community Impact**: Use of inappropriate language or other behavior deemed
78
+ unprofessional or unwelcome in the community.
79
+
80
+ **Consequence**: A private, written warning from community leaders, providing
81
+ clarity around the nature of the violation and an explanation of why the
82
+ behavior was inappropriate. A public apology may be requested.
83
+
84
+ ### 2. Warning
85
+
86
+ **Community Impact**: A violation through a single incident or series of
87
+ actions.
88
+
89
+ **Consequence**: A warning with consequences for continued behavior. No
90
+ interaction with the people involved, including unsolicited interaction with
91
+ those enforcing the Code of Conduct, for a specified period of time. This
92
+ includes avoiding interactions in community spaces as well as external channels
93
+ like social media. Violating these terms may lead to a temporary or permanent
94
+ ban.
95
+
96
+ ### 3. Temporary Ban
97
+
98
+ **Community Impact**: A serious violation of community standards, including
99
+ sustained inappropriate behavior.
100
+
101
+ **Consequence**: A temporary ban from any sort of interaction or public
102
+ communication with the community for a specified period of time. No public or
103
+ private interaction with the people involved, including unsolicited interaction
104
+ with those enforcing the Code of Conduct, is allowed during this period.
105
+ Violating these terms may lead to a permanent ban.
106
+
107
+ ### 4. Permanent Ban
108
+
109
+ **Community Impact**: Demonstrating a pattern of violation of community
110
+ standards, including sustained inappropriate behavior, harassment of an
111
+ individual, or aggression toward or disparagement of classes of individuals.
112
+
113
+ **Consequence**: A permanent ban from any sort of public interaction within the
114
+ community.
115
+
116
+ ## Attribution
117
+
118
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119
+ version 2.1, available at
120
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
121
+
122
+ Community Impact Guidelines were inspired by
123
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124
+
125
+ For answers to common questions about this code of conduct, see the FAQ at
126
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
127
+ [https://www.contributor-covenant.org/translations][translations].
128
+
129
+ [homepage]: https://www.contributor-covenant.org
130
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
131
+ [Mozilla CoC]: https://github.com/mozilla/diversity
132
+ [FAQ]: https://www.contributor-covenant.org/faq
133
+ [translations]: https://www.contributor-covenant.org/translations
@@ -0,0 +1,209 @@
1
+ Metadata-Version: 2.4
2
+ Name: bedrock-ge
3
+ Version: 0.2.4
4
+ Summary: Bedrock's Python library for geotechnical engineering.
5
+ Project-URL: Homepage, https://bedrock.engineer/
6
+ Project-URL: Source, https://github.com/bedrock-engineer/bedrock-ge
7
+ Project-URL: Documentation, https://bedrock.engineer/docs/
8
+ Project-URL: Tracker, https://github.com/bedrock-engineer/bedrock-ge/issues
9
+ Author-email: Bedrock <info@bedrock.engineer>
10
+ License: Apache Software License (Apache 2.0)
11
+ License-File: LICENSE
12
+ Keywords: aec,aeco,ags,ags3,ags4,bedrock,bim,borehole,borehole-data,civil-engineering,engineering-geology,geo-bim,geoscience-bim,geosciences,geospatial,geospatial-data,geostatistics,geotech,geotechnical,geotechnical-data,geotechnical-engineering,geotechnics,gi-data,gis,ground-engineering,ground-investigation,ground-investigation-data,subsurface,underground
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Education
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python
19
+ Classifier: Programming Language :: Python :: 3 :: Only
20
+ Classifier: Programming Language :: Python :: 3.9
21
+ Classifier: Programming Language :: Python :: 3.10
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Topic :: Scientific/Engineering
26
+ Classifier: Topic :: Scientific/Engineering :: GIS
27
+ Requires-Python: >=3.9
28
+ Requires-Dist: geopandas~=1.0
29
+ Requires-Dist: openpyxl~=3.0
30
+ Requires-Dist: pandera>=0.23.0
31
+ Requires-Dist: python-ags4~=1.0
32
+ Requires-Dist: sqlmodel>=0.0.22
33
+ Description-Content-Type: text/markdown
34
+
35
+ <figure style="margin-inline: block;">
36
+ <img src="https://bedrock.engineer/public/Bedrock_TextRight.png" alt="Bedrock logo" width="75%"/>
37
+ </figure>
38
+
39
+ <h3 style="margin-inline: block;">Bedrock, the Open Source Foundation for Geotechnical Engineering</h3>
40
+
41
+ ---
42
+
43
+ 🌐 **Website:** <https://bedrock.engineer/>
44
+
45
+ 📃 **Documentation:** <https://bedrock.engineer/docs>
46
+
47
+ 📃 **API Reference:** <https://bedrock.engineer/reference/>
48
+
49
+ 🖥️ **Source Code:** <https://github.com/bedrock-engineer/bedrock-ge>
50
+
51
+ 🐍 **`bedrock-ge` on PyPI:** <https://pypi.org/project/bedrock-ge/>
52
+
53
+ 🔗 **LinkedIn:** <https://www.linkedin.com/company/bedrock-engineer>
54
+
55
+ ---
56
+
57
+ ## Overview
58
+
59
+ > **Definition of Bedrock**
60
+ >
61
+ > In an abstract sense, the bedrock refers to the main principles something is based on. [1]
62
+ >
63
+ > In the real world, the bedrock is the hard area of rock in the ground that holds up the loose soil above. [1]
64
+ >
65
+ > In many civil engineering projects, the identification of the bedrock through digging, drilling or geophysical methods is an important task, which greatly influences (geotechnical) design. [2]
66
+ >
67
+ > Sources: [[1] Bedrock | Cambridge Dictionary](https://dictionary.cambridge.org/us/dictionary/english/bedrock), [[2] Bedrock | Wikipedia](https://en.wikipedia.org/wiki/Bedrock)
68
+
69
+ Ground Investigation (GI) data is often trapped in legacy formats that limit analysis and visualization possibilities.
70
+ `bedrock-ge` lets you transform this data from specialized geotechnical formats and common tabular formats (Excel, CSV) into modern, standardized geospatial data.
71
+
72
+ This standardization lets you bridge the gap between raw geotechnical data, the modern Python (geo)scientific ecosystem and modern geospatial tools.
73
+ This gives geotechnical engineers greater flexibility in visualization, modeling, and integration across different software environments while avoiding vendor lock-in.
74
+ For example, this enables connecting your GI data with GIS as well as BIM environments through [platforms like Speckle](#-put-your-gi-data-into-speckle).
75
+
76
+ The purpose of Bedrock is NOT to become THE standard for geotechnical data, because [we don't need 15 instead of 14 competing standards](https://xkcd.com/927/).
77
+
78
+ ## Highlights
79
+
80
+ ### 📖 Read / write Ground Investigation (GI) data in different formats
81
+
82
+ | Data Format | Read | Write |
83
+ | ----------- | ---- | ----- |
84
+ | AGS 3 | ✅ | ❌ |
85
+ | AGS 4 | ✅ | ✅ |
86
+ | Excel | ✅ | ✅ |
87
+ | CSV | ✅ | ✅ |
88
+ | JSON | ✅ | ✅ |
89
+ | GeoJSON | ✅ | ✅ |
90
+
91
+ Do you need another format? Like [DIGGS](https://diggsml.org/), [NADAG](https://www.ngu.no/geologisk-kartlegging/om-nadag-nasjonal-database-grunnundersokelser), [GEF](https://publicwiki.deltares.nl/display/STREAM/Dutch+National+GEF+Standards), or something else?
92
+ Let us know by creating an [issue](https://github.com/bedrock-engineer/bedrock-ge/issues) or starting a [discussion](https://github.com/orgs/bedrock-engineer/discussions).
93
+
94
+ Also, if you have a project with publicly available GI data, please share that in a [discussion](https://github.com/orgs/bedrock-engineer/discussions), such that we can create a tutorial from it.
95
+
96
+ ### ✅ Validate your GI data
97
+
98
+ `bedrock-ge` comes with data validation to make sure that you can combine Ground Investigation data from multiple files into a single geospatial database with consistent relationships between GI locations, samples, in-situ measurements and lab tests.
99
+
100
+ This data validation mechanism (based on [`pandera`](https://pandera.readthedocs.io/en/stable/)) is easily extensible, giving you the power to add your own data validation criteria.
101
+
102
+ ### 🗺️ Put your GI data from multiple files into a single 3D geospatial database
103
+
104
+ For example, you can take GI data from 100 AGS files and combine them into a single a [GeoPackage](https://en.wikipedia.org/wiki/GeoPackage) ([like a Shapefile, but then waaay better](http://switchfromshapefile.org/)). Such a GeoPackage can then be loaded into ArcGIS, where you can visualize your GI data in 3D:
105
+
106
+ <figure style="margin-inline: block; display: block;">
107
+ <img src="https://bedrock.engineer/public/images/KaiTak_BrGI_ArcGIS.webp" alt="Kai Tak, Hong Kong, 3D GI data visualization in ArcGIS" width="90%"/>
108
+ <figcaption>
109
+ GI data in Kai Tak, Hong Kong. <a href="https://arcg.is/0r9DG9">Click here to explore for yourself.</a>
110
+ </figcaption>
111
+ </figure>
112
+
113
+ ### 🟦 Put your GI data into Speckle
114
+
115
+ From ArcGIS or QGIS you can publish your GI data to [Speckle](https://speckle.systems/) and then visualize it together with your ground models and civil engineering designs:
116
+
117
+ <figure style="margin-inline: block; display: block;">
118
+ <img src="https://bedrock.engineer/public/images/KaiTak_BrGI_Speckle.png" alt="Kai Tak, Hong Kong, data from many sources in Speckle." width="90%"/>
119
+ <figcaption>
120
+ Models from Rhino, Revit, Civil3D + context & GI data from Q/ArcGIS. <a href="https://app.speckle.systems/projects/013aaf06e7/models/0fa0287ba8,1cbe68ed69,44c8d1ecae,7f9d99cae2,9535541c2b,a739490298,ff81bfa02b">Click here to explore for yourself.</a>
121
+ </figcaption>
122
+ </figure>
123
+
124
+ <figure style="margin-inline: block; display: block;">
125
+ <img src="https://bedrock.engineer/public/images/WekaHills_Speckle.webp" alt="GI data, the derived Leapfrog ground model and a tunnel in Speckle." width="90%"/>
126
+ <figcaption>
127
+ GI data, the derived Leapfrog ground model and a tunnel in Speckle. <a href="https://app.speckle.systems/projects/7a489ac0d4/models/$epsg:2193-7839%2Fgeo%2Fgeology-model,65b4cf97d5,9069ef2b2b">Click here to explore for yourself.</a>
128
+ </figcaption>
129
+ </figure>
130
+
131
+ Moreover, your GI data becomes available in all the software that [Speckle has connectors for](https://app.speckle.systems/downloads).
132
+
133
+ ### 🔓 Free and Open Source Software
134
+
135
+ `bedrock-ge` is Free and Open Source Software (FOSS), meaning it gives you full access to the code, and you can customize `bedrock-ge` to integrate with other tools and fit your workflows and project needs.
136
+
137
+ As the name implies, FOSS is free to use, so you're not tied to expensive software licenses or locked into a specific software vendor.
138
+
139
+ You can give [feedback](#-feedback) and [contribute](#-contributing), such that together we can build the tools we've always wanted and needed.
140
+
141
+ ## Installation
142
+
143
+ We recommend to use [`uv`](https://docs.astral.sh/uv/) to manage Python for you.
144
+ Using `uv`, you can add `bedrock-ge` to your Python project and install it in your project's virtual environment by running:
145
+
146
+ ```bash
147
+ uv add bedrock-ge
148
+ ```
149
+
150
+ It's also possible to install `bedrock-ge` from [PyPI](https://pypi.org/project/bedrock-ge/) (Python Packaging Index) using `pip`:
151
+
152
+ ```bash
153
+ pip install bedrock-ge
154
+ ```
155
+
156
+ ## Feedback
157
+
158
+ Got some feedback, a great idea, running into problems when working with Bedrock or just want to ask some questions?
159
+
160
+ Please feel free to:
161
+
162
+ 1. Open an issue for feature requests or bug reports: [`bedrock-ge` issues](https://github.com/bedrock-engineer/bedrock-ge/issues),
163
+ 2. Start a discussion in this GitHub repo: [Bedrock discussions](https://github.com/orgs/bedrock-engineer/discussions),
164
+ 3. Or start a discussion on the Speckle community forum if that's more appropriate: [Speckle community forum](https://speckle.community/)
165
+
166
+ All feedback and engagement with the Bedrock community is welcome.
167
+
168
+ ## Contributing
169
+
170
+ Contributing isn't scary. Contributing isn't just about writing code:
171
+
172
+ - Spread the word about Bedrock
173
+ - Use Bedrock and provide [feedback](#-feedback)
174
+ - Share how you use Bedrock
175
+ - Help each other out, e.g. by replying to questions in the [discussions](https://github.com/orgs/bedrock-engineer/discussions) or [`bedrock-ge` issues](https://github.com/bedrock-engineer/bedrock-ge/issues)
176
+ - Documentation and tutorials
177
+ - Most pages on the [bedrock.engineer](https://bedrock.engineer/) website can be edited, so if you see a spelling mistake or have a suggestion on how to explain something better, click this button to make a contribition.
178
+
179
+ <figure style="margin-inline: block;">
180
+ <img src="https://bedrock.engineer/public/images/EditThisPage.png" alt="Edit this page on GitHub button on bedrock.engineer" width="25%"/>
181
+ </figure>
182
+
183
+ - If you would like to contribute code, awesome!
184
+ Please create an [issue](https://github.com/bedrock-engineer/bedrock-ge/issues) for what you'd like to contribute. If you don't know how to get started, please indicate this in your issue, and we'll help you out.
185
+
186
+ ## Maintainers
187
+
188
+ ### Joost
189
+
190
+ > I studied geotechnical engineering and applied geophysics and then worked for [Arup](https://www.arup.com/) for 4 years as a geotechnical engineer and [computational designer](https://www.arup.com/services/computational-and-parametric-design/).
191
+ >
192
+ > During my time at Arup I worked a lot on bringing computational design into the world of geotechnical engineering, and on [bridging the gaps between geotechnical engineering and structural engineering](https://www.linkedin.com/posts/joost-gevaert_lightbim-lightbim-lightbim-activity-7234726439835549697-3xdO).
193
+ >
194
+ > Bedrock is the Free and Open Source Software (FOSS) that I wish existed when I worked as a geotechnical engineer at Arup.
195
+
196
+ ### Jules
197
+
198
+ > I studied Applied Geoscience (Petroleum Engineering Reservoir Geology) but frustration with technical software led me to learn to code and as a result, I mostly worked in software development.
199
+ >
200
+ > Over the past 5 years, I’ve worked on data-rich applications across various domains, specifically in frontend development.
201
+ > My primary interest is figuring out how to build tools for more thoughtful display and processing of technical information, for geoscience in particular.
202
+
203
+ ## Contributors
204
+
205
+ Please take a look at the [contributors page](https://github.com/bedrock-engineer/bedrock-ge/graphs/contributors).
206
+
207
+ ## Professional Support
208
+
209
+ While `bedrock-ge` is an Free Open Source Software (FOSS) project, you might be looking for professional support implementing it, contact <info@bedrock.engineer> for more information.
@@ -0,0 +1,175 @@
1
+ <figure style="margin-inline: block;">
2
+ <img src="https://bedrock.engineer/public/Bedrock_TextRight.png" alt="Bedrock logo" width="75%"/>
3
+ </figure>
4
+
5
+ <h3 style="margin-inline: block;">Bedrock, the Open Source Foundation for Geotechnical Engineering</h3>
6
+
7
+ ---
8
+
9
+ 🌐 **Website:** <https://bedrock.engineer/>
10
+
11
+ 📃 **Documentation:** <https://bedrock.engineer/docs>
12
+
13
+ 📃 **API Reference:** <https://bedrock.engineer/reference/>
14
+
15
+ 🖥️ **Source Code:** <https://github.com/bedrock-engineer/bedrock-ge>
16
+
17
+ 🐍 **`bedrock-ge` on PyPI:** <https://pypi.org/project/bedrock-ge/>
18
+
19
+ 🔗 **LinkedIn:** <https://www.linkedin.com/company/bedrock-engineer>
20
+
21
+ ---
22
+
23
+ ## Overview
24
+
25
+ > **Definition of Bedrock**
26
+ >
27
+ > In an abstract sense, the bedrock refers to the main principles something is based on. [1]
28
+ >
29
+ > In the real world, the bedrock is the hard area of rock in the ground that holds up the loose soil above. [1]
30
+ >
31
+ > In many civil engineering projects, the identification of the bedrock through digging, drilling or geophysical methods is an important task, which greatly influences (geotechnical) design. [2]
32
+ >
33
+ > Sources: [[1] Bedrock | Cambridge Dictionary](https://dictionary.cambridge.org/us/dictionary/english/bedrock), [[2] Bedrock | Wikipedia](https://en.wikipedia.org/wiki/Bedrock)
34
+
35
+ Ground Investigation (GI) data is often trapped in legacy formats that limit analysis and visualization possibilities.
36
+ `bedrock-ge` lets you transform this data from specialized geotechnical formats and common tabular formats (Excel, CSV) into modern, standardized geospatial data.
37
+
38
+ This standardization lets you bridge the gap between raw geotechnical data, the modern Python (geo)scientific ecosystem and modern geospatial tools.
39
+ This gives geotechnical engineers greater flexibility in visualization, modeling, and integration across different software environments while avoiding vendor lock-in.
40
+ For example, this enables connecting your GI data with GIS as well as BIM environments through [platforms like Speckle](#-put-your-gi-data-into-speckle).
41
+
42
+ The purpose of Bedrock is NOT to become THE standard for geotechnical data, because [we don't need 15 instead of 14 competing standards](https://xkcd.com/927/).
43
+
44
+ ## Highlights
45
+
46
+ ### 📖 Read / write Ground Investigation (GI) data in different formats
47
+
48
+ | Data Format | Read | Write |
49
+ | ----------- | ---- | ----- |
50
+ | AGS 3 | ✅ | ❌ |
51
+ | AGS 4 | ✅ | ✅ |
52
+ | Excel | ✅ | ✅ |
53
+ | CSV | ✅ | ✅ |
54
+ | JSON | ✅ | ✅ |
55
+ | GeoJSON | ✅ | ✅ |
56
+
57
+ Do you need another format? Like [DIGGS](https://diggsml.org/), [NADAG](https://www.ngu.no/geologisk-kartlegging/om-nadag-nasjonal-database-grunnundersokelser), [GEF](https://publicwiki.deltares.nl/display/STREAM/Dutch+National+GEF+Standards), or something else?
58
+ Let us know by creating an [issue](https://github.com/bedrock-engineer/bedrock-ge/issues) or starting a [discussion](https://github.com/orgs/bedrock-engineer/discussions).
59
+
60
+ Also, if you have a project with publicly available GI data, please share that in a [discussion](https://github.com/orgs/bedrock-engineer/discussions), such that we can create a tutorial from it.
61
+
62
+ ### ✅ Validate your GI data
63
+
64
+ `bedrock-ge` comes with data validation to make sure that you can combine Ground Investigation data from multiple files into a single geospatial database with consistent relationships between GI locations, samples, in-situ measurements and lab tests.
65
+
66
+ This data validation mechanism (based on [`pandera`](https://pandera.readthedocs.io/en/stable/)) is easily extensible, giving you the power to add your own data validation criteria.
67
+
68
+ ### 🗺️ Put your GI data from multiple files into a single 3D geospatial database
69
+
70
+ For example, you can take GI data from 100 AGS files and combine them into a single a [GeoPackage](https://en.wikipedia.org/wiki/GeoPackage) ([like a Shapefile, but then waaay better](http://switchfromshapefile.org/)). Such a GeoPackage can then be loaded into ArcGIS, where you can visualize your GI data in 3D:
71
+
72
+ <figure style="margin-inline: block; display: block;">
73
+ <img src="https://bedrock.engineer/public/images/KaiTak_BrGI_ArcGIS.webp" alt="Kai Tak, Hong Kong, 3D GI data visualization in ArcGIS" width="90%"/>
74
+ <figcaption>
75
+ GI data in Kai Tak, Hong Kong. <a href="https://arcg.is/0r9DG9">Click here to explore for yourself.</a>
76
+ </figcaption>
77
+ </figure>
78
+
79
+ ### 🟦 Put your GI data into Speckle
80
+
81
+ From ArcGIS or QGIS you can publish your GI data to [Speckle](https://speckle.systems/) and then visualize it together with your ground models and civil engineering designs:
82
+
83
+ <figure style="margin-inline: block; display: block;">
84
+ <img src="https://bedrock.engineer/public/images/KaiTak_BrGI_Speckle.png" alt="Kai Tak, Hong Kong, data from many sources in Speckle." width="90%"/>
85
+ <figcaption>
86
+ Models from Rhino, Revit, Civil3D + context & GI data from Q/ArcGIS. <a href="https://app.speckle.systems/projects/013aaf06e7/models/0fa0287ba8,1cbe68ed69,44c8d1ecae,7f9d99cae2,9535541c2b,a739490298,ff81bfa02b">Click here to explore for yourself.</a>
87
+ </figcaption>
88
+ </figure>
89
+
90
+ <figure style="margin-inline: block; display: block;">
91
+ <img src="https://bedrock.engineer/public/images/WekaHills_Speckle.webp" alt="GI data, the derived Leapfrog ground model and a tunnel in Speckle." width="90%"/>
92
+ <figcaption>
93
+ GI data, the derived Leapfrog ground model and a tunnel in Speckle. <a href="https://app.speckle.systems/projects/7a489ac0d4/models/$epsg:2193-7839%2Fgeo%2Fgeology-model,65b4cf97d5,9069ef2b2b">Click here to explore for yourself.</a>
94
+ </figcaption>
95
+ </figure>
96
+
97
+ Moreover, your GI data becomes available in all the software that [Speckle has connectors for](https://app.speckle.systems/downloads).
98
+
99
+ ### 🔓 Free and Open Source Software
100
+
101
+ `bedrock-ge` is Free and Open Source Software (FOSS), meaning it gives you full access to the code, and you can customize `bedrock-ge` to integrate with other tools and fit your workflows and project needs.
102
+
103
+ As the name implies, FOSS is free to use, so you're not tied to expensive software licenses or locked into a specific software vendor.
104
+
105
+ You can give [feedback](#-feedback) and [contribute](#-contributing), such that together we can build the tools we've always wanted and needed.
106
+
107
+ ## Installation
108
+
109
+ We recommend to use [`uv`](https://docs.astral.sh/uv/) to manage Python for you.
110
+ Using `uv`, you can add `bedrock-ge` to your Python project and install it in your project's virtual environment by running:
111
+
112
+ ```bash
113
+ uv add bedrock-ge
114
+ ```
115
+
116
+ It's also possible to install `bedrock-ge` from [PyPI](https://pypi.org/project/bedrock-ge/) (Python Packaging Index) using `pip`:
117
+
118
+ ```bash
119
+ pip install bedrock-ge
120
+ ```
121
+
122
+ ## Feedback
123
+
124
+ Got some feedback, a great idea, running into problems when working with Bedrock or just want to ask some questions?
125
+
126
+ Please feel free to:
127
+
128
+ 1. Open an issue for feature requests or bug reports: [`bedrock-ge` issues](https://github.com/bedrock-engineer/bedrock-ge/issues),
129
+ 2. Start a discussion in this GitHub repo: [Bedrock discussions](https://github.com/orgs/bedrock-engineer/discussions),
130
+ 3. Or start a discussion on the Speckle community forum if that's more appropriate: [Speckle community forum](https://speckle.community/)
131
+
132
+ All feedback and engagement with the Bedrock community is welcome.
133
+
134
+ ## Contributing
135
+
136
+ Contributing isn't scary. Contributing isn't just about writing code:
137
+
138
+ - Spread the word about Bedrock
139
+ - Use Bedrock and provide [feedback](#-feedback)
140
+ - Share how you use Bedrock
141
+ - Help each other out, e.g. by replying to questions in the [discussions](https://github.com/orgs/bedrock-engineer/discussions) or [`bedrock-ge` issues](https://github.com/bedrock-engineer/bedrock-ge/issues)
142
+ - Documentation and tutorials
143
+ - Most pages on the [bedrock.engineer](https://bedrock.engineer/) website can be edited, so if you see a spelling mistake or have a suggestion on how to explain something better, click this button to make a contribition.
144
+
145
+ <figure style="margin-inline: block;">
146
+ <img src="https://bedrock.engineer/public/images/EditThisPage.png" alt="Edit this page on GitHub button on bedrock.engineer" width="25%"/>
147
+ </figure>
148
+
149
+ - If you would like to contribute code, awesome!
150
+ Please create an [issue](https://github.com/bedrock-engineer/bedrock-ge/issues) for what you'd like to contribute. If you don't know how to get started, please indicate this in your issue, and we'll help you out.
151
+
152
+ ## Maintainers
153
+
154
+ ### Joost
155
+
156
+ > I studied geotechnical engineering and applied geophysics and then worked for [Arup](https://www.arup.com/) for 4 years as a geotechnical engineer and [computational designer](https://www.arup.com/services/computational-and-parametric-design/).
157
+ >
158
+ > During my time at Arup I worked a lot on bringing computational design into the world of geotechnical engineering, and on [bridging the gaps between geotechnical engineering and structural engineering](https://www.linkedin.com/posts/joost-gevaert_lightbim-lightbim-lightbim-activity-7234726439835549697-3xdO).
159
+ >
160
+ > Bedrock is the Free and Open Source Software (FOSS) that I wish existed when I worked as a geotechnical engineer at Arup.
161
+
162
+ ### Jules
163
+
164
+ > I studied Applied Geoscience (Petroleum Engineering Reservoir Geology) but frustration with technical software led me to learn to code and as a result, I mostly worked in software development.
165
+ >
166
+ > Over the past 5 years, I’ve worked on data-rich applications across various domains, specifically in frontend development.
167
+ > My primary interest is figuring out how to build tools for more thoughtful display and processing of technical information, for geoscience in particular.
168
+
169
+ ## Contributors
170
+
171
+ Please take a look at the [contributors page](https://github.com/bedrock-engineer/bedrock-ge/graphs/contributors).
172
+
173
+ ## Professional Support
174
+
175
+ While `bedrock-ge` is an Free Open Source Software (FOSS) project, you might be looking for professional support implementing it, contact <info@bedrock.engineer> for more information.
@@ -11,7 +11,8 @@ Follow [Semantic Versioning](https://semver.org/) (e.g., `1.0.0`, `1.1.0`, `1.1.
11
11
  Update the version number in:
12
12
 
13
13
  - [`pyproject.toml`](pyproject.toml)
14
- - [`/src/bedrock/__init__.py`](/src/bedrock/__init__.py)
14
+ - [`/src/bedrock/__init__.py`](/src/bedrock_ge/__init__.py)
15
+ - Inline script dependencies of marimo notebooks in [`examples`](/examples/)
15
16
 
16
17
  ## 2. Update the Changelog
17
18
 
@@ -1,7 +1,7 @@
1
1
  # /// script
2
2
  # requires-python = ">=3.12"
3
3
  # dependencies = [
4
- # "bedrock-ge==0.2.2",
4
+ # "bedrock-ge==0.2.3",
5
5
  # "chardet==5.2.0",
6
6
  # "folium==0.19.5",
7
7
  # "geopandas==1.0.1",
@@ -167,7 +167,7 @@ def _(mo):
167
167
 
168
168
  ### From GI dataframe to `geopandas.GeoDataFrame`
169
169
 
170
- In order to construct the 3D simple feature GIS geometry of the `Location`s, `Sample`s and `InSitu_TEST`s, a few more columns have to be calcualated for each of these tables: `elevation_at_top` and `elevation_at_base` if the in-situ test or sample was taken over a depth interval.
170
+ In order to construct the 3D simple feature GIS geometry of the `Location`s, `Sample`s and `InSitu_TEST`s, a few more columns have to be calculated for each of these tables: `elevation_at_top` and `elevation_at_base` if the in-situ test or sample was taken over a depth interval.
171
171
 
172
172
  The 3D simple feature GIS geometry as [WKT](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry) for point tests and samples:
173
173
  `POINT (easting northing elevation_at_top)`
@@ -341,7 +341,7 @@ def _(mo):
341
341
 
342
342
  <iframe title="Speckle" src="https://app.speckle.systems/projects/013aaf06e7/models/1cbe68ed69,44c8d1ecae,9535541c2b,a739490298,ff81bfa02b#embed=%7B%22isEnabled%22%3Atrue%7D" width="100%" height="400" frameborder="0"></iframe>
343
343
 
344
- Additionally, you can load the GI data in other software that Speckle has a connector for, such as Rhino / Grasshopper to enable parameteric geotechnical engineering workflows.
344
+ Additionally, you can load the GI data in other software that Speckle has a connector for, such as Rhino / Grasshopper to enable parametric geotechnical engineering workflows.
345
345
  """
346
346
  )
347
347
  return
@@ -410,7 +410,7 @@ def _(
410
410
  )
411
411
  check_no_gis_brgi_database(brgi_db_from_1_ags3_file)
412
412
  print(
413
- f"\n✅ Succesfully converted {file_name} to Bedrock GI database and validated!\n"
413
+ f"\n✅ Successfully converted {file_name} to Bedrock GI database and validated!\n"
414
414
  )
415
415
  print(
416
416
  f"🧵 Concatenating Bedrock GI database for {file_name} to existing Bedrock GI database...\n"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "bedrock-ge"
3
- version = "0.2.3"
3
+ version = "0.2.4"
4
4
  description = "Bedrock's Python library for geotechnical engineering."
5
5
  authors = [
6
6
  {name = "Bedrock", email = "info@bedrock.engineer"}
@@ -69,12 +69,9 @@ Source = "https://github.com/bedrock-engineer/bedrock-ge"
69
69
  Documentation = "https://bedrock.engineer/docs/"
70
70
  Tracker = "https://github.com/bedrock-engineer/bedrock-ge/issues"
71
71
 
72
- [build-system]
73
- requires = ["hatchling"]
74
- build-backend = "hatchling.build"
75
72
 
76
- [tool.uv]
77
- dev-dependencies = [
73
+ [dependency-groups]
74
+ dev = [
78
75
  "duckdb>=1.2.2",
79
76
  "folium>=0.17.0",
80
77
  "frictionless[excel]>=4.40.8",
@@ -85,11 +82,18 @@ dev-dependencies = [
85
82
  "mypy>=1.11.2",
86
83
  "nbconvert>=7.16.6",
87
84
  "pandas-stubs>=2.2.2.240807",
88
- "pytest>=8.3.3",
89
85
  "ruff>=0.6.7",
90
86
  "sqlglot>=26.12.1",
91
87
  ]
92
88
 
89
+ tests = [
90
+ "pytest>=8.3.3",
91
+ ]
92
+
93
+ [build-system]
94
+ requires = ["hatchling"]
95
+ build-backend = "hatchling.build"
96
+
93
97
  [tool.ruff]
94
98
  line-length = 88
95
99