37221 Commits

Author SHA1 Message Date
Denis Rouzaud
dccf8c9e13 run astyle on src/app 2017-03-03 09:09:37 +01:00
Denis Rouzaud
e7079eead9 run astyle on src/gui 2017-03-03 09:09:37 +01:00
Denis Rouzaud
40c056cae0 run astyle on src/core 2017-03-03 09:09:37 +01:00
Denis Rouzaud
c4434e8bfc astyle options 2017-03-03 09:09:37 +01:00
Denis Rouzaud
193fad9411 update astyle to 2.06 2017-03-03 09:09:37 +01:00
volaya
e5ebcd170f Merge pull request #4206 from volaya/fix_processing_provider_update
[processing] fixed update of toolbox after editing script providers
2017-03-03 08:50:09 +01:00
Juergen E. Fischer
fb409b59a9 oracle provider: use prepared statements with parameters (implements #16251) 2017-03-03 00:08:14 +01:00
Juergen E. Fischer
09e1c8c71a vector layer ctor: avoid 'Data source is invalid' warning when invoked with defaults 2017-03-03 00:08:14 +01:00
Juergen E. Fischer
d315fdfabc canvas: don't try to connect to null layers 2017-03-03 00:08:14 +01:00
Juergen E. Fischer
bceb8ff780 fix exporting bookmarks 2017-03-03 00:08:14 +01:00
Juergen E. Fischer
bd58bc337c oracle provider: update qocispatial driver for/from Qt5
* handling of private data
* rely on implicit byte array sharing instead of using data pointers
* sync with qoci
2017-03-03 00:08:14 +01:00
Nyall Dawson
febff07fde Indentation 2017-03-03 08:07:48 +10:00
volaya
51da47d61c [processing] fixed update of toolbox after editing script providers 2017-03-02 13:44:31 +01:00
volaya
1618f539ec [provided] avoid removing toolbox entries when there are no recent algs 2017-03-02 13:43:10 +01:00
volaya
b500ab5065 [processing] fixed reading script description for R algorithms
fixes #16227
2017-03-02 13:43:09 +01:00
Matthias Kuhn
9c3fa187fa Fix map themes in combination w/ offline editing 2017-03-02 11:00:16 +01:00
Alexander Bruy
e84829e016 Merge pull request #4088 from volaya/grass_tempfile_fix
[processing] fixed grass tempfiles
2017-03-02 10:26:23 +02:00
Alessandro Pasotti
e045b369cf Fixes segfault in QgsSettings::clear, fixes #16233
mGlobalSettings is read-only and can be a nullptr
that QSettings instance should never be modified
nor assumed to be instanciated
2017-03-02 08:13:24 +01:00
Nyall Dawson
1752d446e7 Merge pull request #4204 from nyalldawson/cancel_without_blocking
Don't block when canceling canvas render jobs
2017-03-02 14:16:55 +10:00
Nyall Dawson
6243f78782 Add a unit test for map render job cancelation 2017-03-02 13:12:45 +10:00
Nyall Dawson
3b56b79f6d Don't block when canceling canvas render jobs
In some cases canceling render jobs can take a long time. Eg when
using database layers over a sloooooow connection, canceling a job
can be blocked by minutes while waiting for the first batch of feature
fetching to finish. (Since eg postgres features are fetched in batches
of 2000 with no opportunity to abort mid-way through this).

This meant that while the first render allows the GUI to remain
responsive, any subsequent render operations which occured before
the first render completes locks up the whole ui until the first
render can finish cancellation.

With this change, the render cancelation happens with blocking.
It means that you can pan and zoom around a map over of slow
connection without any ui locks.
2017-03-02 12:39:57 +10:00
Nyall Dawson
e9dee40067 Fix build, warnings on windows 2017-03-02 08:58:17 +10:00
Sandro Mani
fcf718ff3c Fix build against recent sip:
qgsfiledownloader.sip:33:0:
src/gui/qgsfiledownloader.h:94:5: error: overriding non-deleted function 'virtual QgsFileDownloader::~QgsFileDownloader()'
2017-03-01 23:43:09 +01:00
Nyall Dawson
ed8f8619c1 Merge pull request #4185 from DelazJ/linepattern
Line pattern fill symbol: Use Spacing instead of Distance
2017-03-02 08:26:26 +10:00
Nyall Dawson
e54cb2e805 Fix failing test + build warning 2017-03-01 17:55:33 +10:00
Nyall Dawson
1f7635ace7 Merge pull request #4198 from nyalldawson/canvas_api
Remove support for disabling OTF reprojection
2017-03-01 17:53:34 +10:00
Nyall Dawson
081cf96c3f Indentation 2017-03-01 17:48:43 +10:00
Alexander Bruy
aeaa5fc687 Merge pull request #4200 from alexbruy/processing-reorganize-gdal
[processing] rename algorithm groups in GDAL provider
2017-03-01 09:34:28 +02:00
Matthias Kuhn
26557c9a88 [FEATURE] Add new expression function env 2017-03-01 07:52:37 +01:00
Nyall Dawson
f354a8560b Fix crash when concurrent rendering operations occur 2017-03-01 15:57:07 +10:00
Nyall Dawson
899888d1c5 [FEATURE] Allow setting project CRS to "no projection"
This replaces the older "OTF off" setting. If a project has
no projection set, then the following things happen:

- no reprojection is done while rendering - features are just
drawn using their raw coordinates
- ellipsoid, distance and area units, and coordinate display
are locked out.
- all measurements are done in unknown map units, and no conversion
is possible.

As well as addressing the use cases in which users disabled
OTF reprojection, this setting may also be useful for users
who use QGIS to create "non-earth" maps, such as RPG or fantasy
maps, or for microscopic analysis, or some other local reference
system not related to earth based projections.
2017-03-01 12:27:51 +10:00
Nyall Dawson
3c7c65e6d5 Allow a "no projection" option in projection selection widget/dialog
This option allows users to select "no projection", when
there's no suitable projection to select...
2017-03-01 10:14:37 +10:00
Nyall Dawson
9dd71b8ffb An invalid CRS should return unknown units for mapUnits 2017-03-01 09:30:59 +10:00
Nyall Dawson
fb53f54dd2 Make QgsCoordinateReferenceSystem less noisy with debug messages 2017-03-01 09:30:44 +10:00
Nyall Dawson
e7f2f78d6c More efficient use of strings 2017-03-01 09:09:12 +10:00
Nyall Dawson
92f03273f5 Correctly use QgsMapCanvas::freeze instead of setRenderFlag 2017-03-01 07:29:35 +10:00
Nyall Dawson
79fb8aeb97 Improve documentation for QgsMapCanvas and remove false QGIS 3 TODO 2017-03-01 07:29:35 +10:00
Nyall Dawson
8094cf996b Remove support for setting map units in QgsMapSettings, QgsMapCanvas and QgsDxfExport
In a post-OTF-disabled world these are no longer required. The
map units are dictated by the map units for the destination
CRS.

It's dangerous to separate these two properties as setting
the incorrect map units for a given CRS will result in
incorrect scale calculations.
2017-03-01 07:29:35 +10:00
Nyall Dawson
0f6d0156bc Fix failing tests 2017-03-01 07:29:35 +10:00
Nyall Dawson
20c07a58e6 Remove support for disabling OTF reprojection
Because
- OTF reprojection is mature and stable
- Should be no cost when not required - transforms are shortcut
when not required
- Reduces code complexity
- Canvas OTF support was being incorrectly used as a flag for
whether measurements should be made in ellipsoidal mode. Instead
the project's ellipsoid setting should be checked for this.
- Should simplify behavior for new users
2017-03-01 07:29:35 +10:00
Matthias Kuhn
809d30ffbf Fix mac build 2017-02-28 22:26:16 +01:00
Matthias Kuhn
bb617a1d96 Add QgsUnitTypes::toAbbreviatedString 2017-02-28 18:43:17 +01:00
Larry Shaffer
b1c653b249 Update QScintilla CMake find module to handle new lib name in 2.10
[ci skip]
2017-02-28 09:11:29 -07:00
rldhont
ac6cf19898 Merge pull request #4157 from rldhont/server-wcs-configparser
[Server] Remove QgsWCSProjectParser
2017-02-28 16:36:52 +01:00
Harrissou Sant-anna
79580be502 Locked item can't be moved with arrow keys 2017-02-28 12:16:34 +01:00
Matthias Kuhn
8270e10e39 Add icons to some shortcut configurations 2017-02-28 12:13:41 +01:00
Denis Rouzaud
5176ecf597 [needs-docs] keyboard shortcut to toggle snapping (S)
Pressing the key "S" will toggle snapping. This helps to quickly
enable/disable snapping while digitizing.
2017-02-28 12:13:41 +01:00
Alexander Bruy
dbca0304d9 [processing] rename algorithm groups in GDAL provider 2017-02-28 12:37:48 +02:00
Nyall Dawson
f0489c9fc6 Fix some use of canvas CRS when project CRS should be used 2017-02-28 15:45:58 +10:00
Nyall Dawson
b681b7bf3f Flip QgsMapCanvas connects to new style
Also remove unneeded duplicate signal
2017-02-28 11:06:38 +10:00