Hi ,

I don't really know if it's the right list to send my e-mail.

I'm trying to use  ZonalStats to have some statistic but I have some problem

Here is my code

----------------------------------------
        final Statistic[] statistis =new Statistic[3];
        statistis[0]=Statistic.MIN;
        statistis[1]=Statistic.MAX;
        statistis[2]=Statistic.SUM;
        param.parameter("stats").setValue(statistis);

final GridCoverage2D coverageresult = (GridCoverage2D) op.doOperation(param, null);

ZonalStats stats = (ZonalStats) coverageresult.getProperty(ZonalStatsDescriptor.ZONAL_STATS_PROPERTY);
----------------------------------------

The last line give me the following error.


Access restriction: The method getProperty(String) from the type PropertySourceImpl is not accessible due to restriction on required library C:\java\eclipse\jre\lib\ext\jai_core.jar


Some people suggest to change compiler problem( like here http://blog.js-development.com/2008/11/type-x-is-not-accessible-due-to.html ).
But it does not seem for me to be a good idea.
Do you have any idea why I have this error ?


Best regards
Thomas
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to