Open MikeMillerGIS opened 7 years ago
In thinking, we could also expose the domain names and the subtype code, so the user will see that
Same for target layer
Mock Up
Merge work with #203
When pre-loading from source, we'll also have to change the way the GPtools work. At the moment, it searches for the svalue in the xml DomainMap. If it finds it, it sets the target value to the corresponding tvalue in the xml.
Theoretically if we pre-loaded the source values, all values within the domain will always get found. If you didn't map that source domain to a target domain, however, '(None)' gets mapped as opposed to the original source value. We will need to check if tvalue is '(None)' or not (or we will have to initialize the corresponding tvalue nodes to their svalue nodes) before mapping the value.
Implemented the above swap. Was just one line of code and it seems to work. There should be no issue now on the tool level.
if sourceValue == sourceTest or sourceValue == sValue:
# this will check numeric and non-numeric equivalency for current values in maps
found = True
try:
if dla.getTextValue(targetValues[i]) != "(None)":
newValue = dla.getTextValue(targetValues[i])
Should we look at a way to expose only the domains by subtypes, so for a cleaner list?
Could we add a pick list(checkboxes) to this dialog with all subtypes for the source and target?