currently we use FilterFactory2.dwithin(geo1, point, distance, units) to
lookup the features within a radius of "distance" from "point"
but the features in the collection are represented using lat-long,
so if FilterFactory2 treats them just as a flat 2-D coordinate system, the
distance computed at higher latitude is going to be higher than
real distance. so the above lookup actually looks up not a circle, but an
ellipse.
it seems that to do a real circle lookup, we need dwithin to accept a
function as parameter, instead of distance. right? but given the current
geotools code, is there a way to achieve circle lookup?
Thanks
Yang
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users