Hi Tawan,

I've just run the example and yes, there is a problem: clicking on
Libya also selects the US (although I must admit I find that
subversively humorous).

A bit of debugging shows that this is caused by my use of BBOX filter
which is testing if the small envelope constructed around the mouse
click is within the envelope (as opposed to boundary) of each
feature's geometry. The MultiPolygon for USA includes various outlying
islands so its envelope is most of the world - that's why it gets
selected.  In trying to keep the example code simple to understand I
seem to have made it a bit too simple to work :-(

Thanks for reporting this. I'll fix it up.

Michael

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to