35237 Commits

Author SHA1 Message Date
Even Rouault
e67a47b9ab [OGR provider] Do not list qgis_projects (from QgisGeoPackage plugin) as sublayer 2016-10-27 11:57:38 +02:00
Nyall Dawson
11e5283591 Merge pull request #3677 from nirvn/map_themes_signal_fix
[map themes] fix composer signal name
2016-10-27 15:20:03 +10:00
Nyall Dawson
1d09538c5c Merge pull request #3670 from nirvn/expression_replace_array
[FEATURE] array support for the replace() expression function
2016-10-27 15:15:36 +10:00
nirvn
8a809b8700 [map themes] fix composer signal name 2016-10-27 11:54:35 +07:00
nirvn
3fb2d9e4e3 [expression] further improve replace() to support a map argument 2016-10-27 11:33:28 +07:00
Denis Rouzaud
642e4a48c7 Revert "[Postgres] fix writing default value when primary key has varchar columns"
This reverts commit f456932514c750d4b077a9daaea5ddfbbad3f1c8.
2016-10-26 17:03:06 +02:00
Denis Rouzaud
f456932514 [Postgres] fix writing default value when primary key has varchar columns
kudos to @m-kuhn to find and solve this
2016-10-26 16:28:54 +02:00
Nyall Dawson
a042c9decc Followup 858978, fix failing tests 2016-10-26 20:46:32 +10:00
nirvn
8b74201470 [FEATURE] array support for the replace() expression function 2016-10-26 17:01:56 +07:00
Nyall Dawson
8589788544 Use QgsExpressionContextScope::addVariable instead of setVariable
...where appropriate (ie, read-only, non user set variables).
It's much faster as it doesn't need to check whether the
variable already exists.

Results in ~10% improvement in rendering speed. Refs #15752.
2016-10-26 19:22:38 +10:00
Even Rouault
2d2ce00341 Merge pull request #3665 from rouault/save_style_gpkg
[FEATURE] [OGR provider] Load/save style in database for GPKG and Spatialite
2016-10-26 11:04:25 +02:00
Matthias Kuhn
469f07c071 Use fallback default mode for snapping with bad configuration 2016-10-26 10:59:46 +02:00
Matthias Kuhn
322edff6e4 Remove snapping settings from status bar 2016-10-26 10:55:10 +02:00
Juergen E. Fischer
42b9bff093 include qgsactionmanager.h in install
(cherry picked from commit 5d7f8e9565541660d6ae080f520f38a3259173ce)
2016-10-26 09:27:33 +02:00
Nyall Dawson
49432a8468 Optimise QgsAbstractGeometry
Make nCoordinates virtual, and provide shortcuts for some
geometry types. The base method which calls coordinateSequence()
is quite slow in certain circumstances.

Speeds up rendering point layers by ~25%, also likely to
speed up lots of geometry heavy operations throughout QGIS

Refs #15752
2016-10-26 17:22:09 +10:00
Nyall Dawson
5798a82c80 Speed up point layer rendering - don't calculate unused label obstacles
Cuts render time by ~60%. Fix #15752.
2016-10-26 17:20:57 +10:00
Nyall Dawson
6f82740670 [expressions] Allow non-greedy regex by switching to QRegularExpression 2016-10-26 16:04:38 +10:00
Alexander Bruy
323c6582c6 [processing] add workaround for GDAL regression with cutlines (fix #15746) 2016-10-25 17:48:19 +03:00
Even Rouault
d0da880b8c [DB Manager] Fix refresh issue when renaming GPKG table, and disable add geometry column button if already one existing 2016-10-25 15:39:27 +02:00
rldhont
9d0bb34010 [BUGFIX][QGIS Server] Do not cache invalid layer
After readLayerXml, the server stored layers in cache and in registry without verifying validity.
2016-10-25 13:49:02 +02:00
Matthias Kuhn
a43f8a3616 Address snapping config UX problems
See https://github.com/qgis/QGIS/pull/3617#issuecomment-255114425
2016-10-25 13:44:23 +02:00
rldhont
f8bae67196 Clean QgsVectorLayer: remove duplicated writeSld method 2016-10-25 11:19:44 +02:00
Even Rouault
3bb7d5cccf [OGR provider] More uses of QStringLiteral / QLatin1String 2016-10-25 10:28:55 +02:00
Even Rouault
3b77e4b395 [FEATURE] [OGR provider] Load/save style in database for GPKG and Spatialite 2016-10-25 10:28:54 +02:00
Even Rouault
9ae156970a QgsVectorLayer::writeSymbology(): fix crash when called with invalid data provider 2016-10-25 10:28:53 +02:00
Even Rouault
a70d42802f QgsVectorLayer::loadNamedStyle(): make it work with non database URI
Such as OGR GPKG
2016-10-25 10:28:53 +02:00
Even Rouault
e237963274 SIP QgsVectorLayer: fix signatures for output parameter
saveStyleToDatabase() and getStyleFromDatabase() should define errMsg as
output parameter
And loadNamedStyle() also for theResultFlag.
2016-10-25 10:28:53 +02:00
Paolo Cavallini
7470b55bbd Enable CROP_TO_CUTLINE by default
Fixes https://hub.qgis.org/issues/15750
Please backport it where appropriate.
2016-10-25 08:57:31 +02:00
Nyall Dawson
72e4cf7db0 Fix a qt warning message on startup 2016-10-25 12:30:23 +10:00
Nyall Dawson
f195e9400f Make welcome page layout align with other panels + docks 2016-10-25 12:22:52 +10:00
Nyall Dawson
0b35ccefa9 Update qt5 build instructions for Fedora 2016-10-25 12:14:22 +10:00
Nyall Dawson
b2587b7bf3 [FEATURE] Remove zonal stats plugin
This is now fully exposed via processing, which is the logical
place for this feature to reside.

One less c++ plugin is a good thing!

(marked as feature so we remember to mention this in changelog!)
2016-10-25 09:30:18 +10:00
Nyall Dawson
e75b572b6e [FEATURE] Remove dxf2shp converter plugin
This functionality is available in OGR and there is no longer
a need for a dedicated QGIS plugin to do this task

Marked as feature for documentation + changelog reminder
2016-10-25 09:29:46 +10:00
Nyall Dawson
1367fd09fc Prepare commit converts single line doxygen block format
Flips single line doxygen comments to use the proper single line
format:

/*!< comment */   to   //!< Comment

and

/** comment */    to   //! Comment
2016-10-25 09:17:39 +10:00
Nyall Dawson
3ef8e6afca Minor doxygen improvements 2016-10-25 08:54:01 +10:00
Nyall Dawson
af55c022b2 Followup 4166a3, don't use QStringLiteral in definitions
Causes linker errors in some random cases
2016-10-25 08:34:00 +10:00
Even Rouault
794c8f3c85 [DB_Manager GPKG] Fix creating and changing default values of columns 2016-10-24 17:41:49 +02:00
Even Rouault
f84826d58d [DB_Manager GPKG] Fix logic inversion in GDAL 1.X vs GDAL 2.X cases 2016-10-24 17:01:58 +02:00
Matthias Kuhn
cc0ada9f11 Add a hyperlink to the processing tests readme 2016-10-24 14:37:28 +02:00
Harrissou Sant-anna
8f13d4e242 typo fix 2016-10-24 14:33:22 +02:00
Sandro Santilli
96e7883b13 Add more links to test-relted README files 2016-10-24 11:43:36 +02:00
Sandro Santilli
31cd7a81a3 Add link to processing test document 2016-10-24 11:20:22 +02:00
Even Rouault
af236c4ef8 Merge pull request #3628 from rouault/dbmanager_gpkg
[DBManager] Add dedicated GeoPackage plugin
2016-10-24 10:33:03 +02:00
Alexander Bruy
72229c1c2b Merge pull request #3658 from nirvn/processing_modeler_mousewheel
[processing] fix modeleter mouse wheel zoom under qt5
2016-10-24 10:17:32 +03:00
Nyall Dawson
bb9e276d59 Merge pull request #3660 from nyalldawson/qstringallc
Fix literal QString construction for Qt5/c++11
2016-10-24 16:27:28 +10:00
Nyall Dawson
4166a3ea62 Fix most clazy qstring-unneeded-heap-allocations warnings
By flipping string literals to QStringLiteral/QLatin1String

see

https://woboq.com/blog/qstringliteral.html
2016-10-24 15:26:24 +10:00
Nyall Dawson
f6a344c2c1 Add QgsTextFormatPanelWidget for text format control inside panel 2016-10-24 12:02:00 +10:00
Nyall Dawson
8fa8167d7b Add a simple dialog for configuring text formatting 2016-10-24 12:02:00 +10:00
Nyall Dawson
4282474c26 Respect render context antialiasing setting in text renderer 2016-10-24 12:02:00 +10:00
Nyall Dawson
76c12ba94c Split QgsLabelingGui off into QgsTextFormatWidget
New widget allows for setting just the formatting properties
of text
2016-10-24 12:02:00 +10:00