You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the values are double-quoted. This is not something the user did, this happens when you save the configuration as a template JSON.
When you import weirs using this configuration, the source attribute values are written as target attribute values, instead of being mapped according to the value map.
The current workaround that the user came up with is to load the template, remove all the double quotes from the value map, and run the import. That workaround works, but is obv. not the desirable way to go.
How to reproduce
Add stuw_servicedesk.gpkg to the project
Load a schematisation
Open the Import weirs dialog
Choose "stuw_servicedesk" as source layer
Load template "import weirs V&V.json"
Import the weirs
The friction values that are written to new, imported weirs are
Suggested solution
Take the source attribute data type into account when interpreting the values in the value map? Or convert the source attribute value to string before looking it up in the value map?
The text was updated successfully, but these errors were encountered:
Test data
topdesk 2410 0159.zip
Problem description
The configuration JSON in the test data contains this entry for
friction_value
:Note that the values are double-quoted. This is not something the user did, this happens when you save the configuration as a template JSON.
When you import weirs using this configuration, the source attribute values are written as target attribute values, instead of being mapped according to the value map.
The current workaround that the user came up with is to load the template, remove all the double quotes from the value map, and run the import. That workaround works, but is obv. not the desirable way to go.
How to reproduce
Suggested solution
Take the source attribute data type into account when interpreting the values in the value map? Or convert the source attribute value to string before looking it up in the value map?
The text was updated successfully, but these errors were encountered: