[gdal-dev] problem with ArcSDE raster (negative values)

bartvde at osgis.nl bartvde at osgis.nl
Tue Dec 8 04:45:25 EST 2009


Hi list,

I've been trying to debug my problem which I originally posted on
mapserver-users here:

http://lists.osgeo.org/pipermail/mapserver-users/2009-November/063706.html

I've debugged the problem to the following part of
frmts/sde/sderasterband.cpp:

    if (bits_per_pixel >= 8) {
        memcpy(pImage, pixels, block_size);
        GByte *p = reinterpret_cast<GByte*>(pImage);
    } else {

The values in the pixels variable are still okay, and contain mostly
negative values as well as 0 (for example -42).

The p variable only contains positive values and 0 values.

Hopefully this will help somebody to pinpoint the problem, as I am not
familiar enough with C++ to solve this.

TIA.

Best regards,
Bart




More information about the gdal-dev mailing list