[gdal-dev] [EXTERNAL] [BULK] Re: Is there a way to load a custom driver without a declaration in gdal_frmts.h?

Even Rouault even.rouault at spatialys.com
Mon Dec 11 08:24:20 PST 2023


Le 11/12/2023 à 17:17, Meyer, Jesse R. (GSFC-618.0)[SCIENCE SYSTEMS AND 
APPLICATIONS INC] via gdal-dev a écrit :
>
> Thanks, that looks promising.
>
> Does GDAL automatically call `AutoLoadDrivers`?  If not, do team 
> members need to force a call to that?
>
GDALAllRegister() which is normally called by all standard code using 
GDAL calls it: 
https://github.com/OSGeo/gdal/blob/54890592b410d95a59b4b07c0b499ca383005514/frmts/gdalallregister.cpp#L319

Even

> *From: *gdal-dev <gdal-dev-bounces at lists.osgeo.org> on behalf of 
> Laurențiu Nicola via gdal-dev <gdal-dev at lists.osgeo.org>
> *Reply-To: *Laurențiu Nicola <lnicola at dend.ro>
> *Date: *Monday, December 11, 2023 at 11:13 AM
> *To: *"gdal-dev at lists.osgeo.org" <gdal-dev at lists.osgeo.org>
> *Subject: *[EXTERNAL] [BULK] Re: [gdal-dev] Is there a way to load a 
> custom driver without a declaration in gdal_frmts.h?
>
> *CAUTION:*This email originated from outside of NASA.  Please take 
> care when clicking links or opening attachments. Use the "Report 
> Message" button to report suspicious messages to the NASA SOC.
>
>
>
> Hi Jesse,
>
> https://gdal.org/api/gdaldriver_cpp.html#_CPPv4N17GDALDriverManager15AutoLoadDriversEv 
> should answer your question.
>
> Laurentiu
>
> On Mon, Dec 11, 2023, at 18:11, Meyer, Jesse R. (GSFC-618.0)[SCIENCE 
> SYSTEMS AND APPLICATIONS INC] via gdal-dev wrote:
>
>     Hi,
>
>     I know drivers can be built as plugins, but can they be detected /
>     used by GDAL if they are not registered via gdal_frmts.h?  It
>     doesn’t seem so.  Is this a C++ ABI restriction?  We’d like to
>     provide members of our team an internal and custom gdal driver
>     implementation without each of them needing a special GDAL build.
>
>     Best,
>
>     Jesse
>
>     _______________________________________________
>
>     gdal-dev mailing list
>
>     gdal-dev at lists.osgeo.org
>
>     https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20231211/2a6e44c7/attachment.htm>


More information about the gdal-dev mailing list