219 Commits

Author SHA1 Message Date
Alessandro Pasotti
6ecf16e69f [opencl] Fix doxy comment 2018-08-08 13:26:04 +02:00
Alessandro Pasotti
4af52f221c [opencl] Update CMakeList and sipify 2018-08-08 11:18:05 +02:00
Alessandro Pasotti
44adfe53df [opencl] Final rebase before merge 2018-08-08 10:08:14 +02:00
Alessandro Pasotti
e79f6d1a1c Fix documentation for ninecell filters 2018-08-08 09:40:02 +02:00
Alessandro Pasotti
8689c401a2 [opencl] Fix small OpenCL alg issues
From comparison tests with CPU results

+ some minor speed improvements
2018-08-08 09:39:40 +02:00
Alessandro Pasotti
be21ea8e5a Bindings for 9cell filter 2018-08-08 09:38:43 +02:00
Alessandro Pasotti
583c7ae287 More updates for opencl 2018-08-08 09:29:33 +02:00
Alessandro Pasotti
dc4b1da0a4 [opencl] Fix small OpenCL alg issues
From comparison tests with CPU results

+ some minor speed improvements
2018-08-08 09:24:40 +02:00
Alessandro Pasotti
c4eebc72a7 Bindings for 9cell filter 2018-08-08 09:22:14 +02:00
Alessandro Pasotti
9068fe46d8 More updates for opencl 2018-08-08 09:18:32 +02:00
Nyall Dawson
6bf7c0eb92 Better constructor, dox 2018-06-08 10:13:13 +10:00
Nyall Dawson
e9bf7f17c7 Add thread safe method of constructing QgsZonalStatistics,
using a QgsRasterInterface instead of a QgsRasterLayer
2018-06-08 10:13:13 +10:00
Nyall Dawson
2ed144ac59 Apply clang-tidy readability-avoid-const-params-in-decls fixit
Checks whether a function declaration has parameters that are
top level const.

const values in declarations do not affect the signature of a
function, so they should not be put there.
2018-06-05 10:19:13 +10:00
Denis Rouzaud
e5b02cd2a8 use dedicated files for auto additions 2018-06-03 11:07:09 -08:00
Nyall Dawson
4c3a9ef7be Ensure that class \brief comes before \since (#7081)
Otherwise it breaks the Python docstrings, which require
the brief to come first
2018-05-28 04:03:46 -08:00
Nyall Dawson
f8bc97030b Remove extra space added before first line of docstring 2018-05-28 08:22:11 +10:00
Nyall Dawson
ea0c1d8cbc Typo 2018-05-28 08:22:11 +10:00
Nyall Dawson
0e75f6ef85 Don't indent multiline versionadded/deprecated tags
Turns out there isn't any valid ones anyway - the only
multiline versionadded tags are due to incorrect ordering
of brief/since tags (which is fixed in a different PR)
2018-05-27 18:54:09 +10:00
Nyall Dawson
9f650fead9 Fix incorrect param docstring when doxygen \param has extra
trailing spaces or uses tabs
2018-05-27 18:54:09 +10:00
Nyall Dawson
3b5ada15f7 Move class since annotation to after brief
Lots of classes do this, but it messes with the python docstrings.

TODO: add a unit test preventing this behavior
2018-05-27 18:54:09 +10:00
Nyall Dawson
38850bdb94 [pyqgis] Ensure that multiline param tags are indented for additional lines 2018-05-27 18:54:09 +10:00
Nyall Dawson
c864d22d1f Add "get ..." to doxygen compliance blacklist
Should be "gets ..." for consistent tense, or better yet
"returns ..." for consistency.
2018-05-27 14:05:06 +10:00
Nyall Dawson
1c615c15cc More documentation compliance
Use Qt style "returns .." tense instead of "return ..", and lock
this in with a documentation compliance unit test
2018-05-25 15:09:00 +10:00
Denis Rouzaud
fca72fa7d1 put back module sip files 2018-05-14 11:02:28 -04:00
Denis Rouzaud
8b130f1c14 move auto generated sip file in dedicated folder (server+analysis) 2018-05-14 10:41:52 -04:00
Nyall Dawson
ccb72ebce2 [processing] Fixes for Service Area algorithms
- Output interpolated points when travel cost falls mid-way along
an edge
- Output all intermediate reachable points also
- Make outputting upper/lower bound points optional, and non-default.
Now by default we just output all definitely reachable points and
the interpolated points along edges which correspond to the travel cost.
This allows the output to be used to correctly generate service areas
e.g. by concave/convex polygons and all reachable nodes will be
included in the area.
- Allow algorithm to optionally output a line layer (and make the
point layer optional too, and default to just the line layer output)
containing all reachable line segments (including interpolated
segments of lines when the travel cost sits midway along that
edge). This output is more easily understandably for users.
2018-04-06 12:43:52 +10:00
luz.paz
b82ec177c9 Misc. source comment typos
+ added 2 strings in to spelling.dat file
2018-03-12 14:32:17 +11:00
Nyall Dawson
540d692c56 Fix leak in network analysis director 2018-03-11 20:20:50 +11:00
Nyall Dawson
2d1e9188f1 [processing] Allow providers to return a different helpId() vs
their unique id()

This is used when generating the QgsHelp url for algorithms
attached to the providers.

Implement helpId overrides for the native and 3d providers so
that they return 'qgis' helpIds, meaning that all QGIS processing
algorithm documentation can be kept within the same url path
regardless of which QGIS provider library it sits within.

This also allows us to freely move algorithms from the Python
'qgis' provider to c++ 'native' provider in future releases
without breaking the help URLs.

Fixes #17231
2018-02-09 11:26:03 +10:00
Denis Rouzaud
0304708130 fix .gitignore to add missing sip files 2018-01-17 10:16:37 -04:00
Denis Rouzaud
7722010ca8 rename *.sip to *.sip.in for the auto generated sip files 2018-01-17 10:16:37 -04:00
Denis Rouzaud
880d853e9f
detect SIP version to add DefaultDocstringSignature directive (#6030)
* detect SIP version to add DefaultDocstringSignature directive

SIP doesn't handle any kind of preprocessing, so there's no better solution than configuring the SIP files from CMake.
SIP 4.19.7+ supports %DefaultDocstringSignature to prepend auto-generated Python signature to existing Docstrings
2018-01-10 10:32:21 -04:00
Denis Rouzaud
d87c60512c [sipify] fix bad handling of \see within sentences
and other docstrings improvements
2018-01-09 21:40:10 -04:00
Denis Rouzaud
5babec5e07 run sipify 2018-01-09 11:40:39 -04:00
Denis Rouzaud
90e5196996 run sipify 2017-12-19 14:55:46 -04:00
Denis Rouzaud
b630a407b5 missing SIP_OUT 2017-12-17 08:55:10 -04:00
Denis Rouzaud
c604d2dda6 run sipify 2017-12-15 22:13:44 -04:00
Nyall Dawson
8802482778 Remove redundant overridden default destructor implementations 2017-12-16 08:50:55 +10:00
Nyall Dawson
4da1ce8404 Drop redundant virtual keywords on overrides
Run clang-tidy modernize-use-override to remove all the redundant
virtual keywords from overridden methods, and add some missing
overrides.

Another benefit is that this has also added the overrides
on destructors, which will cause a build failure if a base
class is missing a virtual destructor.
2017-12-16 08:49:36 +10:00
Denis Rouzaud
f2b3ed0a9b run sipify 2017-12-15 11:12:19 -04:00
Denis Rouzaud
e48cf98edb run sipify 2017-12-06 07:19:50 -04:00
Nyall Dawson
928afdd8c5 Fix geometry snapper sometimes creates unwanted overlapping segments
when snapping line layers

Because the default behavior of the snapper is to insert extra
vertices into the snapped geometry in order to make it 'follow'
the reference geometries exactly, this can result in unwanted
results for line layers where the resultant snapped layer
has overlapping line segments.

Since we can't always know what the desired result is that the
user wants (maybe they do want overlapping lines), instead
give them control over the result by exposing extra enum
options which never insert extra vertices.
2017-12-03 07:10:42 +10:00
Nyall Dawson
fe78611cf5 Simplify interpolation API
Don't require both pixel size and row/col count in constructor,
since we can calculate the pixel size from the extent and row/column
count.
2017-11-03 14:00:07 +10:00
Nyall Dawson
b36dd121d3 Fix build 2017-11-03 11:02:27 +10:00
Nyall Dawson
8631472089 QgsTINInterpolator->QgsTinInterpolator 2017-11-03 10:49:33 +10:00
Nyall Dawson
e94733f22c Remove redundant interpolation classes 2017-11-03 10:45:36 +10:00
Nyall Dawson
e91ee5b71c More flexible API for interpolation
E.g. adds API support for interpolating by m value
2017-11-03 09:18:45 +10:00
Nyall Dawson
f200d9c89a Cleanup interpolation code 2017-11-03 07:42:32 +10:00
Nyall Dawson
8a68a410bf Simplify overly complex code 2017-10-31 16:00:19 +10:00
Nyall Dawson
ab05fe7603 Fix extremely confusing network graph API naming
Since names of api calls were backwards to expectations
2017-10-31 16:00:19 +10:00