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, warmer...@pobox.com
light and sound - activate the windows | http://home.gdal.org/warmerda
and watch the world go round - Rush    | Geospatial Software Developer

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to