-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling Null Values #39
Comments
This is a really good observation! Thank you for reporting it. If you don’t mind, what’s your use case or data source, in which NULL values are frequent? To be perfectly honest, at first, I was a bit hesitant to implement data mangling beyond a simple warning the user. There are simply too many different reasons why a data set might have NULL values, and - as you already wrote - no one-fits-all way of treating such features exists:
I’m still a bit divided on whether that should be something the plugin handles, or whether it should rather provide instructions on how to use QGIS’ existing data management tools to fill NULL values with a sensible value. The latter option would mean that users are necessarily aware of what they did to the input data; of course it comes at the price of a slight inconvenience. I’m currently travelling, so this change will take at least a few weeks, which also gives me more time to think about how to implement it, and how to integrate the warning(s) and option(s) into the user interface in an unobstrusive and accessible way. |
Adding an error message at minimum would be super helpful here (or even better gracefully handle them somehow). I was about to submit a bug report before realizing my issue is actually caused by a null value. The tool just exited with a cryptic log entry |
Indeed, that’s a cryptic error message. I now added a warning if NULL values are contained in an input data set (in the selected field). Could you test whether the new version (3.1.5rc, 93ecc3e) reliably prevents you from going forward with data sets containing NULL values? (download the archive using the link below, then install it using QGIS’ plugin manager->Install from ZIP) |
Great, thanks! I still tested it on Windows 10 (additionally to my own Gnome setup; both only QGIS 3.26), from the screenshot I assume you’re on MacOS. Just submitted a new version to QGIS’ plugin repository, it will take a few days until it’s approved and available as an update. I still plan to write a short discussion on the implications of the different ways of handling NULL values (omitting, filling with 0, filling with average, ...; see earlier comment in this thread), maybe as a wiki page on github, and would add a link pointing to that discussion to the error message. (Leaving this issue open until then) |
(note to self): The error message also still need to be translated! (re #30 ) |
The plugin requires all fields be assigned a value (i.e., cannot handle null values). This requires the user to either manually enter 0 or to use a layout with the areas with null values being omitted. It'd be great to have an option to treat nulls as 0 or to leave the areas with null values unchanged in area.
The text was updated successfully, but these errors were encountered: