46811 Commits

Author SHA1 Message Date
Nyall Dawson
e3bbc35bed [processing] Fix incorrect error string in field mapper algorithm 2018-04-04 05:27:32 +10:00
Nyall Dawson
d5617b8025 [processing] Allow QgsVectorLayerSelectedFeatureSource to
create expression context scopes

Allows algorithms which require the underlying layer scope
to operate correctly when running in selected features only
mode.

Fixes #17170
2018-04-04 05:27:32 +10:00
Nyall Dawson
8326510e0e [processing] If an exception occurs while processing a feature
in a feature-based algorithm, don't try to continue processing
remaining features

Avoids multiple error dialogs appearing for every feature
in a layer...
2018-04-04 05:27:32 +10:00
Nyall Dawson
f4445a0493 [processing] Always log python exceptions to logger
Because Python code cannot catch and rethrow c++ exceptions
without losing context, we end up getting unknown exceptions
caught by c++ from python code (phew!).

So if we catch a python exception from processing, throw it
into the log so at least there's the full debugging detail
available on the console.

(Not ideal. Would love to see a PR allowing the full error
message to be passed correctly between c++/python/back again)
2018-04-04 05:27:32 +10:00
Nyall Dawson
615cb6ca71 [needs-docs] In merge features dialog, if a layer has default
values/default value clauses present, then use these as the
initial value for the merged feature

Otherwise the dialog defaulted to skipping these attributes
or taking a value from an existing feature, which meant
that it could violate constraints on the backend.

Users can still easily overwrite these values if desired.

Fixes #18397
2018-04-04 05:27:12 +10:00
Nyall Dawson
001796dd09 Fix merge attribute dialog picks wrong field values when fields are hidden 2018-04-04 05:27:12 +10:00
Nyall Dawson
adf5d793c7 In merge attributes dialog, don't show editor widgets in table
This was originally done to allow the table to show mapped values
such as value maps/relations. But it creates the false impression
that these values are editable, since the editor widgets are
not read only.

Instead, use the field formatter to create a value representation
string and make the body of the table read-only instead.
2018-04-04 05:27:12 +10:00
Alessandro Pasotti
1ff91ceb83
Merge pull request #6690 from elpaso/fix-android-build
Fix android build with osgeo4a
2018-04-03 17:19:29 +02:00
rldhont
24737be1b8 [BUGFIX][Server] Enhance cleaning propertyname and searching by propertyname 2018-04-03 17:18:04 +02:00
Alessandro Pasotti
e702bd4a11 Keep native nodiscard 2018-04-03 14:41:12 +02:00
Juergen E. Fischer
e7d587f423 restore ico/tif/png nuked by fcacb0db7c 2018-04-03 12:24:21 +02:00
Nyall Dawson
08d30c3b9f [processing] Add method for algorithms to preprocess parameter values
Allows algorithms to pre-processes a set of parameters, allowing the
algorithm to clean their values.

This method is automatically called after users enter parameters, e.g.
via the algorithm dialog. This method should NOT be called manually
by algorithms.
2018-04-03 18:36:39 +10:00
nirvn
a93daf1437 [processing] Throw exception when combining clip geometry fails in clip alg 2018-04-03 15:32:08 +07:00
Nyall Dawson
b18aaae014 Fix Coverity null pointer dereference warning 2018-04-03 16:35:32 +10:00
Nyall Dawson
b22b62f177 Fix Coverity null pointer dereference warning 2018-04-03 16:35:32 +10:00
Nyall Dawson
cd39885cd8 Remove unimplemented setData method from QgsReportSectionModel 2018-04-03 16:35:32 +10:00
Nyall Dawson
20c5e5415d Fix some clazy warnings 2018-04-03 16:35:32 +10:00
Nyall Dawson
d5d553f284 Fix Coverity unreachable code warning 2018-04-03 16:35:32 +10:00
Nyall Dawson
0099b6ec5f Fix Coverity unchecked return value warning 2018-04-03 16:35:32 +10:00
Nyall Dawson
a3605b5316 Fix Coverity null pointer dererence warning 2018-04-03 16:35:32 +10:00
Nyall Dawson
7b0cf28ecb Fix Coverity null-pointer dererence warnings 2018-04-03 16:35:32 +10:00
Nyall Dawson
c2af8ca4bc Fix some clazy warnings in tests 2018-04-03 16:35:32 +10:00
Nyall Dawson
e2d75d5516 Fix Coverity large argument passed by value warning 2018-04-03 16:35:32 +10:00
Nyall Dawson
eb39579837 Fix some Coverity use-after-free warnings 2018-04-03 16:35:32 +10:00
Nyall Dawson
cf905c9f32 Fix some Coverity uninitialized member warnings 2018-04-03 16:35:32 +10:00
Nyall Dawson
2b04c813ba Fix some Coverity null pointer dereference warnings 2018-04-03 16:35:32 +10:00
Nyall Dawson
09241ea195 Fix coverity warnings in unit tests 2018-04-03 16:35:32 +10:00
Nyall Dawson
d164f8ff98 [processing] Disable cancel button for GDAL algorithms
The provider doesn't support cancelation
2018-04-03 13:40:48 +10:00
Nyall Dawson
fdace2690e Another try at fixing Doxygen warnings 2018-04-03 11:21:35 +10:00
Nyall Dawson
497fa4f04e Fix crash when opening layout manager dialog 2018-04-03 10:39:12 +10:00
Nyall Dawson
e1db9d4898 Fix doxygen warnings 2018-04-03 10:26:46 +10:00
Nyall Dawson
3eeb1b54e7 Spelling 2018-04-03 10:11:27 +10:00
Nyall Dawson
cd052d3ba3 Fix incorrect calculation of raster layer units per pixel x/y 2018-04-03 09:50:16 +10:00
Nyall Dawson
1bf1058210 Followup fcacb0d, fix doxygen tests
Also:
- move doxygen comments to header files so that they get included
in Python docstrings
- remove duplicate doxygen implemented in both header and footer
- remove some redundant doxygen for overridden methods
- add some missing docs
2018-04-03 09:49:00 +10:00
Juergen E. Fischer
fcacb0db7c doxygen fixes 2018-04-02 22:48:40 +02:00
Salvatore Larosa
ca4bfb148d
Merge pull request #6704 from slarosa/filter_values_qb
[FEATURE][needs-docs] add filter line edit to query builder
2018-04-02 22:11:30 +02:00
Rashad Kanavath
3408e02c46 [processing] create and manage label in WidgetWrapper
ModelerParametersDialog and ParametersPanel have to keep list of
wrappers only. widget and label( if needed) are created through
WidgetWrapper.createLabel()
2018-04-03 06:09:44 +10:00
Salvatore Larosa
1e5fe12d8c show search icon in expression builder widget 2018-04-02 22:10:22 +02:00
Juergen E. Fischer
a04d5533c4 fix translation string 2018-04-02 17:51:02 +02:00
Juergen E. Fischer
7d48179223 [FEATURE] add zoom to related feature in forms 2018-04-02 17:07:39 +02:00
Juergen E. Fischer
409679bc0b german translation fix 2018-04-02 17:07:39 +02:00
Denis Rouzaud
6250b216b1 fix Dockerfile path 2018-04-02 09:37:53 -04:00
Salvatore Larosa
5810236c19 show search icon in filter line edit 2018-04-02 10:07:40 +02:00
Nyall Dawson
a82bffcc72 String capitalization 2018-04-02 17:57:03 +10:00
Nyall Dawson
ad3f1781d7 [processing][needs-docs] Rename "Add Script from Template" to
"Create New Script from Template"
2018-04-02 17:57:03 +10:00
Nyall Dawson
e51863487a Add beginning of unit tests for QgsLayerTreeView 2018-04-02 14:02:15 +10:00
nirvn
d98af7a1e3 Mark project as dirty when changing CRS of layers 2018-04-02 10:20:49 +07:00
Harrissou Sant-anna
27527a55c4 Add ellipsis to buttons label 2018-04-02 13:18:39 +10:00
Harrissou Sant-anna
76bbadbcd5 Fix indentation 2018-04-02 13:18:39 +10:00
Harrissou Sant-anna
f723fb7209 Fix indentation 2018-04-02 13:18:39 +10:00