Hi Arnauld,
In order to allow the WorldImageReader to properly manage your PNG file, you
also need to add a .prj file containing the WKT of the
coordinateReferenceSystem needed to refer it, as well as a .pgw file
representing the worldfile to geolocate your data.
I would take a look on the link [1] provided by Jody. In the specific, you
can read the "JPEG Example" paragraph as reference on what type of content a
worldfile and a prj file should have.
Hope this helps.
Regards,
Daniele
[1] http://docs.codehaus.org/display/GEOTDOC/Image+Plugin
On Fri, Jun 25, 2010 at 2:31 AM, arnauld ndefo <[email protected]> wrote:
> hello every body, i have seen that geotools support format .png; .jpg;
> .tiff etc. But i dont know why, when i put my image .png i have a exception
> in this instruction
>
> WorldImageReader reader = new WorldImageReader(file); with the
> instantiation from the file like:
>
> File file=new File("image.png");
>
> Please help me, i don't know where is the problems
>
>
> Thank you
>
>
> 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
>
>
--
-------------------------------------------------------
Eng. Daniele Romagnoli
Software Engineer
GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy
phone: +39 0584983027
fax: +39 0584983027
mob: +39 328 0559267
http://www.geo-solutions.it
-------------------------------------------------------
------------------------------------------------------------------------------
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