From: Ryan <pgsql-sql@seahat.com>
To: pgsql-sql@postgresql.org
Subject: nearest match
Date: Wed, 12 Mar 2003 15:32:32 -0600 (CST)
Message-ID: <10112.65.102.128.233.1047504752.squirrel@fordparts.com> (raw)
I'm doing some work with part diagrams and server-side image maps.
I want to store single point coordinates (x,y) for reference numbers in a
table looking like:
reference_number text,
x int,
y int
My question is: How can I find the *nearest* match of some clicked on
coordinates without specifying some arbitrary distance from the stored
point?
The more I think about this the more I am realizing it is probally not
that hard, I just can't seem to grasp the answer right now.
Thanks,
Ryan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: pgsql-sql@seahat.com
Subject: Re: nearest match
In-Reply-To: <10112.65.102.128.233.1047504752.squirrel@fordparts.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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