Question about geometric function area() - Mailing list pgsql-sql

From Kretschmer Andreas
Subject Question about geometric function area()
Date
Msg-id 20041219103840.GA5849@kaufbach.delug.de
Whole thread Raw
Responses Re: Question about geometric function area()
List pgsql-sql
Hello,

I have a table with a polygon - typ. There I stored, for instance this
polygon:

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


Now, I need the area, but 'select area(koerper) from geo where id=1;'
fails. If I do 'select area(box(koerper)) from geo where id=1;' it
works, but this isn't the right answer. Is this a limitation for area()?

Version is 7.4.5.


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° ;-)


pgsql-sql by date:

Previous
From: Kretschmer Andreas
Date:
Subject: Re: Revoke on all database
Next
From: Kretschmer Andreas
Date:
Subject: Re: Question about geometric function area()