enricofer / attributepainter

qgis plugin attributepainter
3 stars 0 forks source link

Setting hotkeys for QGIS attribute painter plugin #5

Open enricofer opened 8 years ago

enricofer commented 8 years ago

Hello Enrico,

Thanks for your Attribute Painter plugin, it's a very handy tool indeed. I'm doing a lot of attribute copypasting, since my data isn't correlated for attribute or spatial joining. So I wonder if I can further simplify a process of copypasting the needed attributes. Ideally, I'd like to have a process similar to ArcMap transfer attributes tool, where the whole thing is just two clicks - first you click on a source feature, then you click on a target and all required attributes are copypasted there. In qgis I have first to select the second feature and then press "apply attributes" in attribute painter. Is it possible to assign a hotkey of some sort to this action? Or maybe combine selecting and applying so it's just one click?

Anyway, thanks for this plugin, it's simple and great. Please give me advice on my issue.

Cheers, Nick

enricofer commented 8 years ago

Enrico, hi!

As a feature proposal for attribute painter: can you make a field map option? So one can copy values from source layer field values to target layer fields, which very often aren't the same. I think implementation of this tool, which is called "transfer attributes" in ArcMap (http://desktop.arcgis.com/en/arcmap/10.3/manage-data/editing-existing-features/transferring-attributes-between-features.htm) is close to ideal and dead simple for a user - just set the field mapping and do copy-pasting in just two clicks on a map. I also hope this'll become a part of QGIS core as an advanced digitizing tool someday.

Cheers, Nick

nextstopsun commented 8 years ago

Hi Enrico! Thank you so much for such a short reaction on the feature request. Sounds just like what's needed to speed up the process. I'll test it and get back with a feedback. I'll also post an issue here if I have any further ideas on improving this workflow.

Thanks a lot for your effort, this plugin should save me a ton of time. Best, Nick

enricofer commented 8 years ago

Thanks for submission. I made some fix and code clean https://github.com/enricofer/attributepainter/commit/a185173c9adc9b830e3d25f20762b03edfa6539b Please reload master. https://github.com/enricofer/attributepainter/archive/master.zip Bye.

nextstopsun commented 8 years ago

Reloaded latest master. Direct apply seems to work ok, but I can't really get how field mapping works. I can only choose fields of a source layer, but where do I map them to target layer fields?

Can you also add hotkeys for Pick source feature and Pick to apply buttons?

enricofer commented 8 years ago

I thought It was more intuitive. In the field column names string became comboboxes containing compatible alternative fields (of the same type of the source one) depending from current layer. So you can now apply a value coming from source feature to another compatible target feature(s) field simply selecting it in the combobox On the right, appliable fields values appear in black, otherwise if not appear in gray. The apply buttons (on selection or direct apply) on the bottom are grayed out if current layer is not editable.

2016-03-22 11:43 GMT+01:00 Nikolai Lebedev notifications@github.com:

Reloaded latest master. Direct apply seems to work ok, but I can't really get how field mapping works. I can only choose fields of a source layer, but where do I map them to target layer fields?

Can you also add hotkeys for Pick source feature and Pick to apply buttons?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/enricofer/attributepainter/issues/5#issuecomment-199747125