<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 5 janv. 2010, at 22:38, Hamish wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Christian Kaiser wrote:<br><blockquote type="cite">I would like to do a very simple thing:<br></blockquote><blockquote type="cite">upload the bounding box for each geometry (areas,<br></blockquote><blockquote type="cite">boundaries, lines) to the attribute table.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">v.to.db does not seem to provide this functionality. Is<br></blockquote><blockquote type="cite">there an elegant way for doing this?<br></blockquote><br><br>'v.info -g' will give you the bounding box, easy peasy.<br><br><br><br>MAP=your_map_name<br><br>v.db.addcol $MAP column="north DOUBLE PRECISION, \<br> south DOUBLE PRECISION, east DOUBLE PRECISION, west DOUBLE PRECISION"<br><br>eval `v.info -g $MAP`<br><br>echo "UPDATE $MAP SET north = $north, south = $south, \<br> east = $east, west = $west" | db.execute<br><br><br><br>Hamish<br><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote><br></div><div><br></div><div>Hamish,</div><div><br></div><div>Thank you for your answer. It seems to me that <a href="http://v.info">v.info</a> -g prints out the region for all the map. What I would need is the bounding box of EACH geometry (area for instance) in the map, and not the map as a whole. Probably my question was not clear... ;-)</div><div><br></div><div>Any idea?</div><div><br></div><div>Christian</div></body></html>