That functionality is provided by JTS (the library we use for geometry).

Since this is a common question we have it covered in the user guide:
- 
http://docs.codehaus.org/display/GEOTDOC/Using+SpatialIndex+and+LocationIndexLine+to+Snap+points

Jody

On 26/06/2010, at 12:16 AM, Jean Marie wrote:

> hello
> 
> is there an easy way with Geotools to get the closest distance
> between a point and a line (this line being specified by 2 points)
> 
> thanks in advance
> 
> jean-Marie
> 
> Envie de plus d'originalité dans vos conversations ? Téléchargez gratuitement 
> les Emoch'ticones ! 
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate 
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
> lucky parental unit.  See the prize list and enter to win: 
> http://p.sf.net/sfu/thinkgeek-promo_______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to