38743 Commits

Author SHA1 Message Date
Alexander Bruy
11475c621d Revert "Merge pull request #4562 from alexbruy/processing-singletomulti-3"
This reverts commit e3d79a1fe940b5d813b5f79c51b43393d085bb16, reversing
changes made to 3f7f95ee262ea3646d61600c21faed0866bc70b0.

Reverting again, as Travis started failing after merging PR (with all
test passed) into master branch
2017-05-16 13:42:47 +03:00
Alessandro Pasotti
3f4ad0f4d0 Merge pull request #4564 from boundlessgeo/server-more-requesthandler-api
[server] Add url and post data getters to request handler
2017-05-16 12:30:03 +02:00
Alessandro Pasotti
45166aaf71 [server] Clearer log message when parsing non-XML POST data 2017-05-16 11:57:28 +02:00
Alessandro Pasotti
cbef51cc0a [server] Sipify QgsRequestHandler 2017-05-16 11:57:28 +02:00
Alessandro Pasotti
2f75bab844 [server] Add url and post data getters to request handler
This completes the API to eventually get rid of all
getEnv usage from python server plugins.

The request handler has now access to the request URL
and POST data without the need to query the env.
2017-05-16 11:08:38 +02:00
Alexander Bruy
e3d79a1fe9 Merge pull request #4562 from alexbruy/processing-singletomulti-3
[processing] handle NULL values in the single to multi algorithm (fix #15822)
2017-05-16 11:59:51 +03:00
Juergen E. Fischer
3f7f95ee26 db_manager versioning: add RETURNING to INSERT rule (fixes #16083) 2017-05-16 10:34:59 +02:00
Alexander Bruy
b56e46dad4 [processing] handle NULL values in the single to multi algorithm (fix #15822) 2017-05-16 10:06:26 +03:00
Juergen E. Fischer
2f70b426e9 sip bindings: exclude QgsCompositionChecker when not building tests 2017-05-16 09:04:08 +02:00
Juergen E. Fischer
70da239a24 debian packaging: include native gui library 2017-05-16 09:04:08 +02:00
Martin Dobias
f153e19168 Fix saving of "obstacle only" state + misc fixes to unit tests 2017-05-16 14:25:32 +08:00
Martin Dobias
bfdc84fc69 Fixes to unit tests 2017-05-16 14:25:32 +08:00
Martin Dobias
ee9fabbec1 Fix for style loading and clean up of used labeling custom properties 2017-05-16 14:25:32 +08:00
Martin Dobias
56309efc4c Fix loading of labeling from 2.x projects 2017-05-16 14:25:32 +08:00
Martin Dobias
53f8e7f744 Remove dead code for writing of labeling from custom properties 2017-05-16 14:25:32 +08:00
Martin Dobias
828bd384c5 Convert remaining bits where labeling was configured using setCustomProperty() 2017-05-16 14:25:32 +08:00
Martin Dobias
21f03bc11c Clean up reading/writing of labeling configuration in vector layers
Historically the configuration used to be stored in layer's custom properties, but that does not scale
beyond simple rendering and so rule-based labeling introduced storage of configuration natively in XML elements.
That left us with two different ways of reading/writing labeling configurations. This work makes all configuration
to use native XML elements.

To keep compatibility of 2.x projects, reading of configuration from custom properties is preserved.

This commit also adds Python APIs for direct manipulation of labeling configuration through vector layer's
setLabeling() and labeling() calls.
2017-05-16 14:25:32 +08:00
Nyall Dawson
7e345a7327 Merge pull request #4561 from nyalldawson/proj_thread2
Avoid using thread unsafe proj API - approach 2
2017-05-16 15:12:42 +10:00
Nyall Dawson
5201eb251e Optimise storage/retrieval of projPJ objects 2017-05-16 13:31:35 +10:00
Nyall Dawson
e51737e6e4 Use thread safe proj API in all other code paths 2017-05-16 13:20:45 +10:00
Nyall Dawson
4396e5325d Utilise thread safe proj API within QgsCoordinateTransform
Avoids unpredictable behavior when transforms are being
conducted in background threads, such as map renders.

Refs #11441

This commit:
1. Uses thread_local storage for projCtx objects, to ensure
that every thread correctly has its own projCtx context.

2. Refactors QgsCoordinateTransformPrivate so that the
projPJ source and destination objects are instead stored
in a map (by projCtx). This allows transforms to be
transparently performed using the correct projPJ objects
for the particular thread in which the transform is being
conducted. This approach avoids expensive detachment
of QgsCoordinateTransformPrivate, and allows a single
QgsCoordinateTransformPrivate to be safely utilised
by QgsCoordinateTransform objects in different threads.
2017-05-16 13:20:45 +10:00
Nyall Dawson
ae492abcf4 Split qgscoordinatetransform_p into .h/cpp 2017-05-16 13:20:45 +10:00
Nyall Dawson
59c974379e Fix missing name and progress for feature counter task 2017-05-16 13:09:36 +10:00
Nyall Dawson
a517c683cd Ensure created memory layers have unique source
Sometimes the layer source is used for "looser" comparison then
layer ID
2017-05-16 11:29:49 +10:00
Nyall Dawson
c484b505ce Link native to core on OSX only 2017-05-16 07:23:46 +10:00
Denis Rouzaud
e455b157b5 [sipify] do not comment global operators
fix class/struct level detection
sipify qgsmargins.qgs
2017-05-15 21:55:10 +02:00
Matthias Kuhn
3f85b050dc fix bad copy paste 2017-05-15 21:55:10 +02:00
Matthias Kuhn
d15bd8dd22 No docstrings for out-of-class functions 2017-05-15 21:55:10 +02:00
Matthias Kuhn
5c2deb4010 Doxymentation 2017-05-15 21:55:10 +02:00
Matthias Kuhn
d4edbc0fdb Unsipify QgsMargins 2017-05-15 21:55:10 +02:00
Matthias Kuhn
7ac276e713 No copy of QgsLabelSearchTree is allowed 2017-05-15 21:55:10 +02:00
Matthias Kuhn
df6d60fcc1 Fix sip errors 2017-05-15 21:55:10 +02:00
Matthias Kuhn
9e059ed77e Fix sip errors 2017-05-15 21:55:10 +02:00
Matthias Kuhn
6ad5a58c84 Spelling 2017-05-15 21:55:10 +02:00
Matthias Kuhn
2abb1465c4 [sipify] Another batch of sip 2017-05-15 21:55:10 +02:00
Denis Rouzaud
922b162b86 attachment widget: data defined button for document type 2017-05-15 17:57:25 +02:00
Nyall Dawson
87052a7712 Merge pull request #4558 from nyalldawson/native-lib-mac
Add OS native interface lib, with objective-c++ interface to Mac Cocoa libraries, v3
2017-05-15 18:24:26 +10:00
Nyall Dawson
8f44a29ae7 Reintroduce core/native link 2017-05-15 17:38:28 +10:00
Nyall Dawson
2831f842e6 Fix compilation 2017-05-15 16:54:44 +10:00
Nyall Dawson
ae97c333d6 Revert "Port algorithm countVisibleParameters to c++"
This reverts commit c3c694f8ccfbe0b64df14365f950f5895968a66a.
2017-05-15 10:24:38 +10:00
Nyall Dawson
6efe160a65 Move QgsNative instance from app->QgsGui singleton
This allows gui widgets to utilise native platform interfaces.
Additionally attaching the instance to QgsGui allows QgsNative
to become a QObject in future if required and for use
of signals/slots in the native interfaces.
2017-05-15 09:56:52 +10:00
Mathieu Pellerin
a4b7af7fad Use millimeters when declaring QPrinter page size
(This is needed to allow to set a resolution with the printer used
by the map renderer)
2017-05-15 06:23:29 +07:00
Nyall Dawson
cbc2a3df64 Indentation 2017-05-15 09:15:09 +10:00
Nyall Dawson
6971e9da23 Fix build 2017-05-15 09:15:09 +10:00
Matthias Kuhn
d1593caed7 Create a virtual QgsNative base class for platform services
A QgsNative base class is added, that offers default implementations for
a platform interface. These methods can be overridded for the current
platform at compile time to allow specialized handling for integration
with the current system.
2017-05-15 09:15:09 +10:00
Larry Shaffer
f6bd7b3b58 Add OS native interface lib, with objective-c++ interface to Mac Cocoa libraries 2017-05-15 09:15:09 +10:00
Nyall Dawson
f8f7d60cf0 Merge pull request #4514 from nyalldawson/gui_instance
Make a new global QgsGui singleton
2017-05-15 09:03:55 +10:00
Nyall Dawson
c3c694f8cc Port algorithm countVisibleParameters to c++ 2017-05-15 08:44:28 +10:00
Nyall Dawson
a8b10a2fd9 Update indentation 2017-05-15 07:57:57 +10:00
Nyall Dawson
14882058ba Sipify update 2017-05-15 07:34:14 +10:00