Hello Michael,
Because those point features are represented by big symbols and I want the
user to be able to select the feature by clicking anywhere on the symbol and
not having to find the center. That is not really user-friendly.
But if is is impossible, i'll adopt this approach.
The other problem is that, features (i.e. like cars) can move during two
rendering.
And if the user clicks on the representation of a car that has moved from its
position
at the last rendering, nothing will be found. The user expects to get something
when
clicking on a feature he/she sees on the map even if it has moved. The user
would not
like to guess where it is actually.
I don't know how to do this without having a buffer memorizing for each pixel
the feature it belongs to.
Thank you,
Yako Bak
> Date: Wed, 13 May 2009 23:49:59 +1000
> Subject: Re: [Geotools-gt2-users] Selecting a feature represented by a symbol
> From: [email protected]
> To: [email protected]; [email protected]
>
> > So I think that the only solution is to generate, at every rendering, a
> > buffer
> > the size of the image that stores for each pixel the feature id of the last
> > rendered feature on it.
> >
>
> Yikes !!! That's starting to sound really unpleasant for you.
> Perhaps a more low-tech approach would be better :)
>
> I think you are working with point features - yes ? How about just
> converting the mouse click to world coordinates and looking for
> features that are within a threshold distance (in world units) to that
> location. You could base the threshold on some small fraction of the
> currently display map extent. If you catch more than one feature just
> ask the user to zoom in.
>
> Hope this helps
>
> Michael
_________________________________________________________________
Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows LiveĀ ?
Lancez-vous !
http://www.microsoft.com/windows/windowslive/default.aspx
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users