hello every body, to put the image like a layer on my map, i have wrote this


File rasterFile=new 
File("C:/Users/Arnauld/Documents/NetBeansProjects/cartes/image.png");

AbstractGridFormat format = GridFormatFinder.findFormat( rasterFile );
        reader = format.getReader(rasterFile);
map.addLayer(reader,null);

but the like in red give an exception like:

Exception in thread "main" java.lang.UnsupportedOperationException: Trying to 
get a reader from an unknown format.

I don't know how to fiw them. Please help me. Before i do this, i have readed a 
ImageLab. 

Ndefo Kamgne Arnauld

Cité Ettayour,Immeuble Bolbol 1,Appartement A2,Ariana

0021624249357


      
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to