Hi Martin, Hi List,
as part of the work I am doing on raster symbolization I added two new
raster operations to GeoTools for collecting statistics information,
namely Extrema and Histogram.

In order to implement them  I used the OperationJAI infrastructure
that you set up since I wanted to use the JAI Extrema and Histogram
operation as the base of my work (see

http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/operator/HistogramDescriptor.html

and

http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/operator/ExtremaDescriptor.html).

However I wanted to give users the possibility to specify Subsampling
factors and ROIs in spatial coordinates but I realized that with the
actual architecture we cannot do that directly since we simply wrap
JAI paramters and that's it.

In order to overcome this without breaking anything I added a couple
of classes to actualy decorate/replace ImagingParameters. With these
classes you can change the behaviour of some JAI parameters and
convert them back to the JAI's behaviour before applying the
corresponding JAI's operation. TO provide an ezample I modified the
ROI parameter so that It takes a JTS polygon as an input. Prior to
applying the JAI operation I convert the polygon back to an awt
polygon using the world-to-grid transform of the source coverage. Same
thing for the subsampling factors.

I am comitting this on trunk along with test cases. Part of the work
is on referencing, part is on coverage. As I said I tried to be as les
invasive as possible. Btw, next month I could refactor the other
operations I aded last year as OperationJAI themselves.

Feedback is appreciated :-).


Ciao,
Simone.
-- 
-------------------------------------------------------
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-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to