From: Andrea A. <and...@al...> - 2004-05-01 15:00:26
|
Alle 00:05, venerd=EC 30 aprile 2004, Martin Desruisseaux ha scritto: > Hello all > > - GridCoverageReader / GridCoverageWritter API were modified in > order to use an iterator scheme instead of random access. This > changes were done while keeping in mind the case of images > embedded in database (like Oracle), or dowloaded from a remote > connection. Martin, right, but what if you want to read just one of the subgrids, and w= e=20 are dealing with a stupid format that does not allow you lazy load grids=20 (something like more than one ascii grid in the same file)? read() now returns a GridCoverage, in ascii grid case that would mean parsi= ng=20 data that you're not interested into. Maybe having at least a skip method would fit. Or, even better, have a subinterface that allows random access t= oo,=20 so that if you need it, you can test if with instanceof and then cast. Best regards Andrea Aime |