Skip site navigation (1) Skip section navigation (2)

Question about geometric function area()

From: Kretschmer Andreas <andreas_kretschmer(at)despammed(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Question about geometric function area()
Date: 2004-12-19 10:38:40
Message-ID: (view raw or whole thread)
Lists: pgsql-sql

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

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     GPG 7F4584DA
Was, Sie wissen nicht, wo Kaufbach ist? Hier: N 51.05082°, E 13.56889° ;-)


pgsql-sql by date

Next:From: Kretschmer AndreasDate: 2004-12-19 14:52:36
Subject: Re: Question about geometric function area()
Previous:From: Kretschmer AndreasDate: 2004-12-18 19:08:58
Subject: Re: Revoke on all database

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group