PgAdmin can do it. The terminal can do it too, but i find pgAdmin more easy to work with.<br><br>Just go to the database you are working, open a query editor and try it.<br><br>Dont forget about the considerations all the other made. The value returned will depend on your projection.<br>
<br>george<br><br><div class="gmail_quote">On Fri, Apr 3, 2009 at 1:48 PM, Aurora Geomatics <span dir="ltr"><<a href="mailto:aurorageomatics@gmail.com">aurorageomatics@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="">Thank you George,<div><br><div><div class="im"><div>On 3-Apr-09, at 9:22 AM, George Silva wrote:</div><br><blockquote type="cite">Hello Aurora,<br><br>In ArcGIS it's all different. In PostGIS you can use simple/complex SQL queries to "calculate values" in a similar fashion of arcgis.<br>
<br>The simplest of them all would be, in your case:<br> <br>ALTER TABLE table1 ADD COLUMN area_column double precision;<br>UPDATE table1 SET area_column = ST_AREA(the_geom);<br><br>You can in that SQL query divide, multiply, and do whatever you want with that result that will be written to the column area_column.<br>
<br></blockquote><div><br></div></div><div>Pretty straight forward SQL statement. </div><div>Is this a matter of opening a Terminal session using psql monitor?</div><div><br></div><div>Is it possible through pgAdmin or QGIS?</div>
<div><br></div><div>Thanks.</div><div class="im"><br><blockquote type="cite">I hope that helps<br><br>George<br><br><div class="gmail_quote">On Fri, Apr 3, 2009 at 12:55 PM, Aurora Geomatics <span dir="ltr"><<a href="mailto:aurorageomatics@gmail.com" target="_blank">aurorageomatics@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello PostGIS users,<br> <br> I have just installed William Kyng's PostgeSQ/PostGIS packages for Mac OS X.5<br>
<br> I have been playing with pgAdmin and QGIS with importing shapefiles into PostGIS. Works dandy.<br> <br> Now I am wondering how to solve Attribute Calculations.<br> <br> Years of using ArcGIS and GRASS it is pretty straightforward on those apps, and am stumped with PostGIS Attribute calculations..<br>
<br> For example, using a polygon feature;<br> <br> Creating a new column, say AREA and filling with a calculation that is Hectares.<br> <br> Thanks!<br> _______________________________________________<br> postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br> <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br> _______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></blockquote></div></div><br></div></div><br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br></blockquote></div><br>