[Qgis-developer] Centos Raster Anomalies

Hillers Heather Heather.Hillers at erftverband.de
Fri Jul 12 00:54:39 PDT 2013




Hello,

I have built qgis 1.8 final release from source  on Centos6.  When I run make check, I get failures in qgis_rasterlayertest and qgis_rendererstest.  These failures are the result of raster anomalies that do not match the expected raster anomalies stored in testdata.  The raster anomalies  are in many cases similar too (but a bit worse than) the expected windows anomalies.  The anomalies are as follows:

Continuous_result_diff.png
Graduated_result_diff.png
Landsat_875_result_diff.png
Landsat_basic_result_diff.png
Raster_pseudo_result_diff.png
Raster_result_diff.png
Single_result_diff.png
Uniquevalue_result_diff.png

I added these raster anomalies to tests/testdata/control_images/[test case], and that did eliminate the unittest failures as a result of anomalies not matching any expected anomalies.  However, my unittests still fail after the anomaly match as a result of bandStatistics

QDEBUG : TestQgsRasterLayer::landsatBasic875Qml() Expected size: 120w x 120h
QDEBUG : TestQgsRasterLayer::landsatBasic875Qml() Actual   size: 120w x 120h
QDEBUG : TestQgsRasterLayer::landsatBasic875Qml() 9482/14400 pixels mismatched
QDEBUG : TestQgsRasterLayer::landsatBasic875Qml() "<DartMeasurement name="Mismatch Count " type="numeric/integer">9482/14400</DartMeasurement>"
QDEBUG : TestQgsRasterLayer::landsatBasic875Qml() "<DartMeasurement name="Anomoly check" type="text/text">Checking if anomaly centos_landsat875_anomaly.png (hash fd5a62c1938dbadc2652e22c587c81e5) matches /tmp//landsat_875_result_diff.png (hash fd5a62c1938dbadc2652e22c587c81e5)</DartMeasurement>"
PASS   : TestQgsRasterLayer::landsatBasic875Qml()
PASS   : TestQgsRasterLayer::checkDimensions()
FAIL!  : TestQgsRasterLayer::checkStats() 'mpRasterLayer->bandStatistics( 1 ).mean == 4.5' returned FALSE. ()
   Loc: [/pse/edv/hil/src/qgis/18release/qgis-1.8.0/tests/src/core/testqgsrasterlayer.cpp(177)]

When I ran qgis_rasterlayertest through gdb,  this mean value was found to be 4.

Qgis is linking yum installed libpng 1.2.49.


1.       Are the anomalies a feature of the system, and just need to be added to testdata, or are they manifestations of a bug?

2.       What can I do about the bandStatistics error? Is this going to cause bad behavior in qgis, or is only going to effect image quality?

3.       Might this be coming from a library dependency?


Thanks,

MonsterMushroom


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130712/fd19db83/attachment.html>


More information about the Qgis-developer mailing list