Do the same for the Coverage. The addLayer method accepts even GridCoverages, otherwise (in the case you are using an old version of GeoTools) you have to create a Feature with a grid attribute containing the Coverage.
 
Try the first method, if you have troubles tell me and I'll send you the code for the second.
 
P.S.: addLayer(Coverage, Style) method requires a RasterSymbolizer ruled Style in order to work.

 
On 9/30/05, Manuel Montini <[EMAIL PROTECTED]> wrote:
Hi, I'd like to watch a Tiff/GeoTiff inside my map context.
I've created a MapViewer for Shapefiles and I'd like to put the image
under them.
I've create a GridCoverage2D for my Tiff, but only way I've found to
show it is GridCoverage2D.show()

How can I do for watch it inside the MapContext?

For load my Shapefile I've used context.addLayer (x,x) (the same inside
MapViewer.java sample)

Thanks All

Manuel




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to