[gdal-dev] Question Regarding Custom gdal_translate

Patrick Young patrick.mckendree.young at gmail.com
Fri Mar 19 07:20:17 PDT 2021


FWIW check out

https://github.com/OSGeo/gdal/blob/master/autotest/utilities/test_gdal_translate.py
https://github.com/OSGeo/gdal/blob/master/autotest/utilities/test_gdal_translate_lib.py

On Fri, Mar 19, 2021 at 3:35 AM Andrew C Aitchison <andrew at aitchison.me.uk>
wrote:

> On Fri, 19 Mar 2021, mat data wrote:
>
> > I am required to edit a portion of gdal_translate utility to fit my own
> > needs. For that reason I would need to edit the code in gdal_translate
> > related cpp files. And redo the whole "make" command many times. Is
> there a
> > way so I can specifically test only gdal_translate functionality. So I
> > don't have to compile the GDAL project many times to test my custom code.
>
> If you do not run
>         make clean
> each time, then subsequent "make"runs should be fairly quick.
> This is one of the main features of make.
>
> You may also find that running make in the apps directory or the
> directory with the changed .cpp files is sufficient
> and that you do not need to run make in the top directory.
>
> You may find that you do still need to run
>       make install
> unless you run the newlybuilt copy of gdal_translate in the
> build directory ( "apps" if I remember correctly).
>
> --
> Andrew C. Aitchison                                     Kendal, UK
>                         andrew at aitchison.me.uk
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210319/fb4f5ffe/attachment.html>


More information about the gdal-dev mailing list