Ciao Russell,
the suggestion from Andrea might be correct, although I see you do addo
with average interpolation (hence I don't think you have paletted images).
It would be help out to have the following:
-1- the mosaic.properties for the incriminated level
-2- the output of the gdalinfo on one of the files for this level
-3- a longer portion of the log that shows exactly from where this error is
thrown.
Regards,
Simone Giannecchini
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Ing. Simone Giannecchini
@simogeo
Founder/Director
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
On Thu, Aug 29, 2013 at 8:54 AM, Russell Hore <r...@russ-hore.co.uk> wrote:
> I have a set of 100 tiles (UK Ordnance Survey data).
>
> I have created an image pyramid, created a store and added a layer.
>
> When I view it, via GeoServer preview, it all looks fine until I stat to
> zoom in. At a certain zoom level (The scale reads 1:87k) some of the tiles
> get drawn as white.
> So tiles are there at 1:174k, not there at 1:87k and back again at 1:44k
>
> When I look in the logs (catalina.out) I see the many lines with a line
> saying;
>
> ...
> Caused by: java.lang.IllegalArgumentException: All source images must have
> the same number of bands.
> …
>
> The source images all seem to have the same number of bands (1) and I do
> the following to create the pyramid
>
> #!/bin/bash
> echo -n Working on
> pwd
> mkdir out
> for file in `ls *tif`
> do
> echo -n Working on $file
> gdal_translate -of GTiff -co "TILED=YES" -co "COMPRESS=DEFLATE" -co
> "BLOCKXSIZE=512" -co "BLOCKYSIZE=512" -a_srs "EPSG:27700" $file out/$file
> done
> mv out/* .
> rm -fr out
> for file in `ls *tif`
> do
> echo -n Working on $file
> gdaladdo -clean $file
> gdaladdo -r average $file 1 2 4 8 16 32 64 128
> done
>
> Followed by
>
> #!/bin/bash
> export thedir=`pwd`
> export thedir=`basename $thedir`
> echo $thedir
> mkdir pyramid
> ls *tif > ../tiles$thedir.txt
> gdal_retile.py -v -levels 9 -ps 2048 2048 -co 'TILED=YES' -co
> 'BLOCKXSIZE=512' -co 'BLOCKYSIZE=512' -s_srs EPSG:27700 -targetDir pyramid
> --optfile ../tiles$thedir.txt
>
> I can post more of the log if required.
> I am hazarding a guess it is something to do with the version of Java. Do
> I need to go back to 1.6.*
>
> GeoServer 2.3.5
> Tomcat 7.0.35
> OpenSuse x64
> JVM Version Oracle Corporation: 1.7.0_40 (OpenJDK 64-Bit Server VM)
> Native JAI true Native JAI ImageIO true
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users