Re: [GENERAL] nearest neighbor search from xyz coordinates

2008-10-28 Thread Merlin Moncure
On Mon, Oct 27, 2008 at 6:50 AM, Andreas Jochem <[EMAIL PROTECTED]> wrote: > Hello, > > I have a table containing x y z coordinates. But I have no geometry column? > Is it possible to find the k nearest neighbors of any point. Is there > something like a kd-tree Index in postgres??? > cubes: http:

Re: [GENERAL] nearest neighbor search from xyz coordinates

2008-10-27 Thread Angel Alvarez
El Lunes 27 Octubre 2008 Andreas Jochem escribió: > Hello, > > I have a table containing x y z coordinates. But I have no geometry column? > Is it possible to find the k nearest neighbors of any point. Is there > something like a kd-tree Index in postgres??? > > I know, if i had a geometry colum

Re: [GENERAL] nearest neighbor search from xyz coordinates

2008-10-27 Thread Serge Fonville
What exactly do you want to measure, since values can be compared easily by a where clauseIf you would want for example all rows within a spherical distance you will either have to write a stored procedure (which takes 4 parameters x,y,z,distance) Or manually compare each corodinate to the distance