How to change attributes value when i move(change position) point? I don't found some information about this. Sorry for my english.
-
which attributes do you mean? The coördinates?– PieterBCommented Jul 2, 2016 at 19:54
-
No. I mean attribute value, for example, was "type" = 0, i want to automaticaly change to "type" = 1– Wilhelm BeuveCommented Jul 2, 2016 at 20:08
-
Welcome to gis.stackexchange! Please note that a good question on this site is expected to show some degree of research on your part, i.e. what you have tried and - if applicable - code so far. For more info, you can check our faq.– underdarkCommented Jul 2, 2016 at 21:58
-
1Perhaps this post might help: How can values in the attribute table be refreshed automatically when a geometry changes?– JosephCommented Jul 4, 2016 at 8:53
-
Also check this post: How can I make an attribute table field automatic?– JosephCommented Jul 4, 2016 at 10:13
2 Answers
I solved this problem as follows:
I added new another field attributes, for example, orig_coord = concat($x,' ',$y)
and in color rule i added this if("orig_coord" = concat($x,' ',$y),color_rgb(0,0,0),color_rgb(0,255,50))
So I see the color of some of the objects changed their position in the process of moving.
Again sorry for my english.
-
Don't forget to accept your answer by clicking the green-faded tick on the left-hand side :)– JosephCommented Nov 30, 2017 at 11:58
If you are just using the "Move Feature" option in QGIS, there is no way to have it automatically update have it update an attribute. If you're moving it using some kind of geoprocessing or plugin, then it depends on which tool you're using to do that.
-
There are ways, see for instance the AutoFields plugin. Commented Aug 23, 2016 at 22:27