51628 Commits

Author SHA1 Message Date
Nyall Dawson
765dbf6ae7 Dox, tests 2018-10-19 08:32:56 +10:00
Nyall Dawson
67f1e10ea8 More unit test for QgsBrowserModel 2018-10-19 08:32:56 +10:00
Nyall Dawson
4d18eeecbe Fix incorrect hasChildren return value when QgsBrowserModel
has no root items
2018-10-19 08:32:56 +10:00
Alessandro Pasotti
71e2a6be7e In-place passthrough for invalid geometries if processing option is to skip invalid
Fixes #20147 - difference deletes invalid geometries
2018-10-18 17:43:00 +02:00
Alessandro Pasotti
51c3c2a618 Enable in-place buffer on polygons
Fixes #20101 - "Buffer" is not listed as an edit in place algorithm for polygon layer
2018-10-18 17:41:25 +02:00
Alessandro Pasotti
89058baeeb setInvalidGeometryCheck on the request 2018-10-18 17:40:56 +02:00
Alessandro Pasotti
5393df88ac Fixed documentation: FetchAttributes does not exist 2018-10-18 17:39:26 +02:00
Matthias Kuhn
6745eecd1d
Add tests for editing filtered gpkg layer 2018-10-18 17:01:39 +02:00
Martin Dobias
f437a7e02b Added docs 2018-10-18 16:56:27 +02:00
Martin Dobias
56bf486239 Make it possible to skip memory layer check on project close
In QGIS 3.4 there is the new feature that warns users about a potential data loss
when closing a project that contains memory layers. It displays the warning:

> This project includes one or more temporary scratch layers.
> These layers are not saved to disk and their contents will be
> permanently lost. Are you sure you want to proceed?"

While this is useful in general, there are various cases when this warning
is unwanted. For example, when a plugin creates memory layers by extracting data
from some custom data format (and possibly also writes changes from temporary
layers back to the data storage). In such situations the warning is very confusing
for the users who are unaware of the internals.

This commit adds a custom property "skipMemoryLayersCheck" to map layers,
so if all temporary layers have this property set to non-zero value the warning
will not show up.

layer.setCustomProperty("skipMemoryLayersCheck", 1)
2018-10-18 16:56:27 +02:00
signedav
97b827e97c indentation 2018-10-18 16:38:54 +02:00
signedav
c7c7204252 put extra default back 2018-10-18 15:37:31 +02:00
signedav
5bcff46ea5 use const and avoid copy 2018-10-18 15:12:29 +02:00
signedav
723df76fba display menu at the correct position 2018-10-18 14:54:53 +02:00
signedav
8839e2fc0c all features option in menu
means this can be controlled by the user

fixes #17853
2018-10-18 14:43:15 +02:00
signedav
b38e183793 start action for single feature directly 2018-10-18 14:37:33 +02:00
signedav
5bbb1c484b action only starting on one feature
with selection context menu (with wrong position)
2018-10-18 14:19:40 +02:00
Even Rouault
391ec8a5dd
[OGR provider] Revise significantly the way we handle subset filter to avoid issues with FID (fixes #20136)
Some rationale on this change...

Previously when applying a "regular" subset string, ie. one that is only the
content of a where clause, we issued a full "SELECT * FROM layer WHERE subsetstring",
resulting in a OGR SQL layer. The caveat of that is that most OGR drivers
will have issues retaining the original FID. A hack consisting in adding a
{original_fid_name} as orig_ogc_fid to the select columns was introduced in
4ce2cf1744
to try to retain the original FID, but this added a lot of complexity. And
actually, in the case of the OGR GPKG driver, it caused it to still be confused
when analyzing the column definition of the resulting layer, since it sees
2 FID columns despite the renaming (one included in the '*' wildcard, and the
one of orig_ogc_fid), which caused it to use sequential FID numbering (the
driver when seeing more than once a column that is the FID column assumes that
some cross join is done, and thus that FID are unreliable)

A simpler and more robust (crossing fingers!) approach in that case is
just to use OGR_L_SetAttributeFilter() instead of GDALDatasetExecuteSQL().
Some care must be taken to cancel the filter when removing the subset
filter, or in QgsOgrFeatureIterator when combining with the filter
expression coming from the request, but besides that, this is more
straightforward, and actually solves #20136
2018-10-18 12:28:02 +02:00
signedav
7026dfa329 json decoding of values
before comparing them with the python structs
2018-10-18 09:19:33 +02:00
signedav
d34fdf277d extended json type server tests
not working because of the \n in the response
2018-10-18 09:18:28 +02:00
signedav
4f55e9d8a2 server tests for json types in postgres 2018-10-18 09:18:28 +02:00
Alessandro Pasotti
4010e79fe3
Merge pull request #8200 from elpaso/bugfix-20094-followup-096b4ce
Slow field calculator - Bugfix 20094 followup 096b4ce
2018-10-18 08:39:03 +02:00
nirvn
009fcd8e7e fix build on cosmic (et cie) 2018-10-18 13:27:37 +07:00
Nyall Dawson
724102563d More descriptive error messages when arcgis rest calls fail 2018-10-18 05:31:17 +10:00
Borys Jurgiel
100a14ed32
Merge pull request #8214 from borysiasty/plugin_manager_fixes
Plugin manager minor fixes
2018-10-17 19:12:41 +02:00
Borys Jurgiel
57faed4c77 [Plugin Manager] Small cleanups: don't connect redundant signal, remove unused condition. 2018-10-17 12:13:56 +02:00
Alessandro Pasotti
7e9c8740a1 Take into account cache size when deciding to go for full update
... also prune some dead code
2018-10-17 11:58:18 +02:00
Borys Jurgiel
9254e49c07 [Plugin Manager] Fix empty initial tab when the window state is saved with the first option (All Plugins) selected. 2018-10-17 10:22:50 +02:00
Borys Jurgiel
b7673c7616 [Plugin Manager] Fix plugin status checkbox not refreshed after installing from zip 2018-10-16 23:06:13 +02:00
Nyall Dawson
a0d46d12c1 Remove unneeded forward declare 2018-10-17 06:19:06 +10:00
Nyall Dawson
4459c9a6f8 Dox 2018-10-17 06:19:06 +10:00
Nyall Dawson
8b5bf3c17c Remove some redundant dox from QgisAppInterface 2018-10-17 06:19:06 +10:00
Nyall Dawson
905031945f Expose application browser model instance to iface
Reusing the existing browser model is more efficient then reconstructing
new models, so it's useful for plugins to have access to this instance
too.
2018-10-17 06:19:06 +10:00
rldhont
e10736ae7b
Merge pull request #8199 from pblottiere/server_getfeatureinfo_tolerance
[bugfix] Fixes #19383 - GetFeatureInfo tolerance
2018-10-16 19:12:11 +02:00
rldhont
fff0c03099
Merge pull request #8155 from uprel/master
Fixes #20064: Bug in Server WFS update transaction
2018-10-16 19:11:03 +02:00
Salvatore Larosa
3cb9ef2294 fix build without server and 3d 2018-10-16 18:45:25 +02:00
Alessandro Pasotti
d55233f29c Takes care of sort caches 2018-10-16 15:47:32 +02:00
Salvatore Larosa
d2f51f8f8f
Merge pull request #8209 from slarosa/fix_api_file_generator
add 3d module to API file
2018-10-16 15:38:40 +02:00
uprel
d71f85b568 Fixing bug #20064 in WFS Update transaction triggering Bad request when having more then one Property element change (attribute or geometry field) 2018-10-16 15:28:36 +02:00
Matthias Kuhn
7d3daf6f40
Merge pull request #8197 from signedav/fix_duplication
[Bugfix] Care about default values again on creating feature
2018-10-16 15:18:57 +02:00
Salvatore Larosa
20c9a5da33 add 3d module to API file 2018-10-16 12:52:48 +02:00
Matthias Kuhn
190f938654
Merge pull request #8103 from m-kuhn/geometryValidatorCode_1
Geometry validation of editing session
2018-10-16 11:34:50 +02:00
Alessandro Pasotti
1d9cfdc1f2 Refactor slots and update view when bulk command finishes 2018-10-16 10:16:08 +02:00
Matthias Kuhn
6c97fcf80f
Avoid crash when disconnecting layer 2018-10-16 10:12:30 +02:00
Alessandro Pasotti
5defc03086 Fix slow updates from field calculator
Fixes #20094

Followup 096b4ce
2018-10-16 09:33:09 +02:00
Alessandro Pasotti
0e50b3ba70 Revert "Merge pull request #8177 from elpaso/bugfix-20094-field-calculator-slowness"
This reverts commit 096b4ce00426ee35a1eec5b54453b9ea2e22b903, reversing
changes made to 87e0f6961adcbf7039d2c0bef914cebd747afc67.
2018-10-16 09:33:09 +02:00
Nyall Dawson
ee8e1ce9bc [processing][gdal] More unit tests 2018-10-16 16:52:00 +10:00
Nyall Dawson
bef8d6e072 Update expected test results 2018-10-16 16:52:00 +10:00
Giovanni Manghi
fbb916d908 fixes the ogr2ogr based geoprocessing tools 2018-10-16 16:52:00 +10:00
Nyall Dawson
7bd0285dfd Fix banned keyword use 2018-10-16 15:54:57 +10:00