<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Even,</p>
<p>Thank you for your feedback. Then it is probably better to compile it with the latest 2.x GDAL then.</p>
<p>The background here is that QGIS 2.18 server is still faster (better performance) than 3.x. For this reason we'd like to continue to use 2.18 until the performance problems are addressed in 3.x. We'll share our benchmark results soon with the QGIS (Server) devs to better find out where QGIS-Server 3 looses time and try to address the issues.</p>
<p>Thanks,</p>
<p>Andreas</p>
<p id="reply-intro">On 2020-10-09 17:51, Even Rouault wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<style type="text/css">#replybody1 p, #replybody1 li { white-space: pre-wrap; }</style>
<div style="font-family: 'monospace'; font-size: 9pt; font-weight: 400; font-style: normal;">
<p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">Andreas,</p>
<p style="-qt-paragraph-type: empty; -qt-block-indent: 0; text-indent: 0px; margin: 0px;"> </p>
<p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">> Can QGIS 2.18 be built against GDAL 3.x?</p>
<p style="-qt-paragraph-type: empty; -qt-block-indent: 0; text-indent: 0px; margin: 0px;"> </p>
<p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">Hum, I guess it would build, although definitely not a vetted combination. I wouldn't expect datum transformations to work very well, since QGIS would be dependent on towgs84 coming in PROJ.4 strings, and GDAL 3 / PROJ >= 6 will not populate that often now.</p>
<p style="-qt-paragraph-type: empty; -qt-block-indent: 0; text-indent: 0px; margin: 0px;"> </p>
<p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">You might have to add</p>
<p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H</p>
<p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">in CMAKE_CXX_FLAGS to get QGIS to build against PROJ >= 6</p>
<p style="-qt-paragraph-type: empty; -qt-block-indent: 0; text-indent: 0px; margin: 0px;"> </p>
<p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">You should check also which PROJ version your spatialite lib is linking to.</p>
<p style="-qt-paragraph-type: empty; -qt-block-indent: 0; text-indent: 0px; margin: 0px;"> </p>
<p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">You might instead to choose the 'internal PROJ' trick (https://trac.osgeo.org/gdal/wiki/BuildingOnUnixGDAL25dev) to have only GDAL built against PROJ >= 6 and have the rest of the stack (spatialite, QGIS) still using PROJ 5</p>
<p style="-qt-paragraph-type: empty; -qt-block-indent: 0; text-indent: 0px; margin: 0px;"> </p>
<p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">Even</p>
<p style="-qt-paragraph-type: empty; -qt-block-indent: 0; text-indent: 0px; margin: 0px;"> </p>
<p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">--</p>
<p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">Spatialys - Geospatial professional services</p>
<p style="-qt-block-indent: 0; text-indent: 0px; -qt-user-state: 0; margin: 0px;">http://www.spatialys.com</p>
</div>
</div>
</blockquote>
<p><br /></p>
</body></html>