Skip to content
Permalink
Browse files

show pixel size in the raster layer properties with 19 significant

digits (fix #21023)

(cherry picked from commit 3c2a20a)
  • Loading branch information
alexbruy authored and nyalldawson committed Jan 29, 2019
1 parent b16dd5f commit c05c2c718ceab584b2707a2607767473effacc09
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/gdal/qgsgdalprovider.cpp
@@ -626,7 +626,7 @@ QString QgsGdalProvider::htmlMetadata()
myMetadata += QStringLiteral( "<tr><td class=\"highlight\">" ) + tr( "Origin" ) + QStringLiteral( "</td><td>" ) + QString::number( mGeoTransform[0] ) + QStringLiteral( "," ) + QString::number( mGeoTransform[3] ) + QStringLiteral( "</td></tr>\n" );

// Pixel size
myMetadata += QStringLiteral( "<tr><td class=\"highlight\">" ) + tr( "Pixel Size" ) + QStringLiteral( "</td><td>" ) + QString::number( mGeoTransform[1] ) + QStringLiteral( "," ) + QString::number( mGeoTransform[5] ) + QStringLiteral( "</td></tr>\n" );
myMetadata += QStringLiteral( "<tr><td class=\"highlight\">" ) + tr( "Pixel Size" ) + QStringLiteral( "</td><td>" ) + QString::number( mGeoTransform[1], 'g', 19 ) + QStringLiteral( "," ) + QString::number( mGeoTransform[5], 'g', 19 ) + QStringLiteral( "</td></tr>\n" );
}

return myMetadata;

0 comments on commit c05c2c7

Please sign in to comment.
You can’t perform that action at this time.