Dear List,
Having trouble in migrating a layer group comprising of 3 image mosaic layers, the problem seems to be occurring due to a wms request being generated on image`s with NO DATA areas on the outside which are suppose to be transparent. The same image mosaic layer has no problem on GS 1.7.7 and is working flawlessly. Attaching screen shots of GS 1.7.7 (Weblogic 10.3.3) and GS 2.2.2(JBoss 1.7) paint a better picture. The error goes away when Output and Input transparent colors are not set but then error area would appear as black strips if done so.
GS 1.7.7 Settings
AllowMultithreading:true
MaxAllowedTiles:2147483647
InputTransparentColor:‘no color’
OutputTransparentColor:#000000
SUGGESTED_TILE_SIZE:512,512
InputImageThresholdValue:NaN
USE_JAI_IMAGEREAD::true
BackgroundValues:default value
http://postimage.org/image/r2gmxekon/
GS 2.2.2
AllowMultithreading:true
BackgroundValues:default value
InputTransparentColor: <left empty … will not let type ‘no color’>
OutputTransparentColor:000000
SUGGESTED_TILE_SIZE:512,512
USE_JAI_IMAGEREAD::true
http://postimage.org/image/aq6l7o6d3/
stack trace
ERROR [org.geotools.rendering] (http–10.128.6.76-8080-9) Unsupported data type.: java.lang.IllegalStateException: Unsupported data type.
at org.geotools.image.ImageWorker.makeColorTransparent(ImageWorker.java:1757) [gt-coverage-8.4.jar:]
at org.geotools.resources.image.ImageUtilities.maskColor(ImageUtilities.java:909) [gt-coverage-8.4.jar:]
at org.geotools.gce.imagemosaic.RasterLayerResponse.postProcessRaster(RasterLayerResponse.java:715) [gt-imagemosaic-8.4.jar:]
at org.geotools.gce.imagemosaic.RasterLayerResponse.processRequest(RasterLayerResponse.java:703) [gt-imagemosaic-8.4.jar:]
at org.geotools.gce.imagemosaic.RasterLayerResponse.createResponse(RasterLayerResponse.java:661) [gt-imagemosaic-8.4.jar:]
at org.geotools.gce.imagemosaic.RasterManager.read(RasterManager.java:339) [gt-imagemosaic-8.4.jar:]
at org.geotools.gce.imagemosaic.ImageMosaicReader.read(ImageMosaicReader.java:617) [gt-imagemosaic-8.4.jar:]
…
gdalinfo for one of the corner tif files
D:\mapDL\pak_base\geotiff>gdalinfo -mm base_1_8.tif
Driver: GTiff/GeoTIFF
Files: base_1_8.tif
Size is 8256, 8256
Coordinate System is:
GEOGCS[“WGS 84”,
DATUM[“WGS_1984”,
SPHEROID[“WGS 84”,6378137,298.2572235630016,
AUTHORITY[“EPSG”,“7030”]],
AUTHORITY[“EPSG”,“6326”]],
PRIMEM[“Greenwich”,0],
UNIT[“degree”,0.0174532925199433],
AUTHORITY[“EPSG”,“4326”]]
Origin = (68.727772814712637,37.248028461103473)
Pixel Size = (0.000149856655853,-0.000149856655853)
Metadata:
AREA_OR_POINT=Area
TIFFTAG_SOFTWARE=IMAGINE TIFF Support
Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved
@(#)$RCSfile: etif.c $ $Revision: 1.10.1.9.1.9.2.11 $ $Date: 2004/09/15 18:42:01
EDT $
TIFFTAG_XRESOLUTION=1
TIFFTAG_YRESOLUTION=1
TIFFTAG_RESOLUTIONUNIT=1 (unitless)
Image Structure Metadata:
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 68.7277728, 37.2480285)
Lower Left ( 68.7277728, 36.0108119)
Upper Right ( 69.9649894, 37.2480285)
Lower Right ( 69.9649894, 36.0108119)
Center ( 69.3463811, 36.6294202)
Band 1 Block=256x256 Type=Byte, ColorInterp=Red
Min=0.000 Max=255.000 Computed Min/Max=0.000,255.000
Minimum=0.000, Maximum=255.000, Mean=22.680, StdDev=50.801
Overviews: 4128x4128, 2064x2064, 1032x1032
Metadata:
STATISTICS_MINIMUM=0
STATISTICS_MAXIMUM=255
STATISTICS_MEAN=22.679871063938
STATISTICS_MEDIAN=0
STATISTICS_MODE=0
STATISTICS_STDDEV=50.801208472335
STATISTICS_HISTONUMBINS=256
STATISTICS_HISTOMIN=0
STATISTICS_HISTOMAX=255
LAYER_TYPE=athematic
STATISTICS_HISTOBINVALUES=55913088|0|0|0|0|0|64|64|0|64|64|192|64|256|320|51
2|128|384|320|704|576|576|640|832|896|1280|1024|1536|2304|1664|1280|2752|2368|37
12|3392|3840|4544|5440|5056|4864|5760|5952|7552|7360|7616|8896|8832|10496|10432|
12032|12928|14208|16192|18304|18560|19456|18752|20864|24320|24960|26624|29696|32
256|32064|33280|37440|39424|41152|46144|46528|46720|49600|51968|57920|56320|6003
2|63424|66304|63744|70784|69184|71680|79040|80256|77312|79168|78336|80192|81344|
84288|84928|86144|91840|90432|88448|92800|96128|98112|100416|101312|99456|104000
|103936|101184|110784|107392|104640|114048|117888|118144|120256|115136|117184|11
9808|126528|116608|120512|120576|125248|124224|123520|123328|122560|123840|11628
8|124352|119104|117056|118656|115136|117696|122688|121408|120064|122560|120576|1
22688|116224|125376|123008|121792|120832|118464|124160|115648|122112|113920|1199
36|119936|113216|119168|118016|112576|112832|107840|106240|107264|111808|103808|
97472|94656|97600|95680|90752|89024|91904|83328|82752|81920|77248|76672|73280|67
968|63936|63232|60032|56128|56384|54784|48128|49600|44352|42368|41088|37312|3468
8|33792|31104|29632|27264|25856|23808|23040|19072|19904|18176|18048|15936|14400|
14912|12416|11136|10816|10112|9728|9600|8000|7168|6592|5248|5632|3520|5056|4672|
4416|3520|3392|3584|3328|2816|3136|2880|2624|2048|1728|1792|2496|2176|1536|1728|
1152|1920|1344|1536|1472|1152|1088|960|896|1600|1344|960|1408|1024|1728|1408|160
0|1344|1024|1600|1792|1408|1728|2432|2752|10432|
Band 2 Block=256x256 Type=Byte, ColorInterp=Green
Min=0.000 Max=255.000 Computed Min/Max=0.000,255.000
Minimum=0.000, Maximum=255.000, Mean=21.486, StdDev=48.153
Overviews: 4128x4128, 2064x2064, 1032x1032
Metadata:
STATISTICS_MINIMUM=0
STATISTICS_MAXIMUM=255
STATISTICS_MEAN=21.4863355192
STATISTICS_MEDIAN=0
STATISTICS_MODE=0
STATISTICS_STDDEV=48.15334535167
STATISTICS_HISTONUMBINS=256
STATISTICS_HISTOMIN=0
STATISTICS_HISTOMAX=255
LAYER_TYPE=athematic
STATISTICS_HISTOBINVALUES=55913152|0|64|0|0|64|0|128|0|192|128|192|192|64|19
2|512|448|576|448|448|640|384|768|640|832|1344|1152|1152|1088|1984|2240|2624|345
6|2944|3392|3200|4096|5056|5056|5632|7104|5760|6528|9728|10176|10624|11008|12800
|11968|12800|17280|16192|19456|19648|21248|24000|24960|27648|29888|31680|36032|3
6480|38592|40704|47168|48064|55360|52160|56192|59776|61568|69568|72640|70848|745
60|74304|80448|77632|81728|80768|86528|81344|92032|91648|85696|86080|90880|97600
|96000|100736|96768|103488|103744|109184|107776|111616|109248|114688|109248|1137
28|115328|122240|125312|121152|118336|123520|127168|131264|125440|128448|126976|
131968|129280|133824|133248|132928|132160|131584|128832|127936|127424|126144|129
664|128064|127168|132416|136192|131008|128256|135168|131264|129280|128320|134080
|128832|131648|127360|127104|129280|128320|122176|122688|118016|115968|115072|11
5136|113984|109760|107328|104640|111232|97600|101184|93824|92992|89408|88960|840
32|81344|79680|73472|72768|69952|67904|60736|59776|59072|55616|56704|51200|47552
|47552|44480|38016|37504|36608|35328|29824|30080|29504|27968|26048|26112|23488|2
2144|20992|19840|18304|15680|15040|14272|12928|11968|11072|10176|9728|9344|7488|
9664|6656|6080|5568|4544|5120|4800|4928|4544|3328|4544|3776|3008|3648|3072|2112|
3264|2944|2496|1408|2560|2112|2304|2112|1408|1472|1344|1344|1088|1600|896|1024|1
408|1728|1088|1472|1280|832|1088|704|704|640|1152|832|960|1152|640|768|1472|832|
1280|1408|1536|1664|1920|1984|3648|11776|
Band 3 Block=256x256 Type=Byte, ColorInterp=Blue
Min=0.000 Max=255.000 Computed Min/Max=0.000,255.000
Minimum=0.000, Maximum=255.000, Mean=17.512, StdDev=39.630
Overviews: 4128x4128, 2064x2064, 1032x1032
Metadata:
STATISTICS_MINIMUM=0
STATISTICS_MAXIMUM=255
STATISTICS_MEAN=17.512456057328
STATISTICS_MEDIAN=0
STATISTICS_MODE=0
STATISTICS_STDDEV=39.630178523998
STATISTICS_HISTONUMBINS=256
STATISTICS_HISTOMIN=0
STATISTICS_HISTOMAX=255
LAYER_TYPE=athematic
STATISTICS_HISTOBINVALUES=55914176|320|192|448|256|320|256|640|832|448|640|9
60|768|1088|768|1472|1600|1536|2176|2368|2432|3328|2944|2944|3584|4416|5440|5888
|7488|7680|9856|9856|10368|11392|12928|15040|14720|17280|19712|24320|23040|27200
|28992|30208|32832|38080|39616|43968|48128|51392|54080|56000|66176|67136|70656|7
2960|81280|83520|84096|87296|90752|93504|94208|98688|97792|100928|104640|109632|
111296|107264|110592|113984|121088|126848|124224|125952|127360|133824|132800|137
152|135168|139328|140288|144896|146240|147328|148800|151680|150400|158400|154432
|157120|150848|153600|158016|161344|154496|155904|156928|154624|156544|151104|15
6416|156160|152128|148480|147392|150016|155776|148480|141504|141376|142144|14323
2|136064|133696|133888|130688|128896|126912|124928|118912|122560|112128|113088|1
06112|104960|100544|95808|85312|90944|85312|84416|75904|73920|72064|68736|66112|
58432|62528|57600|53632|50304|46848|42816|42624|38464|36864|33856|32832|30080|28
480|27328|26816|25472|23168|21376|22464|19264|16064|16576|13952|14592|13632|1113
6|11072|10176|10496|8448|8512|7488|7296|7808|6720|5888|5376|5376|4288|3840|6080|
4736|3968|4032|4096|3648|3072|2752|2944|2560|3328|2688|2176|1984|2688|1152|1664|
1600|1600|1344|1408|1152|1472|1472|1344|1216|896|1280|1216|1152|1152|1088|1216|1
024|1088|512|1024|512|576|576|512|832|576|384|512|384|640|384|512|512|448|512|32
0|576|576|256|768|448|768|704|1024|576|512|896|832|1152|896|1088|960|1216|1792|1
856|1984|1472|1472|1856|7296|
regards,
Imran