[gdal-dev] Return from Set/GetNoDataValue

Andrew Bell andrew.bell.ia at gmail.com
Tue Sep 5 05:02:14 PDT 2017


Perhaps this is a documentation issue, but I ran into:

double BTRasterBand::GetNoDataValue( int* pbSuccess /*= NULL */ )
{
    if(pbSuccess != NULL)
        *pbSuccess = TRUE;

    return -32768;
}

CPLErr BTRasterBand::SetNoDataValue( double )

{
    return CE_None;
}

It seems as if you can't set or fetch a nodata value, an error should be
returned.  In this case, the code indicates no error.  How is one supposed
to know (other than reading the code) that you can't set a value if success
is returned if this operation isn't supported?

Thanks,

-- 
Andrew Bell
andrew.bell.ia at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170905/85eadd31/attachment-0001.html>


More information about the gdal-dev mailing list