[R] Can I calculate the area of a polygon?

Andreas Kretschmer,,, kretschmer at kaufbach.delug.de
Sun Dec 19 12:59:17 CET 2004


Hello,

I'm verry new in R.

My Problem:

I have a PostgreSQL-Server with installed support for the R-Language.
And now I have a table with a Polygon like this:

test_db=# select * from geo where id=1;
 id |             koerper
----+---------------------------------
  1 | ((0,0),(0,2),(2,2),(3,3),(5,0))
(1 row)

Now, I need to know the area of this object. Please, can you tell me, if
it possible to use the installed plr - Language zu calculate the area?

I have some experience to draw diagramms from Postgres via the
R-language, but I'm a absolute novice to use R to solve problems like
this.


Regards, Andreas
-- 
Diese Message wurde erstellt mit freundlicher Unterstützung eines freilau-
fenden Pinguins aus artgerechter Freilandhaltung.   Er ist garantiert frei
von Micro$oft'schen Viren. (#97922 http://counter.li.org)     GPG 7F4584DA
Was, Sie wissen nicht, wo Kaufbach ist? Hier: N 51.05082°, E 13.56889° ;-)




More information about the R-help mailing list