492 Commits

Author SHA1 Message Date
Nyall Dawson
04d5862bad @brief -> \brief 2017-04-03 13:18:35 +10:00
Nyall Dawson
dfb5f56f80 @see -> \see 2017-04-03 13:18:35 +10:00
Nyall Dawson
e47073b1e1 \return -> \returns (for consistency) 2017-04-03 13:18:35 +10:00
Nyall Dawson
e4daf8ea62 @return(s) -> \return(s) 2017-04-03 13:18:13 +10:00
Nyall Dawson
11dcfd935c @param -> \param 2017-04-03 13:17:27 +10:00
Nyall Dawson
0326f7142d Change doxygen @note to \note 2017-04-03 13:16:03 +10:00
Matthias Kuhn
fb91ed7395 Use "\since" instead of "@note added in" 2017-04-03 01:06:33 +02:00
Nyall Dawson
32326ab5df Replace "python" with "Python" in docs 2017-04-03 08:33:56 +10:00
Nyall Dawson
636e9c5ea3 [FEATURE] Add geometry snapper modes to only snap end points of lines
Allows snapping of end points only, or end point to end point only

Also update processing algorithm to match
2017-03-30 15:52:49 +10:00
Nyall Dawson
ece3991dbe [FEATURE] New class QgsInternalGeometrySnapper
Used for snapping geometries within a set of features to other
features from that same set.

Just like QgsGeometrySnapper, except that where QgsGeometrySnapper
requires a separate reference layer to snap to
QgsInternalGeometrySnapper snaps *within* a single layer. E.g.
allows you to close gaps within that layer.
2017-03-30 13:54:05 +10:00
Nyall Dawson
68437a1032 More Qt5 style connects 2017-03-27 08:08:58 +10:00
Larry Shaffer
f5d0ba1aa9 Ensure on macOS generated export header gets copied to frameworks
It *should* get copied with PUBLIC_HEADER property of target, but CMake
quirk causes it to be skipped if not part of original sources for the
target, which can’t happen because the target needs to exist first to
make the export header. This only fixes ‘qgis’ frameworks.

[ci skip]
2017-03-08 16:53:58 -07:00
Denis Rouzaud
2e7de50b42 run astyle on src/* 2017-03-03 09:09:37 +01:00
Matthias Kuhn
c0a8ee51e1 Do not re-lookup already present CRSes 2017-02-24 09:15:22 +01:00
Denis Rouzaud
7812d4fb17 remove the-prefix from source code
this might result in variables having the same name as some methods
2017-02-21 18:14:58 +01:00
Nyall Dawson
7daa4b591e Fix a bunch of suggestions from clang-tidy
And add a new CLANG_TIDY_EXE cmake option. If this is set to the
path to the clang_tidy executable then a bunch of clang-tidy
checks will be run during compilation.
2017-02-21 08:49:29 +10:00
Nyall Dawson
d19e70700f Ensure all pointer variables are initialized to nullptr 2017-02-18 20:23:18 +10:00
Nyall Dawson
9ceb6c67e8 Merge pull request #4109 from nyalldawson/db
Rename "Db"/"DB" in API to "Database"
2017-02-12 08:34:19 +10:00
Nyall Dawson
c400326aad Fix memory leak in geometry snapper 2017-02-08 07:16:40 +10:00
Nyall Dawson
3ed6f5b72a Replace deprecated qSort/qStableSort/qGreater/qLess with std:: algs 2017-02-07 12:47:00 +10:00
Nyall Dawson
d47d31d13c Rename "Db"/"DB" in API to "Database"
Motivations:
- consistency - we generally use expanded names, and this also
matches Qt API which uses Database instead of Db
- avoids unpredictable capitalization throughout API (mix of "Db"
and "DB")
2017-02-07 09:32:05 +10:00
Nyall Dawson
7619cba438 Fix/avoid Coverity null pointer dereference warnings 2017-02-03 09:28:02 +10:00
Nyall Dawson
f84508a35d Fix Coverity uninitialized member warnings 2017-02-03 07:11:12 +10:00
Alexander Bruy
95091d9342 Merge pull request #4062 from alexbruy/raster-provider
Use native QGIS raster API instead of GDAL API in zonal statistics
2017-02-02 10:54:03 +02:00
Nyall Dawson
49aae6e908 Rename QgsGeometry::isEmpty to isNull
Differentiates missing geometries from empty geometries (eg
empty geometry collections)
2017-01-30 21:58:23 +10:00
Alexander Bruy
278913b7ce use QgsRasterBlock instead of GDAL in zonal statistics (addresses #8736)
This should make zonal statistics usable rasters which come from
other providers, e.g. WCS.
2017-01-28 11:12:12 +02:00
Alexander Bruy
9378d20fe0 fix generation of unique field names 2017-01-27 15:19:56 +02:00
Juergen E. Fischer
6a56cb0dd0 updates and fixes for windows qt5/py3 build 2017-01-24 01:25:59 +01: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
Denis Rouzaud
0a63d1f2c2 [spellcheck] properly look into various cases and add more fixes" 2017-01-16 16:39:20 +01:00
Nyall Dawson
b5480633e4 Standardise names for static variables
All non-const variables are prefixed with "s", all const
statics are ALL_CAPS
2017-01-14 16:40:24 +10: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
Denis Rouzaud
6c74e4ea5d spelling fixes 2017-01-12 22:01:50 +01:00
Nyall Dawson
b7706b358f Rename some static variables for consistency
Ensure non-const statics have "s" prefix and const statics
are in all caps
2017-01-12 15:17:47 +10:00
Denis Rouzaud
4467487e1c respect CamelCase for enums and their values 2017-01-11 14:10:11 +01:00
Denis Rouzaud
748be8de71 [spelling] replace behaviour by behavior 2017-01-11 11:35:19 +01:00
Nyall Dawson
21ad4ed78b Merge pull request #3940 from nyalldawson/gdal2
Bump minimum GDAL version to 2.0, remove old version #ifdefs
2017-01-10 11:37:17 +10:00
Nyall Dawson
4b8c5bea29 Remove some more macros not needed with GDAL>=2 requirement 2017-01-09 19:39:00 +10:00
Juergen E. Fischer
7b17751f71 another header installation fix 2017-01-05 17:54:36 +01:00
Matthias Kuhn
d88e7cae2e Fix install for generated export headers 2017-01-05 17:10:32 +01:00
Matthias Kuhn
d006784ded Add qgis_analysis.h with ANALYSIS_EXPORT macro 2017-01-05 00:12:11 +01:00
Matthias Kuhn
0302719cf0 Add qgis_core.h to with CORE_EXPORT macro
This removes complexity from the compiler flags because defines
happen in a file.
2017-01-05 00:12:11 +01:00
Nyall Dawson
b0bc763475 Bump minimum GDAL version to 2.0, remove old version #ifdefs 2017-01-03 15:10:28 +10:00
Nyall Dawson
a05096d59a Add missing docs 2017-01-02 10:57:46 +10:00
Nyall Dawson
6579c4ced6 Use c++11 '= delete' instead of private copy declarations
Switches the use of private copy constructors/copy assignment
operators to instead use public "=delete" declarations.
This results in clearer compile-time errors if these deleted
functions are used, vs obscure link-time errors.
2017-01-02 09:06:43 +10:00
Nyall Dawson
850171cbb5 Optimise destructors (pt 1)
- Remove some non-base class empty destructors. These add no value
and it's better to let the compiler auto generate optimised versions
- use virtual ~Class = default instead of virtual ~Class {}
2016-12-30 13:52:57 +10:00
Nyall Dawson
9021bb479c Remove "//! Destructor" doxygen comments
This documentation doesn't add any value
2016-12-30 13:52:57 +10:00
Nyall Dawson
8a3c1efefe Merge pull request #3840 from DelazJ/selectedfeaturesids
Replace selectedFeaturesIds by selectedFeatureIds
2016-12-07 21:44:24 +10:00
Nyall Dawson
20f1f76f2e [heatmap] Avoid gdal warnings, calculate distance from pixel centroid 2016-12-07 12:23:58 +10:00
Harrissou Sant-anna
f9578bf60b Replace selectedFeaturesIds by selectedFeatureIds 2016-12-07 00:19:11 +01:00