<div dir="ltr"><div>Hi all,</div><div><br></div><div>I'm at a loss trying to understand the relationship between PROJ8, GDAL, and how to use TIFF national grids PROJ8 data comes with. So far my findings are the following.<br></div><div><br></div><div>PROJ8 is installed and cs2cs uses the grid to transform, performing an extremely accurate shift.</div><div><br></div><div>GDAL, compiled on the above PROJ8, when running:<br></div><div><br></div><div>gdaltransform -s_srs epsg:23030 -t_srs epsg:25830</div><div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr">
<p>yields less accurate results, hinting the grid is not being used. However:</p><p>gdaltransform -s_srs "+proj=utm +zone=30 +ellps=intl +units=m +no_defs +nadgrids=/usr/local/share/proj/es_ign_SPED2ETV2.tif" -t_srs "+proj=utm +zone=30 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"</p><p>explicitly detailing the use of the grid, nails it. It would be great, however, to get these results using the -s_srs epsg:XXXX syntax.<br></p><p>So I would like if anyone can help me in carrying out these options:<br></p><p>- can PROJ be used directly in GDAL using the CRS definitions in it? My hope is that GDAL, somehow, uses PROJ definitions and uses the grid without any further config;</p><p>- if the above is not possible and/or makes no sense, how can I tweak the SRS PROJ or WKT definitions in GDAL to use the grid?</p><p>Any light you can shed on this will be mostly welcome. Thanks in advance.<br></p><p>---<br></p><p><span>Juan Pedro Pérez Alcántara</span></p>
<p><span><a href="mailto:jp.perez.alcantara@gmail.com" target="_blank">jp.perez.alcantara@gmail.com</a></span></p></div></div></div></div></div></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">
<p><br></p><p>---<br></p><p><span>Juan Pedro Pérez Alcántara</span></p>
<p><span><a href="mailto:jp.perez.alcantara@gmail.com" target="_blank">jp.perez.alcantara@gmail.com</a></span></p></div></div></div></div></div></div>