<div dir="ltr">Elena,<div><br></div><div>If your environment variables are set exactly as you write:</div><div><br></div><div>> PROJ_LIB= “D:\MDT\V9\bin\gdal\gdal_latest\share” </div><div>> PROJ_DATA= “D:\MDT\V9\bin\gdal\gdal_latest\share”</div><div><br></div><div>you should leave out the apostrophes and the extra space after the equals sign, i.e.</div><div><br></div><div><div>set PROJ_LIB=D:\MDT\V9\bin\gdal\gdal_latest\share</div><div>set PROJ_DATA=D:\MDT\V9\bin\gdal\gdal_latest\share</div><div><br></div></div><div>The PROJ documentation on the subject is over at <a href="https://proj.org/usage/environmentvars.html">https://proj.org/usage/environmentvars.html</a></div><div><br></div><div>/Thomas</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den tors. 30. mar. 2023 kl. 14.01 skrev Elena Ruiz <<a href="mailto:eruiz@aplitop.com">eruiz@aplitop.com</a>>:<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="msg-8487273083177347096">
<div lang="ES" style="overflow-wrap: break-word;">
<div class="m_-8487273083177347096WordSection1">
<p class="MsoNormal">Hello, <u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">I am using GDAL 3.6.2 on Windows 11 and am having problems with the following error:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">ERROR 1: PROJ: proj_create_from_database: Cannot find proj.db<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">I have set as environment variable PROJ_LIB= “D:\MDT\V9\bin\gdal\gdal_latest\share” and PROJ_DATA= “D:\MDT\V9\bin\gdal\gdal_latest\share”, as user variable and in the system variable, but it still doesn't work and the
file proj.db exits in D:\MDT\V9\bin\gdal\gdal_latest\share .<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">D:\MDT\V9\bin\gdal\gdal_latest\x64>gdalwarp -s_srs EPSG:4326 -t_srs EPSG:25831 -r near -of GTiff C:\Users\elena\Downloads\D37531385_0101_DTM.asc C:/Users/elena/Downloads/D37531385_0101_DTM_25831_qgis_.tif<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">ERROR 1: PROJ: proj_create_from_database: Cannot find proj.db<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">ERROR 1: Translating source or target SRS failed:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">EPSG:4326<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">The funny thing is that I have the same version of GDAL installed on my computer using Anaconda3, to do tests, and from the anaconda directory it works for me, and if I look in the environment variables I don't see any
path that refers to where Anaconda has the Proj.db. Is there another way to set the PROJ_LIB path besides adding an environment variable? Is there any way to know where the PROJ_LIB is looking for my version of GDAL?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal">C:\Users\elena\Anaconda3\envs\mygdal\Library\bin>gdalwarp -s_srs EPSG:4326 -t_srs EPSG:25831 -r near -of GTiff C:\Users\elena\Downloads\D37531385_0101_DTM.asc C:/Users/elena/Downloads/D37531385_0101_DTM_25831_qgis_.tif<u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">Creating output file that is 1003P x 1201L.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Processing C:\Users\elena\Downloads\D37531385_0101_DTM.asc [1/1] : 0Using internal nodata values (e.g. -9999) for image C:\Users\elena\Downloads\D37531385_0101_DTM.asc.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Copying nodata values from source C:\Users\elena\Downloads\D37531385_0101_DTM.asc to destination C:/Users/elena/Downloads/D37531385_0101_DTM_25831_qgis_.tif.<u></u><u></u></span></p>
<p class="MsoNormal">...10...20...30...40...50...60...70...80...90...100 - done.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thank you and regards<u></u><u></u></p>
</div>
<hr>
<table style="height:50px;width:473px">
<tbody>
<tr>
<td>
<p style="font-size:10pt;font-family:Arial" align="right"><img border="0" src="https://www.aplitop.com/descargas/firma1.jpg"></p></td>
<td style="font-size:12pt;height:25px;font-family:"Times New Roman";width:330px" valign="top">
<div style="line-height:13px" align="left"><span style="font-size:9pt;font-family:"Myriad Pro","Open Sans",Arial"><strong>Elena Ruiz </strong></span><br><span style="font-size:7pt;font-family:"Myriad Pro","Open Sans",Arial">Sofware Development & Technical Support<br></span><span style="font-size:7pt;font-family:"Myriad Pro","Open Sans",Arial">Tel.
+34 952 43 97 71 <br><a href="mailto:eruiz@aplitop.com" target="_blank">eruiz@aplitop.com</a><br>Sumatra, 9 - 29190 Málaga (Spain)<br></span><span style="font-size:7pt;font-family:"Myriad Pro","Open Sans",Arial"><strong><a href="http://www.aplitop.com" target="_blank">www.aplitop.com</a><br><br><a href="https://www.facebook.com/AplitopSL/" target="_blank"><img style="height: 15px; width: 15px;" border="0" src="cid:187339dc12846ea9a501" width="15" height="15"></a> <a href="https://twitter.com/aplitop" target="_blank"><img style="height: 15px; width: 15px;" border="0" src="cid:187339dc12897f04d0a2" width="15" height="15"></a> <a href="https://www.linkedin.com/company/aplitop" target="_blank"><img style="height: 15px; width: 15px;" border="0" src="cid:187339dc129dbe1ae413" width="15" height="15"></a> <a href="https://www.youtube.com/user/aplitop" target="_blank"><img style="height: 15px; width: 15px;" border="0" src="cid:187339dc129ca49fca84" width="15" height="15"></a></strong></span></div></td></tr></tbody></table>
<p style="font-size:10pt;font-family:Arial"><span style="font-size:6pt;font-family:"Myriad Pro"">In accordance with the
provisions of the European Regulation of Data Protection 2016/679 (Reglamento
Europeo de Protección de Datos 2016/679), we inform you that the data and the
information you provide us through this medium will be used by APLITOP, S.L.,
with C.I.F. B-92543396 and with address at C / Sumatra, 9, Malaga, 29190, in
order to answer your questions and inform you about our products. The data
provided will be kept as long as it does not request its cessation and will not
be transferred to third parties except in cases where there is a legal
obligation. You have the right to access your personal data, correct inaccurate
data or request its deletion when the data is no longer necessary for the
purposes that were collected, as well as any rights recognized in the RGPD
2016/679<br></span><a href="https://www.aplitop.com/New/en/443/publication-of-point-clouds-on-web" title="" target="_blank"></a><span style="font-size:6pt;font-family:"Myriad Pro""><br></span></p><p style="font-size:10pt;font-family:Arial"><span style="font-size:6pt;font-family:"Myriad Pro""><br></span><a href="https://www.aplitop.com/New/en/438/tcpmdt-v9-is-here" title="" target="_blank"></a><a href="https://www.aplitop.com/Event/en/429/aplitop-at-intergeo-2022-essen" title="" target="_blank"></a><span style="font-size:6pt;font-family:"Myriad Pro""><br><br><a title="" href="https://www.aplitop.com/Event/en/358/intergeo-2019" target="_blank"></a><br><br></span></p>
</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>