[gdal-dev] GDALDatasetDriver->poDriver = NULL

Momtchil Momtchev momtchil at momtchev.com
Thu Oct 8 09:28:39 PDT 2020


On 08/10/2020 18:22, Even Rouault wrote:
>
> > Does a GDALDriver know his own name? GetDescription from GDALMajorObject
>
> > maybe?
>
> 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.
>
>
     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.

-- 
Momtchil Momtchev <momtchil at momtchev.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20201008/38fc3046/attachment.html>


More information about the gdal-dev mailing list