pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedQuestion about geometric function area()
2+ messages / 1 participants
[nested] [flat]
* Question about geometric function area()
@ 2004-12-19 10:38 Kretschmer Andreas <andreas_kretschmer@despammed.com>
2004-12-19 14:52 ` Re: Question about geometric function area() Kretschmer Andreas <andreas_kretschmer@despammed.com>
0 siblings, 1 reply; 2+ messages in thread
From: Kretschmer Andreas @ 2004-12-19 10:38 UTC (permalink / raw)
To: 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° ;-)
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Question about geometric function area()
2004-12-19 10:38 Question about geometric function area() Kretschmer Andreas <andreas_kretschmer@despammed.com>
@ 2004-12-19 14:52 ` Kretschmer Andreas <andreas_kretschmer@despammed.com>
0 siblings, 0 replies; 2+ messages in thread
From: Kretschmer Andreas @ 2004-12-19 14:52 UTC (permalink / raw)
To: pgsql-sql
am Sun, dem 19.12.2004, um 11:38:40 +0100 mailte Kretschmer Andreas folgendes:
> 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()?
Self-answer ;-)
I queried in the R-Mailinglist, how can I solve this task in R. I got a
answer there and so i'm now able to solve the problem with PL/R.
But a native way in PG would by nice...
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° ;-)
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-12-19 14:52 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-12-19 10:38 Question about geometric function area() Kretschmer Andreas <andreas_kretschmer@despammed.com>
2004-12-19 14:52 ` Kretschmer Andreas <andreas_kretschmer@despammed.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox