Opened 16 years ago

Closed 16 years ago

#505 closed defect (fixed)

WMS provider doesn't support GrayIndex with Alpha band

Reported by: christinebao Owned by: christinebao
Priority: major Milestone: 3.5.0
Component: WMS Provider Version: 3.4.0
Severity: 3 Keywords:
Cc: External ID: 1204197.01

Description

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.

Attachments (1)

1204197.01 (4.5 KB ) - added by christinebao 16 years ago.
Patch to fix the defect.

Download all attachments as: .zip

Change History (2)

by christinebao, 16 years ago

Attachment: 1204197.01 added

Patch to fix the defect.

comment:1 by christinebao, 16 years ago

Resolution: fixed
Status: newclosed

Fix this defect at revision 4544.

Note: See TracTickets for help on using tickets.