Re: [gdal-dev] how to hide warning information?
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
Re: [gdal-dev] how to hide warning information?
On 2012/03/19 07:49, chenliang wang wrote: > hello: > Is there any option to hide warning when I load some raster by means of > gdal functions? Thanks! > > chen liang wang > ___ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev gdal-waddawadda > /dev/null 2> /dev/null > /dev/null sends sysout to dev null and 2> does the same for syserr otherwise check the gdal manual to see if there is a -quiet (or something) HTH, Zoltan -- === Zoltan Szecsei PrGISc [PGP0031] Geograph (Pty) Ltd. P.O. Box 7, Muizenberg 7950, South Africa. 65 Main Road, Muizenberg 7945 Western Cape, South Africa. 34° 6'16.35"S 18°28'5.62"E Tel: +27-21-7884897 Mobile: +27-83-6004028 Fax: +27-86-6115323 www.geograph.co.za === ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
[gdal-dev] how to hide warning information?
hello: Is there any option to hide warning when I load some raster by means of gdal functions? Thanks! chen liang wang ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev