Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Sql > Re: how to chec...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 3454 of 3799
Post > Topic >>

Re: how to check if a point is contained in a polygon ?

by tgl@[EMAIL PROTECTED] (Tom Lane) May 7, 2008 at 11:12 AM

Julien Cigar <jcigar@[EMAIL PROTECTED]
> writes:
> Is there an SQL function to check if a point is contained in a polygon
> shape (before I start to write my own) ?

> I tried something like :

> rodentia=> select point '(-8,25)' <@[EMAIL PROTECTED]
 polygon
> '((-3,10),(8,18),(-3,30),(-10,20))';
> ERROR:  operator does not exist: point <@[EMAIL PROTECTED]
 polygon
> HINT:  No operator matches the given name and argument type(s). You may
> need to add explicit type casts.

> ... but without success as you can see ;\

I think you are reading recent do***entation and trying to apply it to
an old Postgres version.  <@[EMAIL PROTECTED]
 had some other name before 8.2 ... check
the docs for whatever you are running.

			regards, tom lane

-- 
Sent via pgsql-sql mailing list (pgsql-sql@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
 




 4 Posts in Topic:
how to check if a point is contained in a polygon ?
jcigar@[EMAIL PROTECTED]   2008-05-07 18:25:36 
Re: how to check if a point is contained in a polygon ?
dev@[EMAIL PROTECTED] (R  2008-05-07 15:38:17 
Re: how to check if a point is contained in a polygon ?
jcigar@[EMAIL PROTECTED]   2008-05-07 19:00:23 
Re: how to check if a point is contained in a polygon ?
tgl@[EMAIL PROTECTED] (T  2008-05-07 11:12:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 21:46:18 CST 2008.