Hi,
I've been going through the tutorial at
http://docs.codehaus.org/display/GEOTDOC/08+ImageLab but cannot get it to
work. I'm assuming the problem is with the following bit of code in
CoveragePanel:
public void paintComponent(Graphics graphics) {
super.paintComponents( graphics );
Graphics2D g = (Graphics2D) graphics;
GridCoverageRenderer renderer;
try {
renderer = new GridCoverageRenderer(
coverage.getCoordinateReferenceSystem(), bbox, getBounds() );
renderer.paint( g, coverage, style );
} catch (Exception e) {
g.drawString( e.getLocalizedMessage(), 0,
getHeight() / 2 );
}
}
The variable "style" in "renderer.paint( g, coverage, style );" does not
exist and the tutorial does not mention it anywhere else. I've tried null
but this doesn't seem to work.
Any help would be appreciated.
Cheers,
Jon
--
View this message in context:
http://n2.nabble.com/ImageLab-tutorial-problem-tp2203534p2203534.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users