Skip to content
Permalink
Browse files

show pixel size in the raster layer properties with 19 significant

digits (fix #21023)
  • Loading branch information
alexbruy authored and nyalldawson committed Jan 25, 2019
1 parent febbc4f commit 3c2a20a9484cbe3f1117a692757e552e88e6195c
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 3c2a20a

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