<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>you can surround the call to GDALOpenEx() with</p>
<p>CPLPushErrorHandler(CPLQuietErrorHandler);</p>
<p>... GDALOpenEx() here ...<br>
</p>
<p>CPLPopErrorHandler();<br>
</p>
<div class="moz-cite-prefix">Le 29/06/2025 à 21:20, Joaquim Manuel
Freire Luís via gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:AM6PR04MB6440EC4D1AE4B88D65628061A647A@AM6PR04MB6440.eurprd04.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Aptos;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;}span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Aptos",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:11.0pt;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="PT"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT"><o:p> </o:p></span></p>
<p class="MsoNormal">Again the Julia wrapper. In it to find if a
file holds a raster or a vector I first open it with
GDAL_OF_RASTER and see it the return pointer is NULL. This has
been working well and SILENTLY when it fail (because a OGR
vector file name was passed in). But with these Meteostat
.csv.gz files it fails (expected) but prints an ERROR 1
message.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The closes (to C and perhaps Python) I can
reproduce is this<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">julia>
GMT.Gdal.GDALOpenEx("/vsigzip//vsicurl/<a class="moz-txt-link-freetext" href="https://bulk.meteostat.net/v2/daily/08554.csv.gz">https://bulk.meteostat.net/v2/daily/08554.csv.gz</a>",
GMT.Gdal.GDAL_OF_RASTER, C_NULL, C_NULL, C_NULL)<o:p></o:p></p>
<p class="MsoNormal">ERROR 1: At line 1, did not find X, Y
and/or Z values<o:p></o:p></p>
<p class="MsoNormal"><span lang="PT">Ptr{Nothing}
@0x0000000000000000<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT"><o:p> </o:p></span></p>
<p class="MsoNormal">All works right, but this error message is
annoying (and normal users will not understand it).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Anything I can do to shut it up?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Joaquim <o:p></o:p></p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>