Open leendertvanwolfswinkel opened 1 year ago
Testing data would be very helpful to properly test this functionality.
@ldebek sorry this took so long... this zip contains:
@ldebek I tested it with the test data and this config json Stuwen importeren als weir.json to import the layer "Stuw" as weir. Feedback:
Hi @ldebek I did some further testing with the new version. The channel editing function now works. I have some further wishes:
The best would be to handle them as follows:
Snap the point only to the nearest channel
If there are > 1 nearest channels (exact same distance), do not process the point
When the import is finished, but some points have been skipped, show a warning telling the user which points where skipped. Would be extra nice if a point layer of "skipped points" could be added to the project
[ ] When the channel is split, some parts of the channel may end up without a cross-section location. If cutting up the channel results in channels without cross-section locations, please copy the nearest cross-section location from the original channel to that new channel:
[ ] Remove the new options from the Pipes importer
I would like to release the "import point structures" tool that was developed as part of the MIKE importer separately. For users, Integrating it in the "Import culverts" algorithm would make workflows for users the easiest. I propose to add five arguments to the "conversion settings" section of the config JSON (and to the GUI once that is finished):
The
length_source_field
contains the name of the field in the source layer that contains the length that the line feature should have. This can also beNone
. This setting is ignored when the input has a line geometry.The
length_fallback_value
is a float value to be used whenlength_source_field
isNone
or that attribute is NULL for this specific feature. This setting is ignored when the input has a line geometry.If
edit_channels
istrue
and the source layer has a point geometry, the behaviour is as in the algorithm that you wrote for the mike converter.If
edit_channels
istrue
and the source layer has a linestring geometry, and the start and end vertices are both within snapping distance of the same channel, it should work the same as in the algorithm that you wrote for the mike converter. otherwise, use the same logic as already exists in the culvert importerIf
edit_channels
isfalse
and the source layer has a point geometry, use the value inazimuth_source_field
or if not availableazimuth_fallback_value
to draw a line. After having the line, the same logic can be applied as already exists in the culvert importerIf
edit_channels
isfalse
and the source layer has a line geometry, use the same logic as already exists in the culvert importer[ ] Also update the UI
When this has been implemented, we can simply create config files that work for the mike converter intermediate outputs