Opened 17 years ago

Closed 14 years ago

Last modified 14 years ago

#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)

red_square2.tif (32.2 KB ) - added by rouault 17 years ago.
red_square.map (992 bytes ) - added by rouault 17 years ago.
mapserver_svn_trunk_24bit_input_raster_with_nodata.patch (2.3 KB ) - added by rouault 17 years ago.

Download all attachments as: .zip

Change History (7)

by rouault, 17 years ago

Attachment: red_square2.tif added

by rouault, 17 years ago

Attachment: red_square.map added

comment:1 by rouault, 17 years ago

Patch updated to support the dithering case too.

comment:2 by sdlime, 16 years ago

Component: MapServer C LibraryGDAL Support
Owner: changed from sdlime to warmerdam

Frank, comments on this one? I'm changing the component to GDAL since that's where it really belongs.

Steve

comment:3 by warmerdam, 14 years ago

Resolution: fixed
Status: newclosed

A variation on this patch has been incorporated in trunk (r10006) with msautotest tests (r10005).

comment:4 by warmerdam, 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.

Note: See TracTickets for help on using tickets.