Hi Cédric, The compilation error you are getting has to to with jai, so I would think that perhaps there is a problem with the version you are using. Unless I am mistaken you need to have jai-core 1.1.3 and jai-imageio 1.1 installed.
-Justin Cédric Briançon wrote: > Hello, > > I've built the whole Geotools branches 2.3.x with maven2, and in the > ext/coverage_development directory, I've made a "mvn install" command. > Then on this folder I've made a "mvn eclipse:eclipse" in order to load > this project on my Eclipse (version3.2), as in this documentation > http://docs.codehaus.org/display/GEOSDOC/Load+NASA+Blue+Marble+Data, > part 2 step 1. > > When I try to import this project on my Eclipse, I have only one error > in this project, that is on the class > it.geosolutions.imageio.stream.output.spi.FileImageOutputStreamExtImplSpi. > Line 83, in the onRegistration(ServiceRegistry registry, Class category) > method, I have " registry.setOrdering(ImageOutputStreamSpi.class, this, > other); ", and this method seems to have a problem of type in parameters. > > This project contains a main class > it.geosolutions.utils.imagemosaic.MosaicIndexBuilder that I want to use, > but when I launch this main program with the argument > "-s my_tiff_directory -w *.tif -name test", I get this error : > 25 avr. 2007 15:46:45 > it.geosolutions.utils.imagemosaic.MosaicIndexBuilder getNotification > INFO: Progress is at 0.0 > attached message is: Now indexing file a1_tiled2.tif > Exception in thread "MosaicIndexBuilder" java.lang.Error: Unresolved > compilation problem: > The method setOrdering(Class<T>, T, T) in the type ServiceRegistry > is not applicable for the arguments (Class<ImageOutputStreamSpi>, > FileImageOutputStreamExtImplSpi, Object) > > at > it.geosolutions.imageio.stream.output.spi.FileImageOutputStreamExtImplSpi.onRegistration(FileImageOutputStreamExtImplSpi.java:83) > at > javax.imageio.spi.SubRegistry.registerServiceProvider(ServiceRegistry.java:698) > at > javax.imageio.spi.ServiceRegistry.registerServiceProvider(ServiceRegistry.java:285) > at > javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:189) > at javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:120) > at > javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:141) > at javax.imageio.ImageIO.<clinit>(ImageIO.java:46) > at > it.geosolutions.utils.imagemosaic.MosaicIndexBuilder.run(MosaicIndexBuilder.java:314) > at java.lang.Thread.run(Thread.java:595) > > To test, I've tried to comment the line 83, and the generation of my > shape file, based on several tiff files, has succeeded. > > (Moreover it has worked BETTER than gdal :), because gdal has provided > me a wrong shape file for my mosaic, so thanks for the good job :) ). > Then the mosaic based on this shape file was correctly loaded on Geoserver. > > Commenting this line was just a temporary solution, to resolve this > problem, so I hope someone (Simone ?) would correct this problem :) > Or maybe is it something I do wrong in the project configuration ? > > Cheers, > Cédric Briançon. > > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users -- Justin Deoliveira The Open Planning Project http://topp.openplans.org ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
