<span style>Hello All!</span><div style><br></div><div style>This is my first post on the PostGIS mailing list:-).</div><div style><br></div><div style>I would like to use the <-> to solve the nearest neighbor problem, but in 3D space. I tried to do this in 2D and it works perfectly, but apparently it doesn't cover the 3D case.</div>

<div style><br></div><div style>Basically I have a table of 3D points (x, y, z) and would like to do:</div><div style><br></div><div style>    ORDER BY point <-> POINT(0 0 0)</div><div style><br></div><div style>but the distance taken into account should be 3D Euclidean distance. Do I have to use ST_3DDistance() for it or is there a faster way?</div>

<div style><br></div><div style>Thanks in advance!</div><div style><br></div><div style>Regards,</div><div style>-- </div><div style>Bartosz Bekier</div><div style><br></div>