Closed leendertvanwolfswinkel closed 5 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:
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:
And a very minor thing, please add spaces here:
@ldebek I did further testing and had some discussions with my colleague. I have identified the following to do's:
threedi-schema
, 0.219.3 was released today. It correctly regenerates the v2_cross_section_location_view
. Please bump the version number in both threedi-schematisation-editor
and in this PR of ThreeDiToolbox
@leendertvanwolfswinkel Tables are cleared, but upon committing the changes, the data comes back.
issue was skipped for a time beign as we discussed.
@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).
@ldebek ok I re-ran the github action for it. I'll test asap!
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)
friction_values
vegetation_stem_densities
vegetation_stem_diameters
vegetation_heights
vegetation_drag_coefficients
[ ] Import/export to spatialite should be added.
[ ] The attribute form of Cross-section location should be changed as shown in the images below
[ ] The "friction values per segment" and all vegetation options should only be enabled if cross section shape = YZ and friction_type = Chézy with conveyance.
[ ] The "friction values per segment" and "vegetation parameters per segment" tables should have 1 fewer row than the "cross-section table"