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

bartvde at osgis.nl bartvde at osgis.nl
Tue Dec 8 06:49:41 EST 2009


Hi Ivan,

unfortunately that's not an option yet, since we use ArcSDE 9.1 which is
not compatible with GeoRaster. We need to wait until our 9.3.1 or 9.4
upgrade.

Best regards,
Bart

> bartvde at osgis.nl wrote:
>> 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
>>
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>
> Bart,
>
> Since you are using Oracle 10g, have you tried to use the GDAL/GeoRaster
> driver instead of the
> GDAL/SDE?
>
> The GeoRaster driver uses the OCI library to read BLOB direct from the
> server, as long as the column
> data type is the ORACLE's SDO_GEORASTER, not the ESRI's ST_RASTER or
> Terralib's TE_RASTER or
> anything else...
>
> You would need to change your .MAP file, LAYER/DATA parameter according to
> the GeoRaster
> identification string [http://gdal.org/frmt_georaster.html].
>
> Regards,
>
> Ivan
>
>




More information about the gdal-dev mailing list