Hi, Regina<br>Thanks for your answers, I will try something new based on them... but maybe I didn't speak clearly.<br>I have a polygons table called "obstacles".<br>I need a table of points (vertex of polygons) order only by the distance to the point given, with a field "id" from 1 to the number of points that I have, also ordered and growing with distance to the point given. 
<br><br>I hope I'm clear now. I'm not very good with english language.... =)<br>Thanks.<br clear="all"><br>-- <br>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::<br>Manuel                                              
<br>                                                          <br><a href="mailto:manuelfgm@gmail.com">manuelfgm@gmail.com</a>                     <br><a href="http://manuelfgm.blogspot.com">http://manuelfgm.blogspot.com</a>
         <br>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::