Hi Tom, Vincent,<br>
I&#39;m using GDAL via Java by means of the SWIG bindings.<br>
The error message automatically appears on the console when I call the
gdal.Open(name, accessType) method and GDAL is unable to open the
dataset.<br>
Anyway, I have just taken a look on the thread suggested by Vincent and now I can quiet the errors. Thank you.<br><br>Regards,<br>Daniele<br><br><br><div class="gmail_quote">On Fri, Oct 24, 2008 at 1:44 PM, Vincent Schut <span dir="ltr">&lt;<a href="mailto:schut@sarvision.nl">schut@sarvision.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Daniele,<br>
<br>
this thread should give you some hints:<br>
<br>
<a href="http://lists.osgeo.org/pipermail/gdal-dev/2003-March/000323.html" target="_blank">http://lists.osgeo.org/pipermail/gdal-dev/2003-March/000323.html</a><br>
<br>
Regards,<br><font color="#888888">
Vincent.</font><div><div></div><div class="Wj3C7c"><br>
<br>
Tom Kazimiers wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Daniele,<br>
<br>
were to you get those error message? Since GDAL is a library &nbsp;it<br>
shouldn&#39;t come up with thing like this - at least not errors which are<br>
shown to the user automatically (like message boxes or std::out prints<br>
(I guess). So if your application gets no dataset for a file it will get<br>
NULL returned, you can then do with this information what you want -<br>
either inform the user about it or not.<br>
<br>
Bye,<br>
Tom<br>
<br>
Daniele Romagnoli schrieb:<br>
 &nbsp;<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi list,<br>
Is it somehow possible to customize/hide some GDAL error messages?<br>
I know error messages are really useful to fix/understand problems.<br>
Anyway, let me expose my use case:<br>
<br>
I simply need to check if I can obtain a Dataset for a file and return<br>
a boolean.<br>
If I get a Dataset, great! Otherwise... no problem. :)<br>
The user won&#39;t see messages like this &quot;ERROR 4: `c:\mydataformat.frmt&#39;<br>
not recognised as a supported file format&quot; (although by this way he<br>
will never know why no Dataset has ben acquired).<br>
<br>
Is there some setConfigOption(&quot;xxx&quot;,) to hide (some) error messages?<br>
<br>
Thank you.<br>
Regards,<br>
<br>
Daniele<br>
<br>
<br>
-- <br>
-------------------------------------------------------<br>
Eng. Daniele Romagnoli<br>
Software Engineer<br>
<br>
GeoSolutions S.A.S.<br>
Via Carignoni 51<br>
55041 Camaiore (LU)<br>
Italy<br>
<br>
phone: +39 0584983027<br>
fax: &nbsp; &nbsp; +39 0584983027<br>
mob: &nbsp; +39 328 0559267<br>
<br>
<br>
<a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a><br>
<br>
-------------------------------------------------------<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
 &nbsp; &nbsp;<br>
</blockquote>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br>
 &nbsp;<br>
</blockquote>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-------------------------------------------------------<br>Eng. Daniele Romagnoli <br>Software Engineer<br><br>GeoSolutions S.A.S.<br>Via Carignoni 51<br>55041 Camaiore (LU)<br>
Italy<br><br>phone: +39 0584983027<br>fax: &nbsp; &nbsp; +39 0584983027<br>mob: &nbsp; +39 328 0559267<br><br><br><a href="http://www.geo-solutions.it">http://www.geo-solutions.it</a><br><br>-------------------------------------------------------<br>
<br>