Hi Andrea,

I don't understand this method. Could you explain?

Thank You!

Yako Bak

> Date: Mon, 27 Apr 2009 10:21:43 +0200
> From: [email protected]
> To: [email protected]
> CC: [email protected]; [email protected]
> Subject: Re: [Geotools-gt2-users] Selecting a feature represented by a symbol
> 
> Jody Garnett ha scritto:
> > You are correct this technique would only show the maximum size; and
> > use it to query. The style data structure is available so you can
> > perform the calculations yourself (to see if which rules have been
> > used).
> > 
> > There are a couple different approaches to selection in an interactive
> > map; I mentioned one hack with respect to checking the pixels; a more
> > involved technique involves rendering as a zbuffer; you would need to
> > rewrite the renderer (or supply a hint) asking it to write down an
> > integer for each feature drawn; and then check the raster at the end
> > of the day to see what feature was "on top" in order to be clicked on.
> > Not very much fun which is why I have not done it yet.
> 
> Actually, you can do that by rendering on top of a black and white
> buffered image, and attach a rendering listener that checks pixels
> after each rendered image, if the pixel in question is black, then
> the feature has been clicked on. Then turn the pixel back to white
> and allow the renderer to go to the next feature.
> Never actually implemented this, but should be doable.
> 
> Cheers
> Andrea
> 
> 
> -- 
> Andrea Aime
> OpenGeo - http://opengeo.org
> Expert service straight from the developers.

_________________________________________________________________
Téléphonez gratuitement à tous vos proches avec Windows Live Messenger  !  
Téléchargez-le maintenant ! 
http://www.windowslive.fr/messenger/1.asp
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to