<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi all,
<div class=""><br class="">
</div>
<div class="">I recently wrote about the difficulty of reading an s57 chart with GDAL following the standard example, as it seems that GDAL cannot find the s57 driver (the gdalinfo command also returns an error). I am curious to know, if this is a general problem,
or if it is only my local GDAL installation. The example I try to run is the following:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="color: rgb(54, 54, 54); background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 16px; line-height: 24px; white-space: pre;">
<div class=""><span class="" style="color: rgb(157, 78, 150);">#include</span><span class="" style="color: rgb(63, 151, 223);">
</span><span class="" style="color: rgb(162, 86, 55);">"ogrsf_frmts.h"</span></div>
<br class="">
<div class=""><span class="" style="color: rgb(63, 151, 223);">int</span> <span class="" style="color: rgb(99, 99, 36);">
main</span>()</div>
<br class="">
<div class="">{</div>
<div class=""><span class="" style="color: rgb(99, 99, 36);">GDALAllRegister</span>();</div>
<br class="">
<div class="">GDALDataset *poDS;</div>
<br class="">
<div class="">poDS = (GDALDataset*) <span class="" style="color: rgb(99, 99, 36);">
GDALOpenEx</span>( <span class="" style="color: rgb(162, 86, 55);">"US5LA26M.000"</span>, GDAL_OF_VECTOR,
<span class="" style="color: rgb(63, 151, 223);">NULL</span>, <span class="" style="color: rgb(63, 151, 223);">
NULL</span>, <span class="" style="color: rgb(63, 151, 223);">NULL</span> );</div>
<div class=""><span class="" style="color: rgb(157, 78, 150);">if</span>( poDS ==
<span class="" style="color: rgb(63, 151, 223);">NULL</span> )</div>
<div class="">{</div>
<div class=""><span class="" style="color: rgb(99, 99, 36);">printf</span>( <span class="" style="color: rgb(162, 86, 55);">
"Open failed.</span><span class="" style="color: rgb(152, 116, 40);">\n</span><span class="" style="color: rgb(162, 86, 55);">"</span> );</div>
<div class=""><span class="" style="color: rgb(99, 99, 36);">exit</span>( <span class="" style="color: rgb(73, 104, 57);">
1</span> );</div>
<div class="">}</div>
<div class="">}</div>
</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">.</div>
</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class="">
</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">When I run this, poDS is NULL and the program exits after printing the error message.</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">It happens on all the different s57 charts I have used. Charts are available from NOAA at <a href="https://charts.noaa.gov/ENCs/ENCs.shtml" class="">https://charts.noaa.gov/ENCs/ENCs.shtml</a>.
It would be great to see, if someone can replicate this bug.</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class="">
</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Best regards,</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class="">
</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Aryan.</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class="">
</div>
</body>
</html>