<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>
</p>
<div class="moz-cite-prefix">On 08/10/2020 18:22, Even Rouault
wrote:<br>
</div>
<blockquote type="cite" cite="mid:34119757.QWEEjDFSXj@even-i700">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<meta name="qrichtext" content="1">
<style type="text/css">
p, li { white-space: pre-wrap; }</style>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> Does a GDALDriver know his own name? GetDescription from GDALMajorObject</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> maybe? </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Yes, a GDALDriver knows its name. But the static method implemented by pfnOpen doesn't know which driver it comes from, so it doesn't set the poDriver member of the GDALDataset* it returns, and let that job to GDALOpen() itself. Which saves to do this in hundreds of drivers, and potentially forgetting to do it.</p>
<br>
</blockquote>
<p> This the same problem in the Node.js bindings, I am in the static Driver.open and I need the driver name from the GDALDriver object to be able to construct a GDALOpenEx call.</p>
<p>
</p>
<pre class="moz-signature" cols="72">--
Momtchil Momtchev <a class="moz-txt-link-rfc2396E" href="mailto:momtchil@momtchev.com"><momtchil@momtchev.com></a>
</pre>
</body>
</html>