pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedGetting points from polygon
2+ messages / 2 participants
[nested] [flat]
* Getting points from polygon
@ 2004-08-12 16:59 Sebastian Albrecht <albrechtt@inseal.de>
2004-08-15 19:43 ` Re: Getting points from polygon Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: albrechtt@inseal.de @ 2004-08-12 16:59 UTC (permalink / raw)
To: pgsql-sql
Hello,
how can I get single xy-points from a polygon like for example:
CREATE TABLE "public"."country"
(
"country_id" INTEGER NOT NULL,
"geo" polygon NOT NULL
)
SELECT geo.x, geo.y FROM country WHERE geo.x=5
or
SELECT geo[24th point].x FROM country
...
Thanks in advance and best regards,
Sebastian
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Getting points from polygon
2004-08-12 16:59 Getting points from polygon Sebastian Albrecht <albrechtt@inseal.de>
@ 2004-08-15 19:43 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2004-08-15 19:43 UTC (permalink / raw)
To: albrechtt@inseal.de; +Cc: pgsql-sql
albrechtt@inseal.de (Sebastian Albrecht) writes:
> how can I get single xy-points from a polygon like for example:
[ looks through pg_proc... ] Hmm, this seems to be an oversight
in the polygon datatype. I don't think it'd be real practical
to support an array-subscript-like notation, but certainly a
function like point(polygon, n) wouldn't be too hard to add.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-08-15 19:43 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-08-12 16:59 Getting points from polygon Sebastian Albrecht <albrechtt@inseal.de>
2004-08-15 19:43 ` Tom Lane <tgl@sss.pgh.pa.us>
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