|
From: Yang <ted...@gm...> - 2012-01-27 22:58:08
|
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 |