51021 Commits

Author SHA1 Message Date
Even Rouault
bd6c1115bb [OGR provider] Make createEmptyLayer() work properly on GeoPackage when creating/overwrite a new database (fixes #20040) 2018-10-08 07:23:12 +10:00
Even Rouault
1aa9485f6d [OGR provider] Fix deletion of layers from QGIS browser when filename has non-ASCII characters (fixes https://issues.qgis.org/issues/19861) 2018-10-08 07:22:54 +10:00
Alessandro Pasotti
7c6cb910cc Fixes #20038 null island in canvas.saveAsImage 2018-10-08 07:22:39 +10:00
Nyall Dawson
7c21bfd199 Silence "libpng warning: iCCP: known incorrect sRGB profile" warnings
These are thrown by 3rd party components (e.g. webkit) which we have no
control over, and have low value anyway

Better to keep the debug log cleaner so that real errors are noticed
2018-10-08 05:04:31 +10:00
Blottiere Paul
80e19b6328 Add core unit test 2018-10-08 05:03:49 +10:00
Blottiere Paul
7681d308e2 Removes TODO comment 2018-10-08 05:03:49 +10:00
Blottiere Paul
6dfae7238c Activates unit test 2018-10-08 05:03:49 +10:00
Blottiere Paul
5a9067e722 Fixes #19826 - Use subset layer to manage fid 2018-10-08 05:03:49 +10:00
rldhont
2b71c9cc97
Merge pull request #7915 from rldhont/server-cache-manager-extension
[Server][Cache] Finalizing the cache manager
2018-10-07 15:50:00 +02:00
Nyall Dawson
b247c7ce5d More hacking around crs db 2018-10-07 17:36:40 +10:00
Nyall Dawson
086b6a80d0 Fix dox test 2018-10-07 17:36:40 +10:00
Nyall Dawson
195a2fb8c7 Workaround ellipsoid_acronym not null constraint 2018-10-07 17:36:40 +10:00
Nyall Dawson
af7957707b Fix various qt warnings related to user profile databases
Switch to using QGIS sqlite helper classes instead of Qt database
classes
2018-10-07 17:36:40 +10:00
Nyall Dawson
e91e342e6a Fix some chatty debug messages 2018-10-07 17:36:40 +10:00
Nyall Dawson
ed35ad9ca7 Unify sqlite string quoting functions to a single QgsSqliteUtils::quoteString
function, with tests
2018-10-07 17:36:40 +10:00
Even Rouault
7e81226b51 Replace toUtf8().data() by toUtf8().constData()
All your uses of toUtf8().data() actually just need a const char*
So use constData() that is semantically more correct, and documented
to be faster.

From http://doc.qt.io/qt-5/qbytearray.html#data
"For read-only access, constData() is faster because it never
causes a deep copy to occur."
2018-10-07 07:23:42 +10:00
rldhont
3bb64a7f1a [Server][Cache] Adding HAVE_SERVER_PYTHON_PLUGINS around accessControls and cacheManager methods 2018-10-06 15:08:39 +02:00
Even Rouault
f5d2d85860
QgsXmlUtils::readFlagAttribute(): fix use-after-free
Found with Valgrind

```const char* c_str = qstr.toUtf8().data()``` is invalid
since the QByteArray returned by toUtf8() is destroyed at the
end of the expression, letting c_str point to freed memory

On the contrary ```foo(qstr.toUtf8().data())``` is valid since
the temporary object is destroyed only after foo invokation.
2018-10-06 15:00:39 +02:00
rldhont
bc7cea2e3e [Server][Cache] Extending and enhancing cache manager tests 2018-10-06 10:25:20 +02:00
rldhont
8c67e45f09 [Server][Cache] Add WMS GetLegendGraphic to store in cache 2018-10-06 10:25:20 +02:00
rldhont
f79be97e90 [Server][Cache] Add documents to store in cache: WMS Context, WFS DescribeFeatureType, WCS DescribeCoverage 2018-10-06 10:25:20 +02:00
Nyall Dawson
81db0052ff [mssql] Fix single geometry types are added to multi geometry type layers
Fixes #10793
2018-10-06 06:06:05 +10:00
Denis Rouzaud
a86c683913
Merge pull request #8031 from DelazJ/patch-4
Fix save style dialog expansion and UI cleanup
2018-10-05 11:43:57 -08:00
Denis Rouzaud
9fa8c356dd
make QgsWkbTypes a Q_GADGET and declare GeometryType as Q_ENUM (#8024)
* make QgsWkbTypes a Q_GADGET and declare GeometryType as Q_ENUM

* include QObject

* remove extra include

* move QgsWkbTypes to moc headers

* run sip_include
2018-10-05 10:25:35 -08:00
Denis Rouzaud
8f4d3ba38e
Merge pull request #8041 from 3nids/user_doc_auto_screenshots
Automatic creation of screenshots for user documentation
2018-10-05 05:02:06 -08:00
Denis Rouzaud
77bfec68c3 fix typo 2018-10-05 09:01:32 -04:00
Peter Petrik
618ed2e733 add recognision of ECMWF_ERA to MDAL 2018-10-05 14:22:21 +02:00
Peter Petrik
9acc5c1010 [mesh] update to MDAL 0.0.9 (NetCDF Support) 2018-10-05 14:22:21 +02:00
Denis Rouzaud
2ff3f762d6 set device pixel ratio on pixmap 2018-10-05 07:20:34 -04:00
Matthias Kuhn
e25d6347c6
Merge pull request #8034 from m-kuhn/canCommitChanges
Add QgsVectorLayer::allowCommit property
2018-10-05 13:11:28 +02:00
Alessandro Pasotti
e86693a5c2
Merge pull request #8111 from elpaso/in-place-select-all
[processing][need-docs] In place editing triggers editing and select all
2018-10-05 12:36:51 +02:00
Alessandro Pasotti
cdf5bb630f Fix test 2018-10-05 11:03:49 +02:00
Alessandro Pasotti
29c4970f8a [processing] In-place add layer name to dlg title and store active layer 2018-10-05 10:10:20 +02:00
Alessandro Pasotti
0782b9d869 Dynamically change button text for in-place editing
The button title changes if there are selected features
2018-10-05 09:21:28 +02:00
Alessandro Pasotti
ca1c65d07a [processing] In place editing triggers editing and select all
If the active layer is not editable, the executor will
try to switch editing on.

If there are no selected features, the executor will
select all features before running.
2018-10-05 08:53:30 +02:00
Alessandro Pasotti
223a87fbc5
Merge pull request #8121 from nyalldawson/no_boundary
Boundary alg cannot run in-place mode
2018-10-05 08:51:05 +02:00
Matthias Kuhn
3522518bec
Do not add allowCommit to Python bindings 2018-10-05 08:43:13 +02:00
Nyall Dawson
2f89139ce3 Fix up test 2018-10-05 16:00:36 +10:00
Nyall Dawson
3fc0e69fb3 [mssql] Add unit test for #15305 2018-10-05 16:00:36 +10:00
Nyall Dawson
17b80c1492 [mssql] Implement native uniqueStringsMatching method, should speed up provider queries 2018-10-05 16:00:36 +10:00
Nyall Dawson
4986d43247 [mssql] Fix crash when requesting min/max/unique values from invalid field index 2018-10-05 16:00:36 +10:00
Nyall Dawson
a6ae6c1702 Add a provider test for a crash experienced in SQL Server provider 2018-10-05 16:00:36 +10:00
Nyall Dawson
b7f5a3c1ea [mssql] Fix shifted attributes after importing layers via browser
drag and drop

Fixes #15305
2018-10-05 16:00:36 +10:00
Nyall Dawson
57fcf439ba Boundary alg cannot run in-place mode 2018-10-05 15:44:51 +10:00
Nyall Dawson
10095ce0ef [mssql] Compile some simple expression functions
Should speed up lots of querying operations on sql server layers
2018-10-05 11:34:49 +10:00
Nyall Dawson
1d9086c75d [mssql] Allow compilation of int div expressions 2018-10-05 11:34:49 +10:00
Nyall Dawson
4a687a07f7 [mssql] Fix integer division compilation
Makes sql server provider pass conformance tests again!
2018-10-05 11:34:49 +10:00
Nyall Dawson
3df8c75db8 [mssql] Update list of uncompilable expressions 2018-10-05 11:34:49 +10:00
Nyall Dawson
8cad2a6e16 [processing] Fix random selection count parameter
Remove a bunch of manual "max" values for numeric parameters
where the maximum just represents a 'large number' and not a real
constraint, and let the default parameter max value handling kick in instead.

In the case of random selection the max value exceeded the possible
range for integers in spin boxes and broke the widget.

Fixes #20015
2018-10-05 10:48:17 +10:00
Juergen E. Fischer
e3e9297633 sip fix for xenial 2018-10-05 01:37:32 +02:00