Im trying to open a geotiff image on my JMapPane.
I used the GeoTiffReaderWriterTest( from trunk of geotools2.3) as a base for my code.
 
When i show it as an image icon it works fine. But when i add as a layer, it does not show the image ( the map is loaded but not shown ):
here is the code:
 

GeoTiffFormat format = new GeoTiffFormat();

GeoTiffReader geoReader = new GeoTiffReader( format, f, null );

GridCoverage2D gc = (GridCoverage2D) geoReader.read(null);

Style style = builder.createStyle( builder.createRasterSymbolizer() ); ****When i used Poly simb, it shows only the border of  the image.

mapPane.getContext().addLayer( gc , style );

Can someone help me. Thx Fred.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to