-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- QgsRenderChecker moved to core + Python bindings
- raster transparency python test
- Loading branch information
Showing
13 changed files
with
150 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
/** Render checker for tests in python */ | ||
|
||
class QgsRenderChecker | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsrenderchecker.h> | ||
%End | ||
public: | ||
|
||
QgsRenderChecker(); | ||
|
||
~QgsRenderChecker(); | ||
|
||
QString controlImagePath() const; | ||
|
||
QString report(); | ||
|
||
float matchPercent(); | ||
|
||
unsigned int mismatchCount(); | ||
|
||
unsigned int matchTarget(); | ||
|
||
int elapsedTime(); | ||
|
||
void setControlName( const QString theName ); | ||
|
||
void setControlPathPrefix( const QString theName ); | ||
|
||
QString imageToHash( QString theImageFile ); | ||
|
||
void setRenderedImage( QString theImageFileName ); | ||
|
||
void setMapRenderer( QgsMapRenderer * thepMapRenderer ); | ||
|
||
bool runTest( QString theTestName, unsigned int theMismatchCount = 0 ); | ||
|
||
bool compareImages( QString theTestName, unsigned int theMismatchCount = 0, QString theRenderedImageFile = "" ); | ||
|
||
bool isKnownAnomaly( QString theDiffImageFile ); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/testdata/raster/band1_float32_noct_epsg4326.tif.aux.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters