<div dir="ltr">Hi!<div><br></div><div>gdal_calc is implemented fully in python, so you would need python to run it.</div><div><br></div><div>Assuming your client uses Windows and you don't have admin privileges to install software, you could install official Python and gdal (from <a href="https://www.lfd.uci.edu/~gohlke/pythonlibs/">https://www.lfd.uci.edu/~gohlke/pythonlibs/</a>, which unfortunately is not maintained anymore) on another Windows machine and then just zip it and unzip on your clients' pc. </div><div><br></div><div>Another option is using OSGeo4W (or QGIS).</div><div>In the same way, you could also be able to install it, zip and unzip (I haven't tried this method recently)</div><div><br></div><div>You might still need to install on your clients' pc Visual Studio Redistributables (which I think both Python and QGIS installers install for you automatically).</div><div>I was successful with both methods, but I think that the first method is easier.</div><div><br></div><div>Maybe also <a href="https://pyinstaller.org/en/stable/">https://pyinstaller.org/en/stable/</a> could help if you needed to pack gdal_calc more like a "stand alone app", but I think that wasn't your issue.</div><div><br></div><div>Kind regards,</div><div>Idan</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 6 Jan 2023 at 21:34, Carsten Lockenkötter <<a href="mailto:carsten.lockenkoetter@web.de">carsten.lockenkoetter@web.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg107719914629604806">
<div lang="DE" style="overflow-wrap: break-word;"><div class="m_107719914629604806WordSection1"><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I'm currently building a workflow to crop possible white or black borders from my Geotiff files and create raster tiles with an alpha band.<u></u><u></u></p><p class="MsoNormal">I'm using some Python functions provided by you, such as gdal_calc.py.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">My workflow works so far, but my problem is that I have to run everything on my customer's server. <u></u><u></u></p><p class="MsoNormal">Unfortunately, I don't have the ability to install software there, so I can't install Python and gdal_calc.py can't be run.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">So far, I've always downloaded the compiled binaries from <a href="http://gisinternals.com" target="_blank">gisinternals.com</a> and copied them to the server (the zip archive) to use gdalwarp, for example. <u></u><u></u></p><p class="MsoNormal">But with that, I can't run gdal_calc, right? Python is still needed for that, or am I mistaken?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Is there a way to use gdal_calc/gdal_retile without having to install software components? <u></u><u></u></p><p class="MsoNormal">If there are approaches to control the functions through a wrapper, that would also help me. <u></u><u></u></p><p class="MsoNormal">I have knowledge in C# and could use MaxRev.Gdal.Core, for example. However, I haven't found an approach yet to use gdal_calc. <u></u><u></u></p><p class="MsoNormal">I probably have to rewrite the Python script in C#?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Regards,<u></u><u></u></p><p class="MsoNormal">Carsten<u></u><u></u></p></div></div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></blockquote></div>