I've implemented the distance() method for GeometryImpl in the geometry 
module.  I based it off of what JTS does.  The geometry module creators 
had already implemented a distance calculation for point->point and 
point->line in the CGAlgorithms class, much like in JTS, and I used 
those methods for my calculations.  Basically I converted both 
geometries down to points or lines, looping to find the min distance.  I 
also implemented it for multiprimitives.

I'm just working out a few final kinks and plan to commit it this afternoon.

-- 
Graham Davis
Refractions Research Inc.
[EMAIL PROTECTED]


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to