jkall / qgis-midvatten-plugin

Midvatten plugin for QGIS
23 stars 8 forks source link

documentation of new section plot behaviour #323

Open jkall opened 5 years ago

jkall commented 5 years ago

This issue affects the "simon_merge" branch.

This branch allows the user to invoke section plot independently of if a polyline layer is the active layer. This might be OK, if it is obvious which of all layers that contains the profile defining the section to be plotted. But it may be difficult for the user to know how to define which is the profile line to be used for section plot.

But it also seems that something more is missing, because whenever a section plot is invoked without polyline layer activated, there are no digital elevation models listed in the section plot ui. On the other hand, if the section plot is invoked with a polyline layer activated, then the single band rasters are listed among possible digital elevation models.

Besides from this bug, the new section plot design which is found in the simon_merge branch is a great enhancement, far superior to the previous design.

HenrikSpa commented 5 years ago

This works as expected, but might need a clarification:

Maybe it could be solved by a bar message saying that no line layer was selected and that obsids will be lined up at equal distances instead?

One way could be to create a virtual line layer if its not selected and sample dem:s from that one (as well as line up the obsids according to it), but this is not how it works at the moment.

The plot is very useful now in docked mode as an added advantage of the new design.

jkall commented 5 years ago

Yes, a useful feature. Documentation is needed. A short notice in message bar would be nice. When this is included in master branch then the wiki needs to be updated as well. New screenshots and etc. A good starting issue to fix for non-developers if someone wants to contribute.

HenrikSpa commented 4 years ago

Added an info message about it.

StefanoMenichetti commented 3 years ago

Good morning Henrik and Joseph I'm Stefano from ARPAT, the new feature of section plot is very useful but unlucky it does actually a problem. I have selected one obs_line and some obs_points but obtain alternatively:

I'm not able, as in previous, to draw obs_points bars end dem trace by obs_line together. Where I wrong ?

Thank you very much in advance

Stefano

HenrikSpa commented 3 years ago

Hi! I'm not sure why you get that problem.

First, check if you have followed these steps:

  1. Make sure your database and DEM has the same projected coordinate system. WGS84 doesn't work.
  2. Select obs_points in the layer list and select obsids that have stratigraphy and are located in proximity to your profile line layer. (if they are located far away from the line, they might be projected at the first or last line node, if that node happens to be the closest one).
  3. Select your line layer (obs_lines) and select the line you want to use.
  4. Start the plot.
  5. On the settings tab, select a dem layer under "Digital Elevation Models" and choose Layers > Geology under "Bars". Also check that you have a barwidth > 0.0.
  6. Press "Replot" on the settings tab.

Do you still get the problem?

Regards, Henrik

StefanoMenichetti commented 3 years ago

Hi Henrik I'm sure all the Stephen are done. It's really strange my Qgis is Hannover ltr. Bars and dem profile work separate but not together Ottieni BlueMail per Android Il giorno 15 Mar 2021, alle ore 14:09, HenrikSpa @.***> ha scritto:

Hi!

I'm not sure why you get that problem.

First, check if you have followed these steps:

  1. Make sure your database and DEM has the same projected coordinate

system. WGS84 doesn't work.

  1. Select obs_points in the layer list and select obsids that have

stratigraphy and are located in proximity to your profile line layer. (if

they are located far away from the line, they might be projected at the

first or last line node, if that node happens to be the closest one).

  1. Select your line layer (obs_lines) and select the line you want to use.

  2. Start the plot.

  3. On the settings tab, select a dem layer under "Digital Elevation Models"

and choose Layers > Geology under "Bars". Also check that you have a

barwidth > 0.0.

  1. Press "Replot" on the settings tab.

Do you still get the problem?

Regards,

Henrik

StefanoMenichetti commented 3 years ago

Probably the problem stay in and old version of midvattdn db. I have this warning: _2021-03-19T16:08:33 INFO The database version appears to be older than 1.6.3. An upgrade is suggested! See https://github.com/jkall/qgis-midvatten-plugin/wiki/6.-Database-management#upgrade-database__ I've tried the instruction to upgrade it but they do not work _2021-03-19T16:08:44 CRITICAL Usage error: The layer obs_lines was not found! I'll do manually :-)

HenrikSpa commented 3 years ago

If you manage to update the database and it still doesn't work, please let me know and we can look at the problem again!

StefanoMenichetti commented 3 years ago

Thamk you very much Henrik I don't understand, I've imported in new sqlite obs_points, stratigraphy and draw a line but it still do not work. Again I can visualize in profile bar when obs_points is active and I've no possibilities to select dem or obs_lines with dem trace but with no bars. I've attached mi old mico_old.sqlite and new mico_new.sqlite database. removed removed I am very grateful to you

Stefano

StefanoMenichetti commented 3 years ago

I've found the problem starting from a new midvatten db with two only logs and a simple section. As you can see prgrma do not recognize obs_points layer. Why ? Probably has to do with new view_obs_points ? error.pdf

StefanoMenichetti commented 3 years ago

Here my simple midv removed

HenrikSpa commented 3 years ago

I loaded your supplied mico.sqlite and bottom.tif using Midvatten version 1.6.4 and QGIS version 3.16.3-Hannover.

Everything seems to work for me!

I loaded the Midvatten database using:

  1. Midvatten menu > Midvatten settings
  2. Tab DB, selecting spatialite.
  3. Choosing mico.sqlite as database.
  4. Midvatten menu > Load default db-layers to qgis.

5. I made sure the layer bottom.tif is visible. This is mandatory!

  1. I selected layer obs_points and then selected all obsids in the database.
  2. I selected layer obs_lines and selected the feature with obsid "sez 1".
  3. Started the section plot using the icon "Section plot".
  4. Selected the bottom in the dem list on the settings tab.
  5. Clicked replot.

I get both the line representing the bottom and the stratigraphy.

HenrikSpa commented 3 years ago

I was wrong about my step 5. It's no longer mandatory to have the DEM visible for it to work. It works while its not visible also.

HenrikSpa commented 3 years ago

One more thing!

Make sure you only have exactly ONE layer named obs_points and ONE layer named obs_lines in the layer list in QGIS!

StefanoMenichetti commented 3 years ago

I've developed too a new qgis project with only mico.sqie and bottom tif and everything work also for me :-) Probably there is some problem on old qgis project.

Thank you very much Henrik, and as always grateful to have given big future to my dear old Dbgeo :-D :-D

Good evening and weekend,

At soon,

Stefano