Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.10/8.6.3) with SMTP id BAA16107 for postgres-redist; Tue, 13 Jun 1995 01:41:02 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199506130841.BAA16107@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from fel.tno.nl (tnofel.fel.tno.nl [192.55.105.65]) by nobozo.CS.Berkeley.EDU (8.6.10/8.6.3) with SMTP id BAA16097 for <postgres@postgres.berkeley.edu>; Tue, 13 Jun 1995 01:40:56 -0700
Received: by fel.tno.nl with UUCP id AA11710
  (5.65c/IDA-1.4.3 for postgres@postgres.berkeley.edu); Tue, 13 Jun 1995 10:44:41 +0200
Received: from fel3.fel.tno.nl by fel.tno.nl with SMTP id AA29069
  (5.65b+/IDA-1.4.3); Tue, 13 Jun 95 10:32:36 +0200
Message-Id: <9506130832.AA29069@fel.tno.nl>
X-Nvlenv-01Date-Posted: 13-Jun-1995 10:29:33 -0400; at fel3.fel.tno.nl
From: Donkers@fel.tno.nl (DONKERS H.C. 436/3H01/2-5)
To: postgres@postgres.Berkeley.EDU
Subject: newbie question about types
Date: 13 Jun 95 10:29:27 EDT
Resent-To: postgres-redist@postgres.Berkeley.EDU
Resent-Date: Tue, 13 Jun 95 01:41:01 -0700
Resent-XMts: smtp

Hello,

I'm currnetle doing a graduate project at TNO-FEL in the Netherlands.
Thereby I'm using Postgres, whith which I haven't got any thorough 
experience.

My data in the database consists of 2D polygons. These polygons are
of a self-made type POLYGON2 (I got this from somebody who worked
with Postgres, but he's not working here anymore.).
These polygons all lie in the same 2 dimensional plane.

The program I'm making (for visualisation of the data) is supposed
to handle very large databases (probably up to some Gigabytes), so
it's not very wise to import my data all at once. 

What I want to do is as follows:
The user walks around in the database and with him moves a 'window' 
on the database. So I want to query the database as follows:

RETRIEVE (plg.all)
WHERE overlap(plg.poly, window)

Here window is a constant of type box, polygon or something else if 
that achieves better performance.

My questions now are about the function overlap.
Can you write this youselve?
Is it hard?
Does it take a lot of time?
Could I better convert my data to the type polygon, which comes 
standard with postgres?
Does such a function exist allready for that type?

If you have any questions please ask them, because I really need 
these answers quick.
Any help would be greatly appreciated.

Greetings,
Kurt.

***
In /dev/null no one can hear you scream
***

H.C. (Kurt) Donkers
TNO Physics & Electronical Lab.
P.O. Box 96864
2509 JG The Hague
The Netherlands
Tel: +31 70 3264221
Fax: +31 70 3280961
E-mail: donkers@fel.tno.nl

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================
              URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/
