mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
Merge pull request #60674 from nyalldawson/gdal-release-name
Show GDAL release nickname in about screen
This commit is contained in:
commit
a96ea4a104
@ -15,7 +15,6 @@
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsCoordinateReferenceSystem
|
||||
{
|
||||
%Docstring(signature="appended")
|
||||
|
@ -15,7 +15,6 @@
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsCoordinateReferenceSystem
|
||||
{
|
||||
%Docstring(signature="appended")
|
||||
|
@ -5505,11 +5505,21 @@ QString QgisApp::getVersionString()
|
||||
// GDAL version
|
||||
const QString gdalVersionCompiled { GDAL_RELEASE_NAME };
|
||||
const QString gdalVersionRunning { GDALVersionInfo( "RELEASE_NAME" ) };
|
||||
versionString += QStringLiteral( "<td>%1</td><td>%2" ).arg( tr( "GDAL/OGR version" ), gdalVersionCompiled );
|
||||
#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION( 3, 11, 0 )
|
||||
const QString gdalReleaseNickName { GDAL_RELEASE_NICKNAME };
|
||||
#else
|
||||
const QString gdalReleaseNickName;
|
||||
#endif
|
||||
|
||||
versionString += QStringLiteral( "<td>%1</td><td>%2" ).arg( tr( "GDAL version" ), gdalVersionCompiled );
|
||||
if ( gdalVersionCompiled != gdalVersionRunning )
|
||||
{
|
||||
versionString += QStringLiteral( " (%1)<br/>%2 (%3)" ).arg( compLabel, gdalVersionRunning, runLabel );
|
||||
}
|
||||
if ( !gdalReleaseNickName.isEmpty() )
|
||||
{
|
||||
versionString += QStringLiteral( " — <i>%1</i>" ).arg( gdalReleaseNickName );
|
||||
}
|
||||
versionString += QLatin1String( "</td></tr><tr>" );
|
||||
|
||||
// proj
|
||||
|
@ -55,12 +55,6 @@ typedef struct pj_ctx PJ_CONTEXT;
|
||||
// forward declaration for sqlite3
|
||||
typedef struct sqlite3 sqlite3 SIP_SKIP;
|
||||
|
||||
#ifdef DEBUG
|
||||
typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH SIP_SKIP;
|
||||
#else
|
||||
typedef void *OGRSpatialReferenceH SIP_SKIP;
|
||||
#endif
|
||||
|
||||
class QgsCoordinateReferenceSystem;
|
||||
typedef void ( *CUSTOM_CRS_VALIDATION )( QgsCoordinateReferenceSystem & ) SIP_SKIP;
|
||||
|
||||
|
@ -35,12 +35,6 @@
|
||||
#include "qgsprojutils.h"
|
||||
#include "qgsreadwritelocker.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
|
||||
#else
|
||||
typedef void *OGRSpatialReferenceH;
|
||||
#endif
|
||||
|
||||
class QgsCoordinateReferenceSystemPrivate : public QSharedData
|
||||
{
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user