Ciao Martin, my intention was giving the possibility to keep the name of the corresponding JAI parameter but allowing the user to use it with a different object that could then be translated prior to execution into the correct JAI parameter. If you look in the AbstractStatisticsOperationJAI class you can see this behaviour implemented for Histogram and Extrema.
Let's take the ROI parameter of these two operations. For the JAI counterparts it must be a JAI's ROI object which can be built using a java2d Shape or Image. My goal was to allow people to use a JTS polygon instead (we could extend to use a geometry but for the moment I am happy with a polygon). I did not want to come up pwith a new GeoTools operation hence I thought about this decorator/wrapper approach in order to decorate/wrap JAI operations. You give me a ROI as a JTS Polygon, right before doing the Histogram or Extrema operation I convert it to an awt polygon to build up a Java2D ROI and feed that to the underlying JAI operation. It was thought as a simple way to adapt JAI operations to accept geospatial values. I use the GridCoverage world to grid transform to transform mthe polygon into an awt polygon. Note that JAI statistics operations are optimised for managing ROIs that comes from a polygon ore rectangle. Ciao, Simone. On 8/31/07, Martin Desruisseaux <[EMAIL PROTECTED]> wrote: > Hello Simone > > I have a question about the intended usage of ImagingParametersDecorator. > Looking at your implementation, I see that it replaces some parameters. > However > the parameter values was previously written in the > javax.media.jai.ParameterList > object. After the replacement performed by the decorator, the values are no > longer written in ParameterList. > > So my question is: what is the expected relationship between your decorator > and > the ParameterList backend? Do you ignore the ParameterList completly? Do you > have some example of value that you replace? > > Martin > -- ------------------------------------------------------- Eng. Simone Giannecchini President /CEO GeoSolutions S.A.S. Via Carignoni 51 55041 Camaiore (LU) Italy phone: +39 0584983027 fax: +39 0584983027 mob: +39 333 8128928 http://www.geo-solutions.it ------------------------------------------------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
