[gdal-dev] Call for review on RFC 104: Adding a "gdal" front-end command line interface

Even Rouault even.rouault at spatialys.com
Thu Apr 10 12:50:23 PDT 2025


Le 25/11/2024 à 10:21, Even Rouault via gdal-dev a écrit :
>
> Hi Rob,
>
>>
>> Is it worth reserving space for a future Git or Github-cli style 
>> plugin mechanism where third party tools can extend the `gdal` CLI? 
>> eg: `gdal raster from-contours`
>>
>>   * `git foo` simply looks for internal code first, then executes
>>     `git-foo` if it's present, then expands any configured command
>>     aliases
>>   * Github cli has an explicit extension install/packaging mechanism:
>>     https://docs.github.com/en/github-cli/github-cli/creating-github-cli-extensions
>>
> I would let that aside for now (trying to limit as much as possible 
> the scope of the current RFC to avoid it going out of control). That's 
> something that should be relatively easy to add if someone needed 
> that. But actually you can already extend the "gdal" utility, for 
> commands a the top level, if you provide a shared library in the 
> gdalplugins directory and that it registers an algorithm the same way 
> built-in algorithms do. The bonus point doing that way is that 
> potential GUI built on top of gdal that would use "gdal --json-usage" 
> (or the equivalent C/C++ API) would autodiscover such extension with 
> its supported options.
>
Implemented per https://github.com/OSGeo/gdal/pull/12126

-- 
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/20250410/a05a8b57/attachment.htm>


More information about the gdal-dev mailing list