nens / threedi-schematisation-editor

QGIS tool for editing schematisations
0 stars 0 forks source link

Support 1D vegetation in Schematisation Editor #188

Closed leendertvanwolfswinkel closed 5 months ago

leendertvanwolfswinkel commented 1 year ago

In schema version 219, the following new fields where added to the spatialite:

v2_cross_section_location (these are all float fields)

v2_cross_section_definition (these are all string fields containing space-separated float values)

image.png image.png image.png
leendertvanwolfswinkel commented 7 months ago

Feedback:

Perhaps it would be best to make this all more explicit in the attribute form, using radio buttons and a checkable group for Vegetation. Like this:

image.png image.png
leendertvanwolfswinkel commented 7 months ago

I tested your updated version; I think we are almost there. w.r.t. the scrollbars, see my explanation on Slack.

W.r.t. the radio buttons / checkable group idea: I think we can do without it as you mentioned that is is quite complicated to implement. To make it clear to the user how it works, we can just change the text "Friction coefficients per segment" to "Friction coefficients per segment (overrides single friction value)" and "Vegetation parameter per segment" to "Vegetation parameters per segment (overrides single vegetation values)"

However, I found another (important) issue; the vegetation values from v2_cross_section_location are not imported correctly:

image.png

And a very minor thing, please add spaces here:

image.png
leendertvanwolfswinkel commented 7 months ago

@ldebek I did further testing and had some discussions with my colleague. I have identified the following to do's:

Cross-section shape = YZ

Cross-section shape = Tabulated rectangle, Tabulated trapezium

Cross-section shape anything else

ldebek commented 7 months ago

@leendertvanwolfswinkel Tables are cleared, but upon committing the changes, the data comes back. issue was skipped for a time beign as we discussed.

ldebek commented 7 months ago

@leendertvanwolfswinkel Threedi PR reffers to the threedi-schema 0.219.*, so that shouldn't be any action required (only creation of the fresh build might be needed).

leendertvanwolfswinkel commented 7 months ago

@ldebek ok I re-ran the github action for it. I'll test asap!