[Qgis-developer] Enhanced constraint violation error dialog while saving edits (feature request)

Martin Dobias wonder.sk at gmail.com
Fri Feb 12 04:26:11 EST 2010


On Sun, Feb 7, 2010 at 2:12 AM, Stefan Keller <sfkeller at gmail.com> wrote:
> Dear all,
>
> I'm referring to the thread "Visualizing topology errors and
> supporting topology editing" and got a probably small feature request.
>
> Look at following scenario:
> Joe defines before hand some constraints in the database - say not
> null, uniqueness, etc. - or even topology rules.
> Then Joe captures and/or updates some features with their geometry and
> attributes.
> After having entered three objects he wants to check the validity and
> hits a shortcut to do this (similar to change edit mode).
> He then gets a list of two errors in a modal dialog. There, every line
> indicates the feature id and the constraint violation text.
> When clicking on such a line, the respective feature is highlighted.
>
> Up to now, AFAIK, there's only the possibility to "change edit mode".
> When clicking on it, a dialog entitled "Error while changing attribute
> values" pops up and says "ERROR: null value in column "prov2name"
> violates not-null constraint" - even when there are more than one
> features affected.
>
> So my proposal is:
> 1. Introduce a shortcut key to periodically "save/update edits"
> without leaving edit mode.
> 2. Enhance current Error dialog as indicated above.
>
> This would allow us to implement constraints and topology rules in the
> database without any scripting involved on the QGIS side (unless you
> want to set parameters interactively).

Stefan,

your suggestions make sense. I would recommend you to file tickets for
them in Trac [1] otherwise the feature requests will be easily lost.

The first request for saving without exiting editing mode looks
simple. I'm not sure about the second one: the error reporting IMHO
varies among providers - some might be able to give a complete and
detailed list of errors, others might be less verbose.

[1] http://trac.osgeo.org/qgis/

Martin


More information about the Qgis-developer mailing list