190 Commits

Author SHA1 Message Date
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
Nyall Dawson
7455c2f912 More gdal scoped pointer types 2017-10-26 08:12:11 +10:00
Nyall Dawson
e92e20e613 Move native c++ processing algorithms from core library to analysis
And split into separate files for each algorithm
2017-10-16 20:10:37 +11:00
Martin Dobias
ca0aa72bf1 [needs-docs] Remove OpenStreetMap integration in analysis lib + app
- unmaintained and barely working anymore
- clunky GUI
- not supporting .pbf
- there are other python plugins doing the same thing better
- nobody is using it anymore

https://lists.osgeo.org/pipermail/qgis-developer/2017-October/050103.html
2017-10-13 09:39:47 +02: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
01d34ede9d Sip sync 2017-09-25 17:12:03 +10:00
Nyall Dawson
9b04589ce7 More missing docs 2017-09-11 21:55:20 +10:00
Nyall Dawson
ea09aa92a3 Remove QgsTransectSample
Because:
- it's unused in master, and is more code to maintain
just for possible use by plugins
- it's unmaintained, and has had no work done (beside compilation
fixes) in the recent past
- there's no unit tests or detailed documentation to show
how the class should be used
2017-09-04 09:05:38 +10:00
Nyall Dawson
e6203847d3 Update sip include 2017-08-29 21:46:35 +10:00
Nyall Dawson
9ca57bd62c Use a QgsFeatureSink instead of path to shapefile in QgsTinInterpolator
Instead of just forcing writing the triangulation to a shapefile (boo!)
change the parameter to use a QgsFeatureSink, so that anything
which implements the QgsFeatureSink interface can be used for
storing the triangulation.
2017-08-29 21:46:35 +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
04fec09c3e Remove interpolation internal classes from stable API
These classes still need a lot of cleanup (e.g. use of proper
3d geometry classes instead of their own 3d line classes, etc)
and we don't want them locked into the 3.0 API.

Better to remove them from the API and reintroduce them after
they have been cleaned up (in >3.0). They are mostly implementation
details anyway, and unlikely to be used outside of the high
level interpolation classes.
2017-08-29 21:46:35 +10:00
Nyall Dawson
9e962054fe Exclude MathUtils from sip bindings
We don't want these part of stable API - this namespace really shouldn't
exist, as it mostly contains code which is duplicated in other
parts of the API (with better maintained and tested versions).
2017-08-29 21:46:35 +10:00
Nyall Dawson
94987918ef Rename .cc files to .cpp for consistency 2017-08-29 21:46:35 +10:00
Nyall Dawson
090bb9bba4 Use QgsFeedback instead of QProgressDialog in tin interpolator 2017-08-19 05:05:40 +10:00
Nyall Dawson
356588abf0 Use QgsFeedback in QgsGridFileWriter instead of QProgressDialog 2017-08-19 04:08:04 +10:00
Nyall Dawson
be48f17e2c Use a QgsFeedback object in QgsRelief instead of QProgressDialog 2017-08-19 00:09:12 +10:00
Nyall Dawson
0227bdc376 Remove QgsGeometryAnalyzer, QgsOverlayAnalyzer, QgsPointSample
These classes are unused in the master QGIS code, and are
unmaintained and with no unit tests or other QA, and
have inflexible API (e.g. always requiring writing outputs
to shapefiles)

They all have equivalent algorithms available via Processing
(where the algorithms are unit tested and maintained). We should
be pushing all QGIS api users to use the Processing algorithms
instead.
2017-08-11 04:48:11 +10:00
Alexander Bruy
09bb55a895 initialize QgsFeedback with nullptr by default 2017-07-16 17:02:20 +03:00
Alexander Bruy
f3d42a2cda [network analysis] use QgsFeedback for progress reporting and
cancelation
2017-07-16 14:36:04 +03:00
Alexander Bruy
126a27425a [network analysis] use QgsFeatureSource instead of QgsVectorLayer in
QgsVectorLayerDirector
2017-07-16 14:31:52 +03: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
Matthias Kuhn
875a5d6d9d Merge pull request #4818 from DelazJ/spelling
Fix some spelling issues
2017-07-08 10:20:40 +02:00
Nyall Dawson
3601138d2a Use a feature source instead of vector layer for QgsGeometrySnapper 2017-07-07 09:28:19 +10:00
Harrissou Sant-anna
6fab688298 Use SpatiaLite right spelling when needed 2017-07-07 01:26:38 +02:00
Harrissou Sant-anna
59e9f79658 ok is spelled OK 2017-07-03 08:49:50 +02:00
nirvn
58f6f93cb6 [zonal statistics] add variance statistic 2017-06-29 11:53:04 +07: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