searching polygons

From: "David" <de4(at)kent(dot)ac(dot)uk>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: searching polygons
Date: 2004-02-17 19:01:51
Message-ID: 006501c3f588$807b56b0$9b660c81@ad.kent.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

What query would i have to use to search for an item using a polygon as a
parameter? (i.e a very large polygon that would identify smaller polygons
within it) ideally i would like to give postgresq a series of co-ordinates
and then have it return all those results whose polygons fall into that set
of co-ordinates, is this possible?

at the moment all i can think of is

select * from species where location between '(0,0)' and '(1000,0)' and
'(0, 1000)' and '(1000; 1000)';

I think im way off, any suggestions?

Cheers Dave

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2004-02-17 19:26:35 Re: FW: Function
Previous Message Jan Wieck 2004-02-17 18:50:45 Re: bytea or blobs?