Uploaded image for project: 'GeoTools'
  1. GEOT-5498

Reprojecting mosaic fails when reading with an interpolation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 16-beta
    • Component/s: imagemosaic plugin
    • Labels:
      None

      Description

      If you add add an interpolation to a reprojecting mosaic it fails with a NPE:

      org.geotools.data.DataSourceException: Unable to create this mosaic

      at org.geotools.gce.imagemosaic.RasterLayerResponse.prepareResponse(RasterLayerResponse.java:661)
      at org.geotools.gce.imagemosaic.RasterLayerResponse.processRequest(RasterLayerResponse.java:538)
      at org.geotools.gce.imagemosaic.RasterLayerResponse.createResponse(RasterLayerResponse.java:510)
      at org.geotools.gce.imagemosaic.RasterManager.read(RasterManager.java:1185)
      at org.geotools.gce.imagemosaic.ImageMosaicReader.read(ImageMosaicReader.java:895)
      at org.geotools.gce.imagemosaic.ImageMosaicReader.read(ImageMosaicReader.java:874)
      at org.geotools.gce.imagemosaic.ImageMosaicReader.read(ImageMosaicReader.java:808)
      at org.geotools.gce.imagemosaic.HeterogenousCRSTest.testMosaic(HeterogenousCRSTest.java:95)
      at org.geotools.gce.imagemosaic.HeterogenousCRSTest.testWithInterpolation(HeterogenousCRSTest.java:69)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
      at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
      at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
      at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
      at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
      Caused by: java.lang.NullPointerException
      at org.geotools.gce.imagemosaic.granulecollector.ReprojectingSubmosaicProducer.createRenderingHints(ReprojectingSubmosaicProducer.java:88)
      at org.geotools.gce.imagemosaic.granulecollector.ReprojectingSubmosaicProducer.<init>(ReprojectingSubmosaicProducer.java:81)
      at org.geotools.gce.imagemosaic.granulecollector.ReprojectingSubmosaicProducerFactory.createProducers(ReprojectingSubmosaicProducerFactory.java:34)
      at org.geotools.gce.imagemosaic.RasterLayerResponse.prepareResponse(RasterLayerResponse.java:603)
      ... 37 more

      (I have a fix for this incoming)

        Attachments

          Activity

            People

            • Assignee:
              dtucker Devon Tucker
              Reporter:
              dtucker Devon Tucker
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: