14 Commits

Author SHA1 Message Date
Even Rouault
86f6e7eb0d Merge pull request #3142 from rouault/identify_result_float_precision
Do not print excessive decimals when identifying value on a Float32 raster
2016-05-30 17:46:08 +02:00
Even Rouault
f3b635dcbb [GDAL provider] Ignore nodata value that are not representable in the data type.
This is related to commit e0d38ba3f912b7ae6b34e66a44e529ec37394458. In case
we have to deal with an inconsitent raster where the nodata value is set to
a value not representable in the data type, ignore it. Otherwise, a NaN value
in a Byte raster would be cast as 0.
2016-05-29 12:55:23 +02:00
Even Rouault
147a68c0a0 Do not print excessive decimals when identifying value on a Float32 raster
Was reported in https://lists.osgeo.org/pipermail/qgis-user/2016-April/036045.html
2016-05-29 12:43:20 +02:00
Even Rouault
e0d38ba3f9 QgsRasterFileWriter::writeDataRaster(): do not set nodata on output when unneeded
Currently if the source raster has no nodata value, the writer will still write
nan as the output nodata value, ignoring the flag that specifies if there is a
nodata value or not. On a raster with byte data type, this will cause
confusion on reading since the nodata value will be somehow cast as 0.

Make QgsRasterChecker check for nodata consistency between source and target, and
add a test file that shows the issue.
2016-05-28 10:52:36 +02:00
Juergen E. Fischer
15539f34ce more Quantum GIS => QGIS updates 2013-05-30 16:19:19 +02:00
Tim Sutton
2fbe172dd1 Created test to replicate issue #7023 2013-01-22 11:07:50 +02:00
Juergen E. Fischer
54e50e7803 remove raster metadata from test data to make tests run without changing git tracked files 2012-12-25 19:29:00 +01:00
Radim Blazek
76115ec886 Raster statistics and histogram moved from QgsRasterDataProvider to QgsRasterInterface 2012-12-17 18:29:08 +01:00
Radim Blazek
5a6401c983 VSI/CPLMalloc/Free replaced by QgsMalloc/Free where feasible 2012-10-16 11:10:43 +02:00
Tim Sutton
9b0fee38de Added asWktPolygon method to QgsRectangle with a unit test. Discovered QgsRectangle tests were missing their main method causing them to not run. Then discovered that some of these tests fail, one of which remains unresolved. 2012-09-10 16:04:22 +02:00
Radim Blazek
9286429baa - QgsRenderChecker moved to core + Python bindings
- raster transparency python test
2012-09-04 20:31:59 +02:00
Radim Blazek
5a5928e37a WCS test server instructions 2012-07-19 12:47:57 +02:00
Radim Blazek
09bd0f639d better wcs mapfile mimetypes 2012-07-19 09:40:43 +02:00
Radim Blazek
d1e7242255 wcs test unit data 2012-07-18 19:29:11 +02:00