47561 Commits

Author SHA1 Message Date
Nyall Dawson
0f78277a59 Add SIP_THROW annotation
SIP uses the deprecated throw(...) annotation in order to determine
which exceptions may be thrown by c++ code. Without these, only
a generic unknown exception is throw, which is of limited value
to Python code (losing any valuable message and exception type).

So we add a new SIP_THROW macro, which can be added to method's
declaration:

    bool doSomething() SIP_THROW( QgsCsException );

This is ignored outside of sipify, so we don't actually use
the deprecated c++ throw annotations, but sipify picks it up
and adds the appropriate change to the sip definition for
the method:

   bool doSomething() throw( QgsCsException );

This means that calling the method from Python will raise
the QgsCsException instead of a generic exception.
2018-05-16 04:35:17 +10:00
Denis Rouzaud
cd34da8038
also install additions py files in their directory (#7000) 2018-05-15 05:02:08 -08:00
Alexander Bruy
a68774494c
Merge pull request #6996 from alexbruy/processing-grass-formats
[processing] allow GRASS algorithms to save vectors in any GDAL-supported format
2018-05-15 15:00:22 +03:00
Nyall Dawson
0383a14825 [processing] Create Attribute Index can run on non-spatial layers 2018-05-15 20:21:08 +10:00
Alexander Bruy
67965ca3d0 [processing] use GPKG as default output format for GRASS 2018-05-15 13:15:00 +03:00
Alexander Bruy
98586461b9 [processing] add test for output to GPKG 2018-05-15 13:14:30 +03:00
Alexander Bruy
8aa56fc38f [processing] fix GRASS vector tests 2018-05-15 12:53:50 +03:00
nirvn
483b4ff977 remove processing ftools bitmap icons 2018-05-15 16:37:25 +07:00
nirvn
bc0f75334f [needs-docs][processing] vectorize & improve remaining vector menu icons 2018-05-15 16:37:25 +07:00
nirvn
9a82dbe197 [needs-docs][processing] vectorize and improve remaining data analysis menu icons 2018-05-15 16:37:25 +07:00
Blottiere Paul
97eceb164a
Merge pull request #6894 from pblottiere/bugfix_getcapa_version
[server] Keep default version in case of invalid VERSION parameter
2018-05-15 09:50:01 +01:00
Blottiere Paul
1956937793 Update getcapabilities document to fit 1.3.0 version 2018-05-15 09:07:22 +01:00
Blottiere Paul
6ea2cd63ba Add unit tests 2018-05-15 09:07:21 +01:00
Blottiere Paul
db4a2dda9f [server] Keep default version in case of invalid VERSION parameter 2018-05-15 09:07:21 +01:00
Alexander Bruy
cf599685cb [processing] vector outputs can be saved in any GDAL-supported format
Thanks to Médéric RIBREUX
2018-05-15 10:57:09 +03:00
Nyall Dawson
58e535103c Don't add GEOS warnings to message log
This dramatically slows down rendering, especially when labeling
is used. E.g. because labeling clips features, or because the
rendering simplification code results in invalid geometries -
this then fires multiple geos warnings when labeling
tests for geometry validity, etc. But these warnings are useless,
because the original geometry is valid and users cannot repair
them.... yet they slow things RIIIIIIGHHHT DOOOOWN.

Well behaved code, which requires access to geos errors,
should be using QgsGeometry::lastError instead.
2018-05-15 16:59:18 +10:00
nirvn
4d36f37004 [needs-docs][processing] rename export geom. columns to add geom. attributes 2018-05-15 12:10:11 +07:00
nirvn
5cb8c2523e [needs-docs][processing] vectorize and improve remaining geometry tools menu icons 2018-05-15 12:10:11 +07:00
Denis Rouzaud
395e864b68 fix prepare-commit after moving sip files 2018-05-14 20:56:53 -04:00
Denis Rouzaud
c5ee15a97c
Merge pull request #6987 from 3nids/pyqgis_additions
[pyqgis] move qgis.core tricks to their own python file in additions folder
2018-05-14 16:21:41 -08:00
Denis Rouzaud
261e5f74ec bring back PyQt.QtCore.NULL in qgis.core 2018-05-14 19:53:02 -04:00
Nyall Dawson
26174ea9ad Copy cached min/max value to provider test suite 2018-05-15 09:23:48 +10:00
Denis Rouzaud
831512c98f [pyqgis] fix py files in subdirectory not correctly installed 2018-05-14 18:01:09 -04:00
Denis Rouzaud
6e33bdcdc4 [pyqgis] move qgis.core tricks to their own python file in additions folder
this makes the code much easier to read
2018-05-14 18:00:39 -04:00
Luigi Pirelli
9b28e3d7f5 Port gdalcalc with formula excaping fix (#6984)
Resurrect gdalcalc algorithm from 2.x
2018-05-15 07:59:00 +10:00
Klavs Pihlkjær
49090a5554 [FEATURE][locator] Add search for settings pages to locator bar (#6625)
* [FEATURE][locator] Add search for settings pages to locator bar

Search Settings, Options, and Project Properties pages. Double clicking a search result will open the correct page and tab.

Short video: https://www.youtube.com/watch?v=duB2YekUmV0

The new filter presents itself with a prefix of "s" and with tr( "Settings" ) as displayname.

A settings locator filter is added to the built in locator filters (class QgsSettingsLocatorFilter is added to qgsinbuiltlocatorfilters.cpp). The wiring between the new filter and QgsApp has been implemented in:

For reading misc. pages:
* QgisApp::getProjectPropertiesPagesMap(),
* QgisApp::getSettingPagesMap(), and
* QgisApp::getOptionsPagesMap()

For navigating to selected page
* QgisApp::showProjectProperties( const QString &page ) and
* QgisApp::showSettings( const QString &page )

* Implement requested changes

* Implement required changes
2018-05-15 05:52:26 +10:00
Matthias Kuhn
3ea6432bb9
Merge pull request #6985 from pigreco/help_in_linea_field_calc
corrections function_help
2018-05-14 18:17:31 +02:00
Alexander Bruy
c985092a6d fix typo 2018-05-14 18:47:14 +03:00
Denis Rouzaud
307fbea14b
Merge pull request #6986 from 3nids/sip_files_oranize
Better orgnization of sip files
2018-05-14 07:43:44 -08:00
Denis Rouzaud
fca72fa7d1 put back module sip files 2018-05-14 11:02:28 -04:00
Denis Rouzaud
847f0e1829 adapt sipify scripts and test to place auto generated sip files in dedicated folder 2018-05-14 10:44:11 -04:00
Denis Rouzaud
8b130f1c14 move auto generated sip file in dedicated folder (server+analysis) 2018-05-14 10:41:52 -04:00
Denis Rouzaud
9ed1548494 move auto generated sip file in dedicated folder (gui) 2018-05-14 10:31:17 -04:00
Denis Rouzaud
7df2593caf move auto generated sip file in dedicated folder 2018-05-14 10:23:37 -04:00
Denis Rouzaud
45e5b3fb79 [pyqgis] comment some core additions 2018-05-14 10:21:07 -04:00
Salvatore
3660f3f63f corrections 2018-05-14 15:13:22 +02:00
arnaud.morvan@camptocamp.com
81dabd185c [processing] Finish default values in model for destination parameters 2018-05-14 22:12:32 +10:00
Nyall Dawson
c5f478c38f [processing] Fix destination resets to 'memory:' instead of temporary layer 2018-05-14 22:12:32 +10:00
Nyall Dawson
1a45a79719 [processing][model] Fix handling of mandatory checkbox in output definitions 2018-05-14 22:12:32 +10:00
arnaud.morvan@camptocamp.com
4ccd4446fe [processing] Add default values in model for destination parameters 2018-05-14 22:12:32 +10:00
Nyall Dawson
8d5e5c944d Add a newNameChanged signal to QgsNewNameDialog
Handy for subclasses.
2018-05-14 17:22:42 +10:00
Nyall Dawson
773e8633e2 Fix build warning 2018-05-14 16:53:46 +10:00
Nyall Dawson
6b742687ab [memory] Fix memory provider does not return correct min/max
values after adding or editing features

The cache was not cleared correctly in this case

Fix sponsored by LINZ
2018-05-14 15:43:22 +10:00
Mathieu Pellerin
8f47691a7a
[processing] add gdal command name to tags for better searches (#6978) 2018-05-14 11:32:55 +07:00
Denis Rouzaud
272f9ef874
Merge pull request #6951 from 3nids/locator_prefix
allow customizing prefix of locator filters
2018-05-13 17:56:22 -08:00
Harrissou Sant-anna
e0b86bef53 Remove the default output value shown in expression builder
Fixes #18808
2018-05-13 06:21:30 +10:00
Guilhem
42bedc4f72 Update qgsrasterfilewriter.cpp
Bad geo-referencing bug fix

Using VRT with large coordinate system (like RGF93/CCxx) and high
resolution raster, highest resolution tiles were shifted regardingi
original raster.
It seemed that when creating the VRT file, georeferencing is
truncated while converted to text, leading to loss of precision.
2018-05-12 06:20:29 +10:00
Denis Rouzaud
d36d4f8c65
fix warning for release build (#6976) 2018-05-11 07:41:10 -08:00
Juergen E. Fischer
c6bec0ce7c add link to 3.0 api documentation 2018-05-11 17:02:21 +02:00
Denis Rouzaud
395c13f1f1 fix typo 2018-05-11 10:55:34 -04:00