BHoM / BHoM_Engine

Internal manipulation of the BHoM
GNU Lesser General Public License v3.0
26 stars 13 forks source link

Ground_Engine: Consolidate Stratum objects when they repeat #3271

Closed peterjamesnugent closed 1 month ago

peterjamesnugent commented 7 months ago

Description:

Input: Borehole and maybe some options for how we want to handle the data?

Process: Iterate over the Stratum in the Borehole, if the preceeding Stratum has the same Stratum.Legend - then combine them in to a single Stratum. If there is, a repeated layer e.g. the Borehole.Stratum.Select(x => x.Legend) = { "MG", "MG", "CHALK", "MG", "CLAY", "SANDSTONE"} then we will want to also rename the layers, i.e.:{"MG", "CHALK", "MG2"}

Output: There will need to be some discussion over how we handle the properties, for example the description of the sample, I propose for now if we combine two samples, the Stratum.Description would be something like: "0 - 0.4: Loose deposits of ..... 0.4 - 0.8: Firm deposits of...."

That way we do not risk losing any of the information.