[Geoserver-users] Exception serving GeoTIFF.

Hi List,
I have a GeoTIFF that I’ve created using the stuff from the previous thread (

gdal_merge -q -o file_name.tif -of GTiff -co TILED=YES -co BIGTIFF=YES -co COMPRESS=JPEG -co JPEG_QUALITY=85 -co BLOCKXSIZE=512 -co BLOCKYSIZE=512 --optfile tiff_list.txt

gdaladdo Aerial_Photography_2000.tif -r average --config COMPRESS_OVERVIEW JPEG --config JPEG_QUALITY_OVERVIEW 85 --config INTERLEAVE_OVERVIEW PIXEL --config PHOTOMETRIC_OVERVIEW YCBCR 2 4 8 16 32 64 128 256

However, when I add it to GeoServer (2.4.1) I get this:

Error rendering coverage on the fast path
javax.media.jai.util.ImagingException: All factories fail for the operation "ImageRead"
All factories fail for the operation "ImageRead"
null
java.lang.IndexOutOfBoundsException: imageIndex out of bounds!
imageIndex out of bounds!


The gdalinfo:

Files: Aerial_2006_jpeg.tif
Size is 220000, 332000
Coordinate System is:
PROJCS[“OSGB 1936 / British National Grid”,
GEOGCS[“OSGB 1936”,
DATUM[“OSGB_1936”,
SPHEROID[“Airy 1830”,6377563.396,299.3249646000044,
AUTHORITY[“EPSG”,“7001”]],
AUTHORITY[“EPSG”,“6277”]],
PRIMEM[“Greenwich”,0],
UNIT[“degree”,0.0174532925199433],
AUTHORITY[“EPSG”,“4277”]],
PROJECTION[“Transverse_Mercator”],
PARAMETER[“latitude_of_origin”,49],
PARAMETER[“central_meridian”,-2],
PARAMETER[“scale_factor”,0.9996012717],
PARAMETER[“false_easting”,400000],
PARAMETER[“false_northing”,-100000],
UNIT[“metre”,1,
AUTHORITY[“EPSG”,“9001”]],
AUTHORITY[“EPSG”,“27700”]]
Origin = (402000.000000000000000,311000.000000000000000)
Pixel Size = (0.250000000000000,-0.250000000000000)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
COMPRESSION=YCbCr JPEG
INTERLEAVE=PIXEL
SOURCE_COLOR_SPACE=YCbCr
Corner Coordinates:
Upper Left ( 402000.000, 311000.000) ( 1d58’13.45"W, 52d41’46.79"N)
Lower Left ( 402000.000, 228000.000) ( 1d58’15.23"W, 51d57’ 0.21"N)
Upper Right ( 457000.000, 311000.000) ( 1d 9’23.50"W, 52d41’36.01"N)
Lower Right ( 457000.000, 228000.000) ( 1d10’14.15"W, 51d56’49.71"N)
Center ( 429500.000, 269500.000) ( 1d34’ 1.66"W, 52d19’20.70"N)
Band 1 Block=512x512 Type=Byte, ColorInterp=Red
Overviews: 110000x166000, 55000x83000, 27500x41500, 13750x20750, 6875x10375, 3438x5188, 1719x2594, 860x1297
Band 2 Block=512x512 Type=Byte, ColorInterp=Green
Overviews: 110000x166000, 55000x83000, 27500x41500, 13750x20750, 6875x10375, 3438x5188, 1719x2594, 860x1297
Band 3 Block=512x512 Type=Byte, ColorInterp=Blue
Overviews: 110000x166000, 55000x83000, 27500x41500, 13750x20750, 6875x10375, 3438x5188, 1719x2594, 860x1297

The image works fine in ArcGIS.

Does anyone know what this means or why it’s not working?

Thanks,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

Dear Jonathan,
two things:

-1- we would need a large portion of the stacktrace
-2- a sample might be worth a thousand words :slight_smile:

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, Nov 28, 2013 at 1:40 PM, Jonathan Moules
<jonathanmoules@anonymised.com> wrote:

Hi List,
  I have a GeoTIFF that I've created using the stuff from the previous
thread (

gdal_merge -q -o file_name.tif -of GTiff -co TILED=YES -co BIGTIFF=YES -co
COMPRESS=JPEG -co JPEG_QUALITY=85 -co BLOCKXSIZE=512 -co BLOCKYSIZE=512
--optfile tiff_list.txt

gdaladdo Aerial_Photography_2000.tif -r average --config COMPRESS_OVERVIEW
JPEG --config JPEG_QUALITY_OVERVIEW 85 --config INTERLEAVE_OVERVIEW PIXEL
--config PHOTOMETRIC_OVERVIEW YCBCR 2 4 8 16 32 64 128 256

However, when I add it to GeoServer (2.4.1) I get this:

     Error rendering coverage on the fast path
javax.media.jai.util.ImagingException: All factories fail for the
operation &quot;ImageRead&quot;
All factories fail for the operation &quot;ImageRead&quot;
null
java.lang.IndexOutOfBoundsException: imageIndex out of bounds!
imageIndex out of bounds!

---

The gdalinfo:

Files: Aerial_2006_jpeg.tif
Size is 220000, 332000
Coordinate System is:
PROJCS["OSGB 1936 / British National Grid",
    GEOGCS["OSGB 1936",
        DATUM["OSGB_1936",
            SPHEROID["Airy 1830",6377563.396,299.3249646000044,
                AUTHORITY["EPSG","7001"]],
            AUTHORITY["EPSG","6277"]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433],
        AUTHORITY["EPSG","4277"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",49],
    PARAMETER["central_meridian",-2],
    PARAMETER["scale_factor",0.9996012717],
    PARAMETER["false_easting",400000],
    PARAMETER["false_northing",-100000],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AUTHORITY["EPSG","27700"]]
Origin = (402000.000000000000000,311000.000000000000000)
Pixel Size = (0.250000000000000,-0.250000000000000)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  COMPRESSION=YCbCr JPEG
  INTERLEAVE=PIXEL
  SOURCE_COLOR_SPACE=YCbCr
Corner Coordinates:
Upper Left ( 402000.000, 311000.000) ( 1d58'13.45"W, 52d41'46.79"N)
Lower Left ( 402000.000, 228000.000) ( 1d58'15.23"W, 51d57' 0.21"N)
Upper Right ( 457000.000, 311000.000) ( 1d 9'23.50"W, 52d41'36.01"N)
Lower Right ( 457000.000, 228000.000) ( 1d10'14.15"W, 51d56'49.71"N)
Center ( 429500.000, 269500.000) ( 1d34' 1.66"W, 52d19'20.70"N)
Band 1 Block=512x512 Type=Byte, ColorInterp=Red
  Overviews: 110000x166000, 55000x83000, 27500x41500, 13750x20750,
6875x10375, 3438x5188, 1719x2594, 860x1297
Band 2 Block=512x512 Type=Byte, ColorInterp=Green
  Overviews: 110000x166000, 55000x83000, 27500x41500, 13750x20750,
6875x10375, 3438x5188, 1719x2594, 860x1297
Band 3 Block=512x512 Type=Byte, ColorInterp=Blue
  Overviews: 110000x166000, 55000x83000, 27500x41500, 13750x20750,
6875x10375, 3438x5188, 1719x2594, 860x1297

The image works fine in ArcGIS.

Does anyone know what this means or why it's not working?

Thanks,
Jonathan

This transmission is intended for the named addressee(s) only and may
contain sensitive or protectively marked material up to RESTRICTED and
should be handled accordingly. Unless you are the named addressee (or
authorised to receive it for the addressee) you may not copy or use it, or
disclose it to anyone else. If you have received this transmission in error
please notify the sender immediately. All email traffic sent to or from us,
including without limitation all GCSX traffic, may be subject to recording
and/or monitoring in accordance with relevant legislation.
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Simone,

Thanks for this, but I ended up re-creating the Tiffs using a newer version of GDAL now that I’ve found one that works. It now works fine. No idea what was wrong with the previous one.

Thanks again,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

···

On 28 November 2013 19:28, Simone Giannecchini <simone.giannecchini@anonymised.com> wrote:

Dear Jonathan,
two things:

-1- we would need a large portion of the stacktrace
-2- a sample might be worth a thousand words :slight_smile:

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, Nov 28, 2013 at 1:40 PM, Jonathan Moules
<jonathanmoules@anonymised.com> wrote:

Hi List,
I have a GeoTIFF that I’ve created using the stuff from the previous
thread (

gdal_merge -q -o file_name.tif -of GTiff -co TILED=YES -co BIGTIFF=YES -co
COMPRESS=JPEG -co JPEG_QUALITY=85 -co BLOCKXSIZE=512 -co BLOCKYSIZE=512
–optfile tiff_list.txt

gdaladdo Aerial_Photography_2000.tif -r average --config COMPRESS_OVERVIEW
JPEG --config JPEG_QUALITY_OVERVIEW 85 --config INTERLEAVE_OVERVIEW PIXEL
–config PHOTOMETRIC_OVERVIEW YCBCR 2 4 8 16 32 64 128 256

However, when I add it to GeoServer (2.4.1) I get this:

Error rendering coverage on the fast path
javax.media.jai.util.ImagingException: All factories fail for the
operation "ImageRead"
All factories fail for the operation "ImageRead"
null
java.lang.IndexOutOfBoundsException: imageIndex out of bounds!
imageIndex out of bounds!


The gdalinfo:

Files: Aerial_2006_jpeg.tif
Size is 220000, 332000
Coordinate System is:
PROJCS[“OSGB 1936 / British National Grid”,
GEOGCS[“OSGB 1936”,
DATUM[“OSGB_1936”,
SPHEROID[“Airy 1830”,6377563.396,299.3249646000044,
AUTHORITY[“EPSG”,“7001”]],
AUTHORITY[“EPSG”,“6277”]],
PRIMEM[“Greenwich”,0],
UNIT[“degree”,0.0174532925199433],
AUTHORITY[“EPSG”,“4277”]],
PROJECTION[“Transverse_Mercator”],
PARAMETER[“latitude_of_origin”,49],
PARAMETER[“central_meridian”,-2],
PARAMETER[“scale_factor”,0.9996012717],
PARAMETER[“false_easting”,400000],
PARAMETER[“false_northing”,-100000],
UNIT[“metre”,1,
AUTHORITY[“EPSG”,“9001”]],
AUTHORITY[“EPSG”,“27700”]]
Origin = (402000.000000000000000,311000.000000000000000)
Pixel Size = (0.250000000000000,-0.250000000000000)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
COMPRESSION=YCbCr JPEG
INTERLEAVE=PIXEL
SOURCE_COLOR_SPACE=YCbCr
Corner Coordinates:
Upper Left ( 402000.000, 311000.000) ( 1d58’13.45"W, 52d41’46.79"N)
Lower Left ( 402000.000, 228000.000) ( 1d58’15.23"W, 51d57’ 0.21"N)
Upper Right ( 457000.000, 311000.000) ( 1d 9’23.50"W, 52d41’36.01"N)
Lower Right ( 457000.000, 228000.000) ( 1d10’14.15"W, 51d56’49.71"N)
Center ( 429500.000, 269500.000) ( 1d34’ 1.66"W, 52d19’20.70"N)
Band 1 Block=512x512 Type=Byte, ColorInterp=Red
Overviews: 110000x166000, 55000x83000, 27500x41500, 13750x20750,
6875x10375, 3438x5188, 1719x2594, 860x1297
Band 2 Block=512x512 Type=Byte, ColorInterp=Green
Overviews: 110000x166000, 55000x83000, 27500x41500, 13750x20750,
6875x10375, 3438x5188, 1719x2594, 860x1297
Band 3 Block=512x512 Type=Byte, ColorInterp=Blue
Overviews: 110000x166000, 55000x83000, 27500x41500, 13750x20750,
6875x10375, 3438x5188, 1719x2594, 860x1297

The image works fine in ArcGIS.

Does anyone know what this means or why it’s not working?

Thanks,
Jonathan

This transmission is intended for the named addressee(s) only and may
contain sensitive or protectively marked material up to RESTRICTED and
should be handled accordingly. Unless you are the named addressee (or
authorised to receive it for the addressee) you may not copy or use it, or
disclose it to anyone else. If you have received this transmission in error
please notify the sender immediately. All email traffic sent to or from us,
including without limitation all GCSX traffic, may be subject to recording
and/or monitoring in accordance with relevant legislation.

Rapidly troubleshoot problems before they affect your business. Most IT
organizations don’t have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

np :slight_smile:

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 Mon, Dec 2, 2013 at 11:34 AM, Jonathan Moules
<jonathanmoules@anonymised.com> wrote:

Hi Simone,
Thanks for this, but I ended up re-creating the Tiffs using a newer version
of GDAL now that I've found one that works. It now works fine. No idea what
was wrong with the previous one.

Thanks again,
Jonathan

On 28 November 2013 19:28, Simone Giannecchini
<simone.giannecchini@anonymised.com> wrote:

Dear Jonathan,
two things:

-1- we would need a large portion of the stacktrace
-2- a sample might be worth a thousand words :slight_smile:

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, Nov 28, 2013 at 1:40 PM, Jonathan Moules
<jonathanmoules@anonymised.com> wrote:
> Hi List,
> I have a GeoTIFF that I've created using the stuff from the previous
> thread (
>
> gdal_merge -q -o file_name.tif -of GTiff -co TILED=YES -co BIGTIFF=YES
> -co
> COMPRESS=JPEG -co JPEG_QUALITY=85 -co BLOCKXSIZE=512 -co BLOCKYSIZE=512
> --optfile tiff_list.txt
>
> gdaladdo Aerial_Photography_2000.tif -r average --config
> COMPRESS_OVERVIEW
> JPEG --config JPEG_QUALITY_OVERVIEW 85 --config INTERLEAVE_OVERVIEW
> PIXEL
> --config PHOTOMETRIC_OVERVIEW YCBCR 2 4 8 16 32 64 128 256
>
> However, when I add it to GeoServer (2.4.1) I get this:
>
>> Error rendering coverage on the fast path
>> javax.media.jai.util.ImagingException: All factories fail for the
>> operation &quot;ImageRead&quot;
>> All factories fail for the operation &quot;ImageRead&quot;
>> null
>> java.lang.IndexOutOfBoundsException: imageIndex out of bounds!
>> imageIndex out of bounds!
>
>
> ---
>
> The gdalinfo:
>
> Files: Aerial_2006_jpeg.tif
> Size is 220000, 332000
> Coordinate System is:
> PROJCS["OSGB 1936 / British National Grid",
> GEOGCS["OSGB 1936",
> DATUM["OSGB_1936",
> SPHEROID["Airy 1830",6377563.396,299.3249646000044,
> AUTHORITY["EPSG","7001"]],
> AUTHORITY["EPSG","6277"]],
> PRIMEM["Greenwich",0],
> UNIT["degree",0.0174532925199433],
> AUTHORITY["EPSG","4277"]],
> PROJECTION["Transverse_Mercator"],
> PARAMETER["latitude_of_origin",49],
> PARAMETER["central_meridian",-2],
> PARAMETER["scale_factor",0.9996012717],
> PARAMETER["false_easting",400000],
> PARAMETER["false_northing",-100000],
> UNIT["metre",1,
> AUTHORITY["EPSG","9001"]],
> AUTHORITY["EPSG","27700"]]
> Origin = (402000.000000000000000,311000.000000000000000)
> Pixel Size = (0.250000000000000,-0.250000000000000)
> Metadata:
> AREA_OR_POINT=Area
> Image Structure Metadata:
> COMPRESSION=YCbCr JPEG
> INTERLEAVE=PIXEL
> SOURCE_COLOR_SPACE=YCbCr
> Corner Coordinates:
> Upper Left ( 402000.000, 311000.000) ( 1d58'13.45"W, 52d41'46.79"N)
> Lower Left ( 402000.000, 228000.000) ( 1d58'15.23"W, 51d57' 0.21"N)
> Upper Right ( 457000.000, 311000.000) ( 1d 9'23.50"W, 52d41'36.01"N)
> Lower Right ( 457000.000, 228000.000) ( 1d10'14.15"W, 51d56'49.71"N)
> Center ( 429500.000, 269500.000) ( 1d34' 1.66"W, 52d19'20.70"N)
> Band 1 Block=512x512 Type=Byte, ColorInterp=Red
> Overviews: 110000x166000, 55000x83000, 27500x41500, 13750x20750,
> 6875x10375, 3438x5188, 1719x2594, 860x1297
> Band 2 Block=512x512 Type=Byte, ColorInterp=Green
> Overviews: 110000x166000, 55000x83000, 27500x41500, 13750x20750,
> 6875x10375, 3438x5188, 1719x2594, 860x1297
> Band 3 Block=512x512 Type=Byte, ColorInterp=Blue
> Overviews: 110000x166000, 55000x83000, 27500x41500, 13750x20750,
> 6875x10375, 3438x5188, 1719x2594, 860x1297
>
> The image works fine in ArcGIS.
>
> Does anyone know what this means or why it's not working?
>
> Thanks,
> Jonathan
>
>
> This transmission is intended for the named addressee(s) only and may
> contain sensitive or protectively marked material up to RESTRICTED and
> should be handled accordingly. Unless you are the named addressee (or
> authorised to receive it for the addressee) you may not copy or use it,
> or
> disclose it to anyone else. If you have received this transmission in
> error
> please notify the sender immediately. All email traffic sent to or from
> us,
> including without limitation all GCSX traffic, may be subject to
> recording
> and/or monitoring in accordance with relevant legislation.
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into
> your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> AppDynamics
> Pro!
>
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>

This transmission is intended for the named addressee(s) only and may
contain sensitive or protectively marked material up to RESTRICTED and
should be handled accordingly. Unless you are the named addressee (or
authorised to receive it for the addressee) you may not copy or use it, or
disclose it to anyone else. If you have received this transmission in error
please notify the sender immediately. All email traffic sent to or from us,
including without limitation all GCSX traffic, may be subject to recording
and/or monitoring in accordance with relevant legislation.