[Qgis-user] manual classification tool?

Raymond Nijssen r.nijssen at terglobo.nl
Tue Jun 2 05:24:27 PDT 2020


Hi Werner and others,

Yes, I ran into similar workflows before as well.

For now, I created a simple plugin where you can choose the layer, field 
and value to set. Then you just click-click-click all the features you 
want to set the value for. Only works in edit mode.

While finding a name for my plugin, I chose 'value painter' and then I 
found out that there's already a plugin called 'attribute painter'. It 
does something similar, but in a more complex way. I expect too complex 
for the qgis "noobs" I'm working with.

I'm not planning to upload the plugin to the QGIS repo, but the source 
code is on github:

https://github.com/raymondnijssen/valuepainter


There's also a short screencast demo there:
https://github.com/raymondnijssen/valuepainter/blob/master/docs/paint_tool_demo.webm


Cheers,
Raymond


On 28-05-2020 12:01, Werner Macho wrote:
> Hi Raymond,
> 
> Sounds like a blogpost with a nice explanation, that is a problem I also 
> have sometimes (though not with 17K).
> Once you solved it it would be nice to have a manual howto get there.
> 
> regards
> Werner
> 
> On Thu, May 28, 2020 at 11:58 AM Alexandre Neto <senhor.neto at gmail.com 
> <mailto:senhor.neto at gmail.com>> wrote:
> 
>     Yup, hidden widget was what I was thinking.
> 
>     A custom python form can probably provide what you want. I think you
>     will be able to listen to that specific field widget and close the
>     form when it changes
> 
>     Alex
> 
>     A quinta, 28/05/2020, 10:50, Raymond Nijssen <r.nijssen at terglobo.nl
>     <mailto:r.nijssen at terglobo.nl>> escreveu:
> 
>         Ah, I found it! (With a little help from Richard..)
> 
>         There is a widget type "Hidden" that prevents showing up on the
>         form.
> 
>         Still, if anyone knows of a way that also not needs to close the
>         form
>         with an OK, could save me 17k extra mouse clicks. Using actions
>         maybe?
> 
>         Thanks,
>         Raymond
> 
> 
>         On 28-05-2020 10:31, Raymond Nijssen wrote:
>          > Hi Alex,
>          >
>          > Thanks, that is pretty close to what I'm looking for! I
>         didn't manage to
>          > only show the widget for the field I want to edit though, so
>         I'm seeing
>          > the entire form. I tried to find it in the Form and Fields
>         properties
>          > and I tried to use hidden fields.
>          >
>          > Ray
>          >
>          > On 28-05-2020 09:24, Alexandre Neto wrote:
>          >> Hi Raymond,
>          >>
>          >> Wouldn't the identify tool with auto open form with only the
>         class
>          >> field widget available do that? Also, select tool with multi
>         edit form
>          >> to classify several buildings in one go would save lots of
>         clicks.
>          >>
>          >> Alex
>          >>
>          >> A quinta, 28/05/2020, 07:38, Raymond Nijssen
>         <r.nijssen at terglobo.nl <mailto:r.nijssen at terglobo.nl>
>          >> <mailto:r.nijssen at terglobo.nl
>         <mailto:r.nijssen at terglobo.nl>>> escreveu:
>          >>
>          >>     Does anyone know if there is a tool in QGIS to quickly
>         classify
>          >>     features
>          >>     manually?
>          >>
>          >>     I have a layer with 17,000 buildings, all need to be set
>         to 1 of 5
>          >>     values. I'm thinking about making a (quick and dirty)
>         plugin that:
>          >>
>          >>     - On clicking the building shows a popup menu with the 5
>         choices
>          >>     - Clicking the choice would update the value and change
>         the color
>          >>     (redraw)
>          >>
>          >>     Every click less really counts here. I already set up a
>         form
>          >> widget but
>          >>     also having the location of the menu near the building
>         polygon is way
>          >>     more efficient. (I mean, no need to cross the screen
>         with your mouse
>          >>     cursor.)
>          >>
>          >>     Thanks!
>          >>
>          >>     Raymond
>          >>     _______________________________________________
>          >>     Qgis-user mailing list
>          >> Qgis-user at lists.osgeo.org <mailto:Qgis-user at lists.osgeo.org>
>         <mailto:Qgis-user at lists.osgeo.org
>         <mailto:Qgis-user at lists.osgeo.org>>
>          >>     List info:
>         https://lists.osgeo.org/mailman/listinfo/qgis-user
>          >>     Unsubscribe:
>         https://lists.osgeo.org/mailman/listinfo/qgis-user
>          >>
>          > _______________________________________________
>          > Qgis-user mailing list
>          > Qgis-user at lists.osgeo.org <mailto:Qgis-user at lists.osgeo.org>
>          > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>          > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>         _______________________________________________
>         Qgis-user mailing list
>         Qgis-user at lists.osgeo.org <mailto:Qgis-user at lists.osgeo.org>
>         List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>         Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 
>     _______________________________________________
>     Qgis-user mailing list
>     Qgis-user at lists.osgeo.org <mailto:Qgis-user at lists.osgeo.org>
>     List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>     Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 


More information about the Qgis-user mailing list