Ciao Michael, please see 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 10:36 AM, Michael Bedward <[email protected]> wrote: > Hi Simone, > > At some stage it would be great to get more of this stuff documented > and possibly have some example apps. I must confess that a lot of it > is still unknown territory to me. You are right, although I have to admit that finding time for this is challenging. How do you suggest we should proceed? I could fill up specific documentation templates if you have some ideas already for topics you would like me to cover. > > Meanwhile, for Martin's case, if his GeoTiffs are tiled, then will the > following get him a cropped coverage without needing to read the whole > image into memory ? > > GridCoverage2D cov = reader.read(null); > Envelope2D cropEnv = new Envelope2D( crs, x, y, w, h ); > DefaultProcessor processor = new DefaultProcessor(null); > ParameterValueGroup parameters = > processor.getOperation("CoverageCrop").getParameters(); > parameters.parameter("Source").setValue(cov); > parameters.parameter("Envelope").setValue(new Envelope2D(cropEnv)); > GridCoverage2D croppedCov = (GridCoverage2D) > processor.doOperation(parameters); > Yes, check the other example I sent. 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
