#2404 closed enhancement (fixed)
[PATCH] Support 24 bit input raster with nodata.
| Reported by: | rouault | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | GDAL Support | Version: | svn-trunk (development) |
| Severity: | normal | Keywords: | raster nodata |
| Cc: | warmerdam |
Description
The attached patch enables msDrawRasterLayerGDAL to take into account 24 bit input rasters with nodata. This could be somehow already done with the "OFFSITE" parameter, but this doesn't let a control on the dataset level. The use case for the patch is a set of tiff images (with GDAL nodata values) put inside a tile index. With the patch, OFFSITE becomes useless.
I'm attaching an input 24-bit raster with nodata (0,0,0) and a mapfile to demonstrate. The patch covers the cases of 8-bit and 24-bit output.
Attachments (3)
Change History (7)
by , 17 years ago
| Attachment: | red_square2.tif added |
|---|
by , 17 years ago
| Attachment: | red_square.map added |
|---|
comment:1 by , 17 years ago
by , 17 years ago
| Attachment: | mapserver_svn_trunk_24bit_input_raster_with_nodata.patch added |
|---|
comment:2 by , 16 years ago
| Component: | MapServer C Library → GDAL Support |
|---|---|
| Owner: | changed from to |
Frank, comments on this one? I'm changing the component to GDAL since that's where it really belongs.
Steve
comment:3 by , 14 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:4 by , 14 years ago
I would note that OFFSITE is still supported, and the usual PROCESSING "NODATA=OFF" mechanism can be used to disable using GDAL level nodata.

Patch updated to support the dithering case too.