Sounds like you want to use one of the aggregate functions - "Min" and call it on your feature collection. I am not sure this has been tried before; ... You can do it by hand going through that list of features returned and calling point.distance( geometry ) as needed...
Cheers, Jody > Hi List, a question about distance filter. > How can I obtain the nearest feature from a point? > > The distance filter return to me a list of features, but I need only > to know what's the nearest feature from this point. > > Anyone can help me? > > Thanks in advance. > Jacopo > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Geotools-gt2-users mailing list > Geotools-gt2-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users