<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><P>Hi everyone,</P><P></P><P>Since I intend placing all my states data in one table, are u suggesting that I leave my data in wgs 84 (lon & lat) then do my distance calculations on the WGS 84 ellipsoid ? </P><P></P><P>How can this be done in postgis ? The distance calculations I need to do in my application are nearest neighbour and where are my queries. </P><P></P><P>A sample query for doing distance calculations on the ellipsoid in postgis will be helpful.  </P><P></P><P>Cheers,</P><P></P><P>Roman</P></td></tr></table><br>