[gdal-dev] The proper way to call gdal "scripts" on Windows?
jratike80
jukka.rahkonen at maanmittauslaitos.fi
Thu Feb 25 05:12:06 PST 2021
Hi,
OSGeo4W creates .bat file for each Python script. As an example
gdal_calc.bat:
@echo off
call "%OSGEO4W_ROOT%\bin\o4w_env.bat"
python "%OSGEO4W_ROOT%\bin\gdal_calc.py" %*
o4w_env.bat launches a bunch of other .bat files. Have a look and be
astonished! One of those sets Python:
SET PYTHONHOME=%OSGEO4W_ROOT%\apps\Python27
PATH %OSGEO4W_ROOT%\apps\Python27\Scripts;%PATH%
-Jukka Rahkonen-
Idan Miara wrote
> Richard - I'm not sure which batch files you were referring to, which gdal
> distribution created gdal_calc.bat files for you?
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
More information about the gdal-dev
mailing list