[...] >> > Basically, in the beginning we only worked with datasets referenced by >> > files >> > (even by means of URL, String,...). Therefore the Utilities class worked >> > on >> > top of File. Anyway, we can change it to handle Object and do the proper >> > checks ("instance of" and similar) in the underlying logic. >> > Note that the JAI imageRead works on top of an ImageInputStream on its >> > operations. For your case we can adapt the code by using custom classes >> > of >> > the imageio-ext-customstreams to leverages on URLInputStream as an >> > instance. >> > > did you committed your changes to the imageio-ext?
Not yet, I wanted to make sure that you would have time to review them a bit once committed. [...] > Let me clarify a bit my last sentence about stream. You need to specify an > ImageInputStream as input parameter of a JAI ImageRead operation. In case > you didn't, the underlying code of the ImageReadCRIF will attempt to create > an ImageInputStream on top of the provided input to be used as input of the > underlying ImageReader. However, once the imageInputStream is provided, the > read operation is performed by means of the specific implementation of the > read method of the specific plugin. As you will notice, our > netCDFImageReader doesn't use an ImageInputStream for the real read, but it > leverages on the underlying NetCDF entities. In shorts, we can provide a > specific XXXImageInputStream to the Jai ImageRead and make sure to properly > handle it on our reader. I guess we can leverage on the URIImageInputStream > (contained within the imageio-ext-customstreams) and get the OpenDap URL > from it when doing setInput and read operations. Ok, that definitely clarifies the thing, even if I do not know the internals of the custom streams. I commit and then we can talk about options. Andrea > > Hope this helps. > Daniele >> >> Thanks, >> Andrea >> >> > >> >> >> >> If you want, I can commit the changes done so far, since they anyways >> >> do not break anything for the local files stuff, in case we should >> >> find a moment to review them together. >> > >> > These days, some of us are using these plugins in testing some >> > applications. >> > Although I'm pretty sure you did all tests and your changes don't break >> > anything, could you please send me a patch for this? >> > Anyway, we are about to do TAGs to handle this. >> > >> >> >> >> Ciao >> >> Andrea >> >> >> >> >> >> PS: I had to add the opendap jar to the dependencies to try that out. >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Return on Information: >> >> Google Enterprise Search pays you back >> >> Get the facts. >> >> http://p.sf.net/sfu/google-dev2dev >> >> _______________________________________________ >> >> Geotools-devel mailing list >> >> Geotools-devel@lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/geotools-devel >> > >> > >> > >> > -- >> > ------------------------------------------------------- >> > 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 >> > >> > ------------------------------------------------------- >> > >> > >> >> >> ------------------------------------------------------------------------------ >> Return on Information: >> Google Enterprise Search pays you back >> Get the facts. >> http://p.sf.net/sfu/google-dev2dev >> _______________________________________________ >> Geotools-devel mailing list >> Geotools-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/geotools-devel > > > > -- > ------------------------------------------------------- > 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 > > ------------------------------------------------------- > > ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel