jkall / qgis-midvatten-plugin

Midvatten plugin for QGIS
23 stars 8 forks source link

Sectionplot: colorize the surface DEM-line based on a soil information layer #254

Open HenrikSpa opened 6 years ago

HenrikSpa commented 6 years ago

It would be nice to make the surface DEM-line to, instead of being a single color, be colorized using a layer with soil information.

Some loud thinking:

HenrikSpa commented 5 years ago

An early "test"-version of this is now working in qgis3-branch. image

I haven't made any gui-changes for it yet (not sure where to put those settings).

The grading is done by plotting using fill_between using different alpha values (reducing alpha linearly currently). 10 plots works well while zoomed out, but it could be increased if needed to make the gradient finer.

image

The gradients currently extend 2 m below surface, but this could be adjusted also. Maybe % or y-axis or something.

Another example:

image

HenrikSpa commented 5 years ago

The plan is to make it generic so that any dem could be coloured by any polygon layer. (it uses geoshort and zz_stratigraphy_plots currently). The bedrock could be styled in a similar way.

HenrikSpa commented 5 years ago

It's in qgis3_secplot_dem_style, not in general qgis3-branch.

HenrikSpa commented 5 years ago

I've made a change to the way this works to better separate the bore hole stratigraphy from the surface layer stratigraphy. It now picks the color from the surface geology shapefile style instead of using the same colors and hatch as the bore hole stratigraphy.

Example of this: image