Ciao Michael, please read below... ------------------------------------------------------- Ing. Simone Giannecchini GeoSolutions S.A.S. Founder - Software Engineer Via Carignoni 51 55041 Camaiore (LU) Italy
phone: +39 0584983027 fax: +39 0584983027 mob: +39 333 8128928 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.linkedin.com/in/simonegiannecchini http://twitter.com/simogeo ------------------------------------------------------- On Wed, May 5, 2010 at 9:09 AM, Michael Bedward <[email protected]> wrote: > Hi Martin, > >> Yes, I know about gdal, but I wanted a fully automated solution within >> geotools. > > Simone is the guru for this but I'm not sure that there a GeoTools > only solution exists at the moment. > > What would be nice is if the GeoTiffReader accepted a parameter for > the envelope to read (either a GridEnvelope2D for grid coords or an > Envelope for world coords). At present you can provide a > GridGeometry2D parameter to the read method (contrary to what the > javadocs say about parameters being ignored) but unfortunately this > only seems to be used to set the resolution of the returned coverage > rather than its extent. It is up to the reader to do is best to respect the provided GG2D. As a baseline it can be used to compute a good resolution level (overviews to be returned), although it could also be used to doing decimation on reading using ImageIO readers' subsampling capabilities but it could also do cropping using ImageIO source region. As an instance ImageMosaic does all that, some goes for ImagePyramid. GeoTiff does not to do cropping but does decimationa on reading and overviews selection. Simone. > > Michael > > ------------------------------------------------------------------------------ > _______________________________________________ > Geotools-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel > ------------------------------------------------------------------------------ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
