Rolando Peñate ha scritto: > On Mar 11, 2010, at 9:00 AM, Andrea Aime wrote: > >> Jody Garnett ha scritto: >>> The same raster shape is used as part of WMS icon etc... The udig >>> raster icon is dynamically generated using draw commands (and should >>> be able to reflect the image colors). I was hoping to trade >>> simplicity for relevance. >> >> Reflects the image colors? Hum... not that I can see, I get the >> same icon with 4 boxes from black to white no matter what >> image I open (ECW, mrsid, since GeoTiffs do not open). >> Do you have the algorithm that generates the icon handy? A svn pointer? > > Showing the predominant colors from the raster symbolizer is a smart > idea and much more relevant than a generic icon (especially a generic > that assumes a particular icon set is being used on the client side). > Does the benefit outweigh the technical heft?
Well, there are two issues: - the raster symbolizer can be without color map, and we certainly cannot scan the raster fully to see what the dominant colors are - in case we have a color map a very complete symbol with all the possible values is already generated So not much for the technical challenge, but for the cost involved in scanning the image (which can be tens of gigabytes or more), I would like to avoid doing any content analysis and just use a generic raster. >>> <snip /> >> >>> Does not geosilk provide something? >> >> It does, I included it in the previous message (it's the bluish >> checkerboard one). > > As Jody noted, GeoSilk does provide an icon for > raster: http://projects.opengeo.org/common/geosilk/trunk/geosilk/raster.png > > Unfortunately, that doesn't address your concern about scaling. It also > assumes that the client is using GeoSilk throughout—which is a safe > assumption for GeoServer and GeoExt, but not much further. I'll reproduce the icon in code so that I can scale it up. Just a suggestion: is it better to preserve the shape and scale it up (preseving the number of little squares) or preserve the texture and replicate it in space like a pattern instead? Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ 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 _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
