Hei Alberto, traveling again/still/long... so not sure when I will get back to you on that.
stefan Alberto De Luca schrieb: > Stefan, > > I worked a bit on transparency for nodata pixels. It should be now > possible to load Ascii and Flt Grids with nodata values represented as > transparent pixels. I might be able to do the same for tiff files, but I > still need to work a bit on it. > > I modified 3 classes, you can find the source code attached to this > email. In RasterImageLayer.java I marked the changes with an [ADL] > comment, so you can check what I have done. I also modified > GridAscii.java and GridFloat.java, so now nodata pixels are stored as > Float.NaN values. > > Let me know what you think > Alberto > > On 10/08/2010 21:38, Stefan Steiniger wrote: >> so, I think I could fix the problem. >> What I do now is a complete reload of the image when getRasterData() is >> called (but not replacing the image4display). This way I get sure that >> always the rasterdata are delivered to Sextante which seemed to be the >> problem. >> >> While testing I noticed that when I load an ascii grid and calculate the >> contours of that grid with sextante [own plugin that accesses the >> sextante function], then the delivered contours are displaced in the >> location (don't fit with the raster anymore). Not sure where this is to >> be attributed to? >> >> But when I calculate contours for KernelDensity raster (tif) that I >> created earlier out of points, then the contours seem to be in the right >> place. So maybe its some referencing info???? >> >> Alberto, could you check that? >> >> I hope tomorrows nightly build is fine with all the raster stuff >> >> stefan >> >> Stefan Steiniger wrote: >>> Hei Alberto, >>> >>> ok.. I have a problem here. >>> I needed to revert some changes (dynamic loading etc). >>> I am not sure what is going on, but if I do now some calculations I >>> don't get proper reference to the rasters/layerable. >>> >>> So sometimes I have no reference and in other instance after the >>> processing is done and results are returned... those results are >>> shifted. It even happens with the convert to polygons function. >>> Interestingly this faulty behaviour is visible when I open the raster >>> color editor. if it contains no further elements, just the name, then >>> something is wrong. >>> >>> However, if I use from the raster layer context menu the function: >>> "Export Envelope as geometry", then I get the correct reference back. >>> >>> not sure what happens here... >>> >>> stefan >>> >>> Stefan Steiniger wrote: >>>> me again, >>>> >>>> I don't have >>>> javax.swing.GroupLayout >>>> >>>> where is that from? I have only GridBagLayout from java.awt.* >>>> >>>> stefan >>>> >>>> Stefan Steiniger wrote: >>>>> I actually just see that the Properties dialog of the raster layer >>>>> has a >>>>> transparency checkbox >>>>> >>>>> stefan >>>>> >>>>> Stefan Steiniger wrote: >>>>>> Hei Alberto, >>>>>> >>>>>> I changed the RasterImageLayer class to allow for dynamic loading. >>>>>> I haven't tested fully if it works as expected. Can you have a look. >>>>>> With respect to this I chose now some arbitrary values for >>>>>> maxPixelsForFastDisplayMode >>>>>> so we can change it... >>>>>> >>>>>> I have also added the changes to read ASCII grids. >>>>>> >>>>>> Also if you want I can give you write access to our SVN. I think you >>>>>> will do the right thing... ;) >>>>>> >>>>>> next I will look at the coloring. >>>>>> Have a good 2 weeks (holidays I assume ;). >>>>>> >>>>>> stefan >>>>>> >>>>>> Alberto De Luca wrote: >>>>> ------------------------------------------------------------------------------ >>>>> >>>>> >>>>> This SF.net email is sponsored by >>>>> >>>>> Make an app they can't live without >>>>> Enter the BlackBerry Developer Challenge >>>>> http://p.sf.net/sfu/RIM-dev2dev >>>>> _______________________________________________ >>>>> Jump-pilot-devel mailing list >>>>> Jump-pilot-devel@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >>>>> >>>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> >>>> This SF.net email is sponsored by >>>> >>>> Make an app they can't live without >>>> Enter the BlackBerry Developer Challenge >>>> http://p.sf.net/sfu/RIM-dev2dev >>>> _______________________________________________ >>>> Jump-pilot-devel mailing list >>>> Jump-pilot-devel@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >>>> >>>> >>> ------------------------------------------------------------------------------ >>> >>> >>> This SF.net email is sponsored by >>> >>> Make an app they can't live without >>> Enter the BlackBerry Developer Challenge >>> http://p.sf.net/sfu/RIM-dev2dev >>> _______________________________________________ >>> Jump-pilot-devel mailing list >>> Jump-pilot-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >>> >>> >> ------------------------------------------------------------------------------ >> >> >> This SF.net email is sponsored by >> >> Make an app they can't live without >> Enter the BlackBerry Developer Challenge >> http://p.sf.net/sfu/RIM-dev2dev >> _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > > > ------------------------------------------------------------------------ > > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel