45 Commits

Author SHA1 Message Date
Nyall Dawson
7455c2f912 More gdal scoped pointer types 2017-10-26 08:12:11 +10:00
Denis Rouzaud
6e14854f90 [sipify] remove redundant private sections 2017-10-09 09:51:40 +02:00
Nyall Dawson
49b426d951 Make doxygen_space script convert multiline //! comments
Because:
- the /** format is much more prevalent throughout QGIS
- sipify works correctly with /**
2017-10-06 07:55:52 +10:00
Nyall Dawson
92af1dacaf Replace default constructors/destructors with = default 2017-10-01 06:52:14 +10:00
Nyall Dawson
eb7ad7aebe Swap final uses of QProgressDialog in analysis lib to QgsFeedback 2017-08-29 21:46:35 +10:00
Nyall Dawson
be48f17e2c Use a QgsFeedback object in QgsRelief instead of QProgressDialog 2017-08-19 00:09:12 +10:00
Nyall Dawson
d9e29b9742 Use QgsFeatureSource instead of QgsVectorLayer for QgsKde
Allows generation of heatmaps from feature sources instead
of requiring vector layer inputs
2017-07-13 20:07:33 +10:00
Nyall Dawson
144d733b12 Use a QgsFeedback instead of QProgressBar for QgsNineCellFilter
Gives progress reports and allows cancelation of processing
aspect algorithm
2017-06-29 08:03:57 +10:00
Denis Rouzaud
2bf92f34f3 sipify analysis raster 2017-06-21 12:08:25 +02:00
Nyall Dawson
b2ba450d46 Fix build warning 2017-05-30 08:48:38 +10:00
Denis Rouzaud
88a6d2ba2f include gdal_version and add private constructor 2017-05-29 13:50:37 +02:00
Etienne Trimaille
9b46d9dd00 sipify 2017-05-29 13:50:37 +02:00
Denis Rouzaud
7d459149c7 [sip] align missing bits and replace nullptr by 0 2017-05-02 08:09:53 +02:00
Denis Rouzaud
7b60d89d6c align pointer and reference in sip files batch 2 2017-05-01 20:00:51 +02:00
Denis Rouzaud
b119744773 replace cancelling, cancelled and cancellation by canceling, canceled and cancelation, respectively (#4000)
* replace cancelling and cancelled by canceling and canceled, respectively

see https://github.com/qgis/qgis3_UIX_discussion/issues/19

* replace cancellation by cancelation
2017-01-16 22:27:14 +01:00
Nyall Dawson
231f6af0e1 Don't return const references to implicitly shared Qt classes
Instead return the inexpensive copies. Should provide extra safety
against issues like #14822

(refs #14822)
2017-01-14 15:53:45 +10:00
Nyall Dawson
f2127464d3 Move heatmap generation code to analysis lib
And clean it up a lot
2016-12-07 08:26:55 +10:00
Nyall Dawson
02ea2d7703 Fix typos 2016-11-08 09:05:47 +10:00
Denis Rouzaud
7fdade1a3a remove some deprecated methods, rename QgsAnnotation::mapPositionFixed() to hasFixedMapPosition() 2016-08-23 15:00:56 +02:00
Nyall Dawson
4cfacf14e3 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"
2016-07-21 08:40:50 +10:00
Nyall Dawson
6545746fc6 [FEATURE] Add extra resampling methods to align raster tool which are
available in GDAL >= 2.0 (max, min, median, q1 and q3)
2016-03-31 16:45:16 +11:00
Nyall Dawson
c3a57434d9 Fix clazy 'pass small and trivially-copyable type by value' warnings 2016-02-02 19:47:21 +11:00
Nyall Dawson
a665b7d72e Don't crash when using raster calculator with huge raster (refs #13336)
Now we abort and advise the user if insufficient memory is available
to perform the calculation.

At some future stage it would be nice to perform the calculations
in blocks to allow this scenario, but for now it's better not to
crash.
2016-01-27 10:48:12 +11:00
Nyall Dawson
24d9c65494 Fix more classes which violate the rule-of-three
Also remove some empty destructors
2016-01-26 14:24:45 +11:00
Nyall Dawson
752f6bd150 Fix classes which violate rule of three, by implementing required
copy/= operators or making them private

This revealed (and fixes) some issues, including a potential crash
using server access control (refs #13919), and a potential crash with
diagrams
2016-01-22 18:45:45 +11:00
Nyall Dawson
881074b194 Boost coverage of SIP bindings
Now all classes and members are either exposed to bindings or marked
as "not available in Python bindings" in the docs.

Drop test thresholds to 0. Now it should be much easier to determine
what missing members have been added which are causing test
failures.
2016-01-05 11:16:15 +11:00
Nyall Dawson
719ff408a5 Add some missing SIP bindings, comment some classes as not available
in Python
2015-11-10 17:08:27 +11:00
Juergen E. Fischer
9752c468c1 indentation update 2015-07-29 11:52:14 +02:00
Juergen E. Fischer
b165875fa6 spelling fixes 2015-07-26 14:39:30 +02:00
Juergen E. Fischer
79d37c1a8b fix windows build (followup 8f2a3ae) 2015-06-30 17:30:25 +02:00
Martin Dobias
11d1ac9540 Try to do automatic choice of the reference layer in GUI (using smallest cell area) 2015-06-29 10:25:47 +08:00
Martin Dobias
fcc0160755 Fix type of CRS WKT (use just QString instead of both QString and QByteArray) 2015-06-29 10:25:47 +08:00
Martin Dobias
06b4ad8512 Allow for custom setting of cell size / grid offset in GUI 2015-06-29 10:25:47 +08:00
Martin Dobias
3d290ef21a Align rasters: configuration of clip extent, reporting of output size 2015-06-29 10:25:47 +08:00
Martin Dobias
b452bc0245 Support reprojection in GUI, added unit tests for reprojection 2015-06-29 10:25:47 +08:00
Martin Dobias
d7a9493445 Add error messages, fix reporting of grid offset 2015-06-29 10:25:46 +08:00
Martin Dobias
515de2879b Added progress reporting 2015-06-29 10:25:46 +08:00
Martin Dobias
d6d2f1a374 Add python bindings for QgsAlignRaster 2015-06-29 10:25:46 +08:00
Nyall Dawson
559d7bb943 [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
in QGIS raster code like handling gain/offset in rasters. (fix #12450)

Also, add a choice of output projection to the raster calculator.
Previously the output CRS would be taken from the first raster, with
no guarantees that the output extent matched the output CRS. This
resulted in empty/misplaced rasters. (fix #3649)
2015-06-10 21:45:37 +10:00
Nyall Dawson
e1f7d330c2 [rastercalc] More robust handling of nodata in calculations
Also allow creation of QgsRasterCalcNodes which directly reference
a QgsRasterMatrix for testing.
2015-06-10 21:45:37 +10:00
Nyall Dawson
f42f640d30 [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
2015-06-10 21:45:37 +10:00
Juergen E. Fischer
0ccc07af0e raster calculator fixes (fixes #12238)
* GDALGetGeoTransform failures can be ignored (partly reverts 0080f9e)
* handle quoted raster references
* don't complain if the output file is not yet set
2015-02-23 21:48:04 +01:00
Juergen E. Fischer
45c0be1059 sip: remove enum constants 2014-06-02 21:52:02 +02:00
Juergen E. Fischer
74e7314c36 update sip bindings II 2014-01-27 09:22:53 +01:00
Juergen E. Fischer
f3cb57b1eb SIP bindings update:
- update methods of existing classes
- add comment to methods missing in the sip bindings
- split up collective sip files into single files and use
  same directory structure in python/ as in src/
- add a lot of missing classes (some might not make sense because of
  missing python methods in those classes)
- remove some non-existing methods from the header files
- add scripts/sipdiff
- replace some usages of std::vector and std::set with QVector/QSet
2012-09-24 02:42:57 +02:00