Getting Setup With GDAL Manually: Difference between revisions

Content deleted Content added
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 17:
<ol>
<li> Unzip the downloaded file into a location of your choice. For the examples below, it will be assumed that they were unzipped to "<tt>C:\GDAL</tt>".
<li> Navigate to the following directory in the unzipped directory "<tt>bin\gdal\apps<\/tt>". Following our chosen directory from step 1 this is "<tt>C:\GDAL\bin\apps</tt>".
<li> Copy all the files in the "app" directory into the "bin" directory ("<tt>C:\GDAL\bin</tt>")
<li> Create a new folder called "share" underneath the main directory, above the "bin" folder ("<tt>C:\GDAL\share</tt>")
<li> Create a new folder called "proj" underneath the new "share" folder ("<tt>C:\GDAL\share\proj</tt>")
<li> Copy all the files from the "<tt>bin\proj7\share</tt>" ("<tt>C:\GDAL\bin\proj7\share</tt>") into the newly created "share" folder
</ol>
 
===Running the Programs===
The GDAL programs can now be used. Use the ".exe" programs that were copied into "<tt>C:\GDAL\bin</tt>" and not located in the original "apps" folder. For example the following batch file will use "gdal_translate.exe":<Br>
<pre>
set gdal_translate="C:\GDAL\bin\gdal_translate.exe"
%gdal_translate% <conversion_commands>
</pre>
However if you receive errors similar to "<tt>PROJ: proj_create_from_database: Cannot find proj.db</tt>" you should add this environment variable to the top of the batch file ('''Note:''' do not use quotes "" in path):<Br>
<pre>
set PROJ_LIB=C:\GDAL\proj7\share
set gdal_translate="C:\GDAL\bin\gdal_translate.exe"
%gdal_translate% <conversion_commands>
</pre>
<br>
{{Tips Navigation
|uplink=[[GDAL_Tips_and_Tricks#Getting_Started| Back to GDAL Tips and Tricks]]
}}