Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have imported point coordinates from a database, but I need to manually adjust a lot of the locations. Is there a way for QGIS to automatically update the point locations in the attribute table after you move your points?

share|improve this question
    
see gis.stackexchange.com/q/63114/108 for moving coords by typing new numbers, though this is a one-by-one operation and doesn't answer the question asked –  matt wilkie Oct 3 at 16:15

2 Answers 2

Patrick, if you have brought the point data in from a non-spatially-enabled source, you will need to save to a new, spatially-enabled format (and load that into QGIS) before you start your editing.

After that, you'll want to use either the Move Feature(s) or Node Tool.

enter image description here

Once in edit mode for your point layer, make your adjustments with either of those tools, then either click the Save Edits button, or exit edit mode (which will prompt you to save edits). While editing the points, an in-memory attribute table is updated, then on save, written back to the data source.

Many edits are undo-able, but not all. Choosing to not save your in-memory edits will leave your data source unchanged.

share|improve this answer
    
Thanks, I didn't see where the internally derived coordinates were being saved at first. Underdark's solution below is actually spot on for updating my attribute table. –  Patrick Jul 19 '12 at 17:02
    
+1 for note about saving to a new format. I was spinning my wheels trying to figure out why the tool was disabled for my GPX layer; save to shape and it's all good. (but -1 because as useful as this answer is, it doesn't answer the question asked: modify location based on attribute value) –  matt wilkie Oct 3 at 16:17

Using Field Calculator $x and $y operators, you can over-write the old coordinates in attribute table. Just run it once - after you have moved all points to the desired locations.

Field Calculator v.2.x: http://docs.qgis.org/2.0/en/docs/user_manual/working_with_vector/field_calculator.html

Field Calculator v2.4+: http://nathanw.net/2014/05/23/qgis-field-calc-bar/

share|improve this answer
    
YES! This did the trick, thank you. –  Patrick Jul 19 '12 at 16:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.