Opened 14 years ago

Last modified 9 years ago

#3691 closed defect

GDAL doesn't create correct image from WCS indexed raster — at Version 2

Reported by: yjacolin Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description (last modified by yjacolin)

How to see this bug:

  1. create a WCS service (with MapServer for instance) with an indexed raster layer. Set up an imagemode to PC256 and in METADATA object of the layer:
"wcs_bandcount" "1"
  1. you need an indexed raster file, you can create it with rgb2pct.py script from a RGBA raster file
  2. retrieve image directly with the GetCoverage request (image #1)
  3. retrieve image with gdal (image #2)

image #1 and #2 are different (b&w for #2, color for #1)

Here is an xml code to put in a file to use with gdal and a GetCoverage url to see both image.

<WCS_GDAL>
  <ServiceURL>http://ifremer-maintenancesextant-demo.dmz.lsn.camptocamp.com/cgi-bin/bug?</ServiceURL>
  <CoverageName>test</CoverageName>
</WCS_GDAL>

http://ifremer-maintenancesextant-demo.dmz.lsn.camptocamp.com/cgi-bin/bug?SERVICE=WCS&COVERAGE=test&TRANSPARENT=true&VERSION=1.1.1&FORMAT=geotiff&REQUEST=GetCoverage&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&CRS=EPSG:27561&BBOX=82999.9,107400.1,83999.9,109000.1&WIDTH=800&HEIGHT=570

server could be closed one day, even if I try to keep it on, so don't hesitate to contact me if this occurs and you need it to work on this ticket.

Thanks.

Y. PS : edit to change url to the public url

Change History (2)

comment:1 by yjacolin, 14 years ago

Hello,

Sorry this server is not public yet. We are working on it and let you know the correct url.

Thanks,

Y.

comment:2 by yjacolin, 14 years ago

Description: modified (diff)

Hello,

Note: See TracTickets for help on using tickets.