nens / threedi-schematisation-editor

QGIS tool for editing schematisations
0 stars 0 forks source link

Add support for point geometries source data to "import culverts/weirs/orifices" #167

Open leendertvanwolfswinkel opened 1 year ago

leendertvanwolfswinkel commented 1 year ago

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):

{
  "target_layer": "culvert",
  "conversion_settings": {
    "use_snapping": true,
    "snapping_distance": 0.5,
    "create_connection_nodes": true, 
    "length_source_field": "duiker_lengte", NEW
    "length_fallback_value": 10, NEW
    "azimuth_source_field": "duiker_richting", NEW
    "azimuth_fallback_value": 90, NEW
    "edit_channels": true NEW
  },

When this has been implemented, we can simply create config files that work for the mike converter intermediate outputs

ldebek commented 2 weeks ago

Testing data would be very helpful to properly test this functionality.

leendertvanwolfswinkel commented 2 weeks ago

@ldebek sorry this took so long... this zip contains:

Dommelerwaard.zip

leendertvanwolfswinkel commented 1 week ago

@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:

leendertvanwolfswinkel commented 2 days ago

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: