<div dir="ltr">Hi all,<div><br></div><div>I've found (probably) a workaround for the situation in subject.</div><div>Basically I switched back to a previous version of GeoTools for the ImageMosaic jar.</div><div>In particular I did:</div><div><ul><li>download the "geotools-14.5-bin.zip" folder from the SourceForce site (<a href="https://sourceforge.net/projects/geotools/files/GeoTools%2014%20Releases/14.5/">https://sourceforge.net/projects/geotools/files/GeoTools%2014%20Releases/14.5/</a>)</li><li>unzip the folder</li><li>locate the image mosaic jar file, which is: gt-imagemosaic-14.5.jar</li><li>substitute the current image mosaic jar file (...15-SNAPSHOT) in the GeoServer lib folder (/usr/share/geoserver/WEB-INF/lib) with the one at the previous point (basically by renaming them appropriately)</li><li>restart tomcat</li></ul><div>With the described workaround I can successfully generate and browse an image mosaic layer.</div></div><div><br></div><div>Anyhow I'm aware that better solutions may be available. Is it better to upgrade the entire GeoServer application to 2.10.x? In such case is there a detailed documentation on how to do so step by step (e.g. on migrating the data directory and authentication)?</div><div><br></div><div>Cheers,</div><div><br></div><div>Simone</div><div class="gmail_extra"><br><div class="gmail_quote">On 29 September 2017 at 10:41, Paolo Pasquali <span dir="ltr"><<a href="mailto:paolo.pasquali@ithaca.polito.it" target="_blank">paolo.pasquali@ithaca.polito.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><div><br></div><div>I have a GeoNode 2.6.3 installed on my Mac (so custom installation) with Oracle Java 1.8.0_121</div><div>I successfully created a mosaic with a small set of Tiff.</div><div><br></div><div>The problem occurs in GeoNode 2.6.3 apt packaged installed on Ubuntu 16 and Oracle Java 1.8.0_144</div><div>Using the same set of rasters the mosaic can't be published and I get:</div><div><br></div><div><font face="monospace, monospace">java.lang.<wbr>IllegalArgumentException: The number of image bands (3) differs from the number of supplied 'SampleDimension' objects (0)</font></div><div><br></div><div>The first two rasters can be singly published but if I try to publish a mosaic made of these two rasters I get:</div><div><br></div><div><font face="monospace, monospace">java.lang.<wbr>IllegalArgumentException: BandSelect operation requires the band indices to have at least 1 array element.</font><br></div><div><div class="gmail_extra"><div><div class="m_-7173469795486558001gmail_signature"><div><br></div><div>Same error as Simone's.</div><div><br></div><div>Any help would be much appreciated.</div><div><br></div><div>Thanks.</div><div><br></div><div><br></div><div>Paolo</div><div dir="ltr"><br></div></div></div>
<br><div class="gmail_quote"><div><div class="h5">On Tue, Sep 26, 2017 at 12:42 PM, simone balbo <span dir="ltr"><<a href="mailto:simone.blb@gmail.com" target="_blank">simone.blb@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi everybody,<div><br></div><div>I'm experiencing this behavior in the following conditions:</div><div><ul><li>GeoNode 2.6.3, installed with the apt package manager (GeoServer 2.9-SNAPSHOT)</li><li>an ImageMosaic store is created successfully with default parameters in GeoServer</li><li>the image mosaic is composed by 3-bands 8-bit images</li><li>when trying to publish the layer from this store (by clicking the "Publish" button from GeoServer) I get the error "BandSelect operation requires the band indices to have at least 1 array element" (complete error stack is attached)</li></ul><div>The strange thing is that I can successfully publish the same mosaic layer with an earlier GeoServer version (2.8.2). </div></div><div>Am I missing something? Some library?</div><div>Does anybody have the same issue?</div><div><br></div><div>Cheers,</div><div><br></div><div>Simone</div></div>
<br></div></div>______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/geonode-users</a><br>
<br></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>