Gabriella Turek wrote:
> Aha, I'll try it out thanx. BTW I need to handle the case where fch.size == 0 
> (ie. there's nothing in the 'hood), I will send new code
> when I clean it up.
> No, I never got dwithin to work at all. Perhaps I am using it wrong. Does it 
> make sense in as coded above? Is the
> unit the projection unit, or the shapefile unit?
>   
It did not make sense to me; 10 degrees is really really big. I think we 
should step through the code and see what it is actually doing. Have you 
only tried it on shapefile?

The code looks like this:
>         Geometry left = getLeftGeometry(feature);
>         Geometry right = getRightGeometry(feature);
>         
>         return left.isWithinDistance(right, getDistance());
So I see no sign of the units being used at all; and left and right are 
normal JTS Geometry objects ... I see that the implementation extends 
CartesianDistanceFilter so there is no
strangeness happening to us because of curvature of the earth.

Jody

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to