[gdal-dev] how to hide warning information?
Frank Warmerdam
warmerdam at pobox.com
Mon Mar 19 02:05:12 EDT 2012
On 12-03-18 10:49 PM, chenliang wang wrote:
> hello:
> Is there any option to hide warning when I load some raster by means of
> gdal functions? Thanks!
Chen,
When using the GDAL C/C++ API you can call:
CPLPushErrorHandler( CPLQuietErrorHandler );
You may find it helpful to read:
http://www.gdal.org/cpl__error_8h.html#ad13c9c8f2037ddfd566c2a197f7b2537
I see that CPLQuietErrorHandler is not currently documented.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://home.gdal.org/warmerda
and watch the world go round - Rush | Geospatial Software Developer
More information about the gdal-dev
mailing list