<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
 I have searched the archives, but cannot seem to find the answer.<div><br></div><div>I have a vector file, with 700 sites. I want to add columns for x_coord and y_coord (or easting and northing, or whatever), so that the columns represent the centroid coordinates of each site in the vector database. So, for CAT #1, I want the column 'easting' to update with the easting of CAT #1, and the column 'northing' to update with the northing for CAT #1, and so on for all CAT numbers in my file. I'm sure there is an easy script for v.db.update, but wanted to check with the list before reinventing the wheel. Has anyone created a script for such a thing, or is there a command within GRASS that I'm missing?</div><div><br></div><div>Thanks,</div><div>Brandon<br><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="; font-size: 12px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">_______________________</span></font></div><div style="; font-size: 12px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">Brandon M. Gabler</span></font></div><div style="; font-size: 12px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">Doctoral Candidate</span></font></div><div style="; font-size: 12px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">Department of Anthropology</span></font></div><div style="; font-size: 12px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">University of Arizona</span></font></div><div style="; font-size: 12px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">Tucson, AZ 85721</span></font></div><div style="; font-size: 12px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">Phone: (520) 621-8455</span></font></div><div style="; font-size: 12px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">Fax: (520) 621-2088</span></font></div><div style="; font-size: 12px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><a href="mailto:bgabler@email.arizona.edu">bgabler@email.arizona.edu</a></span></font></div><div style="; font-size: 12px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br class="khtml-block-placeholder"></span></font></div><div style="; font-size: 12px; "><span class="Apple-style-span"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">"Who? When? Whither? are the questions with which the archaeologist challenges the refuse heaps, scattered potsherds, and broken shafts, to tell of the builders who came and lived and went their way into the templed past." -- Edgar Lee Hewett, in</span></font><span class="Apple-converted-space"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"> </span></font></span><i style="font-style: italic; ; font-size: 12px; "><span class="Apple-style-span" style="font-style: italic; ; font-size: 12px; "><span class="Apple-style-span" style="font-style: italic; ; font-size: 12px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;; font-style: italic; "><span class="Apple-style-span" style="font-style: italic; ">Pajarito Plateau and its Ancient People</span></span></font></span></span></i><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;">, 1938</span></font></span></div><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br class="Apple-interchange-newline"></span></font></span></span></span></span></span> </div><br></div></body></html>