On 17 August 2011 13:10, Mike O'Toole <[email protected]> wrote: > Thank you for the quick response. I updated and unfortunately I get the same > results. I ran the code multiple times in a row and saw the following error > intermittently. > > Here is the tif I was testing with. Can you confirm this works for you? >
Hi Mike, OK - two problems here: one mine, one yours :) My problem is the null pointer exception that you are seeing sometimes with JMapPane / JMapFrame. There is a separate discussion running about this on the list at the moment. I had hoped that I'd fixed it with today's code changes but obviously not well enough. Your problem is that you are trying to display a continuously valued DEM, so the simple greyscale code in ImageLab will not work. It expects byte values, not doubles - hence the black image. You need to create a style based on a gradient or cut-points. You can see several examples (expressed as XML rather than programmatic SLD) in the GeoServer SLD Cookbook: http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/rasters.html Michael ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
