We will have to ask, I know changes were being made here up until the last
moment before the beta.

Have you had a look at the code for OperationJAI? Lets do so now ...
OperationJAI:327
<https://github.com/geotools/geotools/blob/master/modules/library/coverage/src/main/java/org/geotools/coverage/processing/OperationJAI.java#L427>

        final GridCoverage2D primarySource = sources[PRIMARY_SOURCE_INDEX];
        if (crs2D == null) {
            if (gridToCrs2D==null && sources.length==1) {
                return; // No need to reproject.
            }
*            crs2D = primarySource.getCoordinateReferenceSystem2D();*
        } else try {
            crs2D = CRSUtilities.getCRS2D(crs2D);
        } catch (TransformException exception) {
            // TODO: localize
            throw new CannotReprojectException("Unsupported CRS:
"+crs2D.getName().getCode());
        }


So we can kind of tell what the NPE is, line 427 is marked in bold, looks
like your data is missing a coordinate reference system?



--
Jody Garnett

On 30 August 2015 at 14:00, jerickson <[email protected]> wrote:

> Here is the error I am seeing whenever I use the sources parameter instead
> of
> source0 and source1.
>
> Caused by: java.lang.NullPointerException
>         at
>
> org.geotools.coverage.processing.OperationJAI.resampleToCommonGeometry(OperationJAI.java:427)
>         at
>
> org.geotools.coverage.processing.OperationJAI.doOperation(OperationJAI.java:294)
>         at
>
> org.geotools.coverage.processing.CoverageProcessor.doOperation(CoverageProcessor.java:605)
>         at
>
> org.geotools.coverage.processing.CoverageProcessor.doOperation(CoverageProcessor.java:627)
>         at
>
> org.geotools.process.raster.AddCoveragesProcess.execute(AddCoveragesProcess.java:68)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at
>
> org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:549)
>         ... 35 more
>
> The sources parameter used to work.
>
> Thanks,
> Jared
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Coverage-Operation-and-Process-Changes-tp5221796p5221861.html
> Sent from the geotools-devel mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> 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

Reply via email to