History | View | Annotate | Download (27.4 KB)
Replace QgsDebugMsg(...) with QgsDebugError(...) and ensure itis ONLY used for error message reporting
Everything else gets bumped to QgsDebugMsg(..., >= 2)
[Raster] Add a Qgis::DataType::Int8 signed data type
Pass some values to initialization list
Fix missing stats after raster calc output
Fixes #42835
Also on raster calc:
- fix unreported issue with nodata float opencl- papercut: set progress dialog window title
Add support for postgresraster based rasters in Raster Calculator (#43440)
Remove redundant qgis::as_const implementation, move to c++17 std::as_const
Replace qgis::make_unique with std::make_unique
Now that we require c++14 features, we don't need to use the custombackported version anymore...
Run qstring fixup
Raster calc nodata value
Fixes #39926
QStringLiteral -> QLatin1String changes generated by scripts/qstringfixup.sh --all
Cleanup QgsCoordinateReferenceSystem WKT enum
- alias WKT_2018* to new WKT_2019* values, since the spec is actually2019, not 2018- add WKT_PREFERRED value which currently aliases to WKT2_2019, butcan be changed if/when future bumps to the WKT spec happen...
Small optimization, and nodata fill in GPU path
to be consistent to what happens in the CPU path
Prefer WKT2 when exporting CRS for use by GDAL
Don't report success when a calculation error occurred
Avoid qt containing detachment, remove some auto use
Avoid altering std::map while iterating over it (potentially unsafe)
And avoid some double-lookups
Fix raster calc OpenCL < operator
Fixes #32477
also:- catch build exceptions- remove parenthesis after casting numbers- add cast to raster ref (for fabs overload)
with tests
spelling fixes (closes #32408)
Fix multiple raster calc issues
Fixes #32023 Raster calculator change sign does not work when OpenCL is onFixes #32025 QGIS Raster Calculator outputs nodata only rasters
Bonus: three new operators with full test coverage- ABS- MIN- MAX
Use QgsMapLayer::providerType() instead of dataProvider()->name(),as it's more robust in handling invalid layers
Improved fix
Do not assume we can randomly access std::vector elements without pushing them
Fix #30232
Fix various clazy warnings
Get transformContext from layer instead of provider
Pass transform context to raster calculator
Raster transform context
Fix raster calculator with multiband rasters
Fixes #21151
Pick up all layer entries references from the project context
This is the processing side of the duplicate layernames bug, while the core part was already fixed,the processing logic was extended to handle inputsfrom models and full-path references.
Fixes #20601
opencl rastercalc fix int input rasters and cast to float
Cast to float all math operations because when theinput is not a float or a double opencl raisesan error regarding which override should pick.
By casting to float we are sure that the rightfunction will be called....
Move nodeCalc unique ptr to the GPU function
... and spare some CPU cycles
Remove duplicated code
The input check was already done before enteringin the GPU branch
Fix build warnings
[opencl] Raster calculator goes opencl
Coding style and SIP_DEPRECATED
Return a vector instead of a list and deprecate rasterEntries
Do not add duplicates in raster calc layers list
Related to #20601
Fix build warning
Remove debug code and improve comments
Scanline implementation
QStringLiteral
Add more descriptive error messages for raster calculation failure
With unit tests
Raster: do not list RasterLite2 as a supported output format, and use a helper for every call site (fixes #19483)
Modernize code
[raster calculator] use feedback when reprojecting raster block
[raster calculator] don't crash if output file has illegal size, e.g. 0x0
Safer GDAL delete and close of datasets, which doesn't leakand works on Windows
Seehttps://github.com/qgis/QGIS/commit/d024910490a39e65e671f2055c5b6543e06c7042#commitcomment-25194282
More gdal scoped pointer types
Replace default constructors/destructors with = default
Run clang-tidy modernize-use-default-member-init to move memberinitialization to headers (c++11 style)
Swap final uses of QProgressDialog in analysis lib to QgsFeedback
run astyle on src/*
Ensure all pointer variables are initialized to nullptr
replace cancelling, cancelled and cancellation by canceling, canceled and cancelation, respectively (#4000)
see https://github.com/qgis/qgis3_UIX_discussion/issues/19
Remove some more macros not needed with GDAL>=2 requirement
Bump minimum GDAL version to 2.0, remove old version #ifdefs
Make API more consistent
- rename methods with XML to Xml, CRS to Crs, WMS to Wms, ID to Id- rename methods with SRS to Crs- rename methods with abbreviations like "dest" to "destination" - rename methods with abbreviations like "src" to "source"
Rework includes to forward declare as much as possible
Should speed up recompilation when headers change
Add some debug output when GDALRasterIO operations fail
Or the compiler will complain about unhandled returns
Fix memory leak
Don't crash when using raster calculator with huge raster (refs #13336)
Now we abort and advise the user if insufficient memory is availableto perform the calculation.
At some future stage it would be nice to perform the calculationsin blocks to allow this scenario, but for now it's better not to...
Fix more classes which violate the rule-of-three
Also remove some empty destructors
more nullptr updates (folloup 320c696)
Followup 320c696 use clang-modernize to replace 0/NULL use with nullptr
Fix leaks in raster calculator
[rastercalc] Fix use of uninitialized variable
Revert "sort includes"
This reverts commit 2b7d3d3c73b50ba6dc74abec6dd652ff1b87c0ec.
sort includes
[rastercalc] Remove some redundant private methods
[rastercalc] Rework raster calculator to use QGIS raster classes
...rather than reading input layers directly through GDAL.Benefits include more robust handling of nodata/data type conversions,less code duplication, also being able to take advantage of features...
[rastercalc] Switch all internal calculations to doubles
...for more accurate calculations (fix #9081)
Also:- Add test suite for raster calculator- Fix errors with log/log10 calculation and inputs <= 0- Fix loss of nodata values in certain circumstances
Coverity fixes - unchecked return value
raster calculator: allow unquoted raster references (fixes #11682)
Coverity fixes
Including a notable bug causing "mean" to be missing from mergeattributes dialog options.
raster calculator: exit on error (fix #5075)
fix build (follows 0e7b60e)
make filename encoding consistent (gdal/ogr)
renamed doubleNear to qgsDoubleNear, QgsMalloc to qgsMalloc, QgsCalloc to qgsCalloc, QgsFree to qgsFree
Rastercalculator: fix for reading out of source raster bounds
fix gcc 4.6 warnings
git-svn-id: http://svn.osgeo.org/qgis/trunk@15857 c8812cc2-4d05-0410-92ff-de0c093fc19c
Use epsg number for output crs in rastercalculator if possible (ticket #3649)
git-svn-id: http://svn.osgeo.org/qgis/trunk@15815 c8812cc2-4d05-0410-92ff-de0c093fc19c
Write projection info to raster calculator output
git-svn-id: http://svn.osgeo.org/qgis/trunk@15581 c8812cc2-4d05-0410-92ff-de0c093fc19c
add support for UTF8 in GDAL/OGR 1.8 (fixes #2551)
git-svn-id: http://svn.osgeo.org/qgis/trunk@15148 c8812cc2-4d05-0410-92ff-de0c093fc19c
Use GDALAutoCreateWarpedVRT to handle south-up (or rotated) rasters also for calculator. Fixes bug #3281
git-svn-id: http://svn.osgeo.org/qgis/trunk@14842 c8812cc2-4d05-0410-92ff-de0c093fc19c
fix vc warnings
git-svn-id: http://svn.osgeo.org/qgis/trunk@14508 c8812cc2-4d05-0410-92ff-de0c093fc19c
Fix consideration of nodata values in raster calculator, code cleanups
git-svn-id: http://svn.osgeo.org/qgis/trunk@14503 c8812cc2-4d05-0410-92ff-de0c093fc19c
fix nightly build
git-svn-id: http://svn.osgeo.org/qgis/trunk@14445 c8812cc2-4d05-0410-92ff-de0c093fc19c
[FEATURE]: Add rastercalculator
git-svn-id: http://svn.osgeo.org/qgis/trunk@14442 c8812cc2-4d05-0410-92ff-de0c093fc19c