dbTalk Databases Forums  

Hi! (and a question)

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Hi! (and a question) in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Cruz
 
Posts: n/a

Default Hi! (and a question) - 05-06-2004 , 11:56 PM






Hello everyone!

My name is David Cruz, and I'm from Bogota, Colombia.

I'm Beggining with PostgreSQL, so I've been doing just
a few simple things.

I have a problem, in my database there is a table
which has some geometric data types: (point and
polygon) and a need some operator or function that let
me know if the point is inside the polygon or not.
Something like the ~ in the point inside a circle, but
this one is inside a polygon.

thanks a lot!


David Cruz




__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


Reply With Quote
  #2  
Old   
Janko Richter
 
Posts: n/a

Default Re: Hi! (and a question) - 05-07-2004 , 04:18 AM






David Cruz wrote:
Quote:
Hello everyone!

My name is David Cruz, and I'm from Bogota, Colombia.

I'm Beggining with PostgreSQL, so I've been doing just
a few simple things.

I have a problem, in my database there is a table
which has some geometric data types: (point and
polygon) and a need some operator or function that let
me know if the point is inside the polygon or not.
Something like the ~ in the point inside a circle, but
this one is inside a polygon.

thanks a lot!

snip/

What PGSQL version do you are using? I found the point ~ polygon
operator in version 7.4.

Example:
SELECT '0.5,0.5':oint @ '(-1,0),(-1,-1),(1,-1),(1,1)':olygon;
or
SELECT '(-1,0),(-1,-1),(1,-1),(1,1)':olygon ~ '0.5,0.5':oint;

Regards, Janko Richter


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
  #3  
Old   
David Cruz
 
Posts: n/a

Default Question about REF / DREF - 05-10-2004 , 10:38 AM




Hello!

I have heard about references and that you can make relations between tables by using ref and deref. But I'd like to know if some of you have done some with it, or have some source code or SQL script in order to learn something about it...

thanks!



David Cruz

Bogota, Colombia


---------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.