On Mon, Feb 20, 2012 at 1:51 PM, Chris Foulston <ch...@onebrightspace.com>wrote:

> Hi,
>
> We're not having (and never had) any luck getting the image mosaic to work
> with JPEG coverages.
>
> We have 16GB of JPEG files (2400) with corresponding jgw extents and the
> prj file. We have successfully created the store and the layer. However
> when we view the layer it shows as black tiles (those a few tiles here and
> there have shown).
>
> The errors in the log we are getting are as follows:
>
> 2012-02-20 13:31:57,886 ERROR [gce.imagemosaic] - Unable to load the
> raster for granuleDescriptor 0
> java.util.concurrent.ExecutionException:
> java.lang.IndexOutOfBoundsException: imageIndex out of bounds!
>
> Does anyone know how to solve this? I've seen some talk in the JAI forums
> that progressive JPEGs have issues but I'm quite sure our files are
> baseline JPEGs.
>

Can you open a ticket at jira.codehaus.org and attach a small number of
contiguous jpeg files to reproduce the issue?


>
> Any ideas would be much appreciated before we convert the lot into 256bit
> tiffs.
>

256bit?

Anyways, it's probably going to be the best thing, jpeg is one of the most
unsuitable image formats
when it comes to playing as a raster data source: it's not inner tiled, the
file has to be read fully to
extract only a portion of it, and does not have overviews.

Converting to tiffs with inner tiling and overviews will make the size grow
a bit,
but performance will benefit a lot. Tiffs can be jpeg compressed
internally, but
each tile is compressed separately allowing to efficient access of
sub-portions of
the fil.

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to