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 <[email protected]>
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev