[fdo-trac] #505: WMS provider doesn't support GrayIndex with Alpha band

FDO trac_fdo at osgeo.org
Wed Apr 15 02:58:44 EDT 2009


#505: WMS provider doesn't support GrayIndex with Alpha band
----------------------------+-----------------------------------------------
   Reporter:  christinebao  |       Owner:  christinebao
       Type:  defect        |      Status:  new         
   Priority:  major         |   Milestone:  3.5.0       
  Component:  WMS Provider  |     Version:  3.4.0       
   Severity:  3             |    Keywords:              
External_id:  1204197.01    |  
----------------------------+-----------------------------------------------
 Steps to reproduce:
 1. connect to WMS server:  http://wms.jpl.nasa.gov/wms.cgi?
 2. try to read the feature class "Digital Elecation Map of the United
 States,DTED dataset, 3 second resolution,grayscale"'s raster property
 GetNumberOfBands().

 Result:
 Exception thrown out.

 How to fix:
 this raster contains 2 bands: first is GrayIndex and second is Alpha. WMS
 can't recognize this kind of combination and caused the exception. As WMS
 only support 4 bands of Red, Green, Blue, Alpha, the way to fix is to
 expand GrayIndex to Red, Green and Blue, and then WMS provider can deal
 with it.

-- 
Ticket URL: <http://trac.osgeo.org/fdo/ticket/505>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list