8824 Commits

Author SHA1 Message Date
David Marteau
018d2a24fb Server: pass full url string and data to handleRequest()
Fix tests by removing passing url pieces from environment
2017-04-21 17:38:25 +02:00
David Marteau
a55390e319 Restore body() accessor in QgsRequestHandler
Restore clearBody() method in QgsRequestHandler
2017-04-21 14:33:10 +02:00
Martin Dobias
25ed76b86e Move labeling engine config to a new class + QgsPalLabeling cleanup
Another bit to make core library independent from QgsProject::instance().
Until now labeling engine configuration was taken from project singleton.

Removed legacy methods from QgsPalLabeling - the class now does not have
any more member variables/methods, it is just a bunch of helper functions.

(PR #4384)
2017-04-21 18:04:09 +08:00
Mathieu Pellerin
e0d20e537d Update decorators to avoid relying on map canvas when rendering (#4388) 2017-04-21 12:06:24 +07:00
Mathieu Pellerin
db848a3f1a Upgrade the save as image function into a background task (#4382) 2017-04-21 11:47:37 +07:00
rldhont
1bbc39e887 [BUGFIX][Processing] Fix spatialite version comparison 2017-04-20 15:16:55 +02:00
volaya
5b8c083da7 indentation fix 2017-04-20 14:47:02 +02:00
Denis Rouzaud
8f2a5c7c00 sipify all 2017-04-20 14:21:36 +02:00
volaya
e5dd93663e [processing] fixed I/O of models 2017-04-20 14:03:09 +02:00
volaya
54e30b93f3 improvements for extracts within subsets 2017-04-20 14:03:08 +02:00
Denis Rouzaud
f9ec3829fc fix doxymentation 2017-04-20 08:15:32 +02:00
Denis Rouzaud
36604196d7 sipify QgsScaleWidget 2017-04-20 08:15:32 +02:00
Nyall Dawson
dd6c7fdbc8 Add a QgsProject::ellipsoidChanged signal 2017-04-20 15:46:28 +10:00
Nyall Dawson
dce3c88b06 Add methods to clone annotations 2017-04-20 13:39:36 +10:00
Denis Rouzaud
13415370a5 sipify QgsIdentifyMenu 2017-04-19 18:06:39 +02:00
Denis Rouzaud
be9a51c42d sipify QgsMapLayerModel, QgsMapLayerProxyModel 2017-04-19 16:44:36 +02:00
Denis Rouzaud
0b0e8a6a89 move QgsFieldModel and QgsFieldProxyModel to core and sipify 2017-04-19 16:44:36 +02:00
Denis Rouzaud
bd4f7126e1 sipify QgsMapLayerCombobox, QgsFieldCombobox 2017-04-19 16:44:36 +02:00
Denis Rouzaud
7552d1cc64 sipify QgsFileWidget, QgsExternalResourceWidget 2017-04-19 15:20:08 +02:00
Denis Rouzaud
56aa36e4be sipify QgsRelation 2017-04-19 15:19:14 +02:00
Denis Rouzaud
51aa44de5f [sipify] fix enum combination 2017-04-19 15:03:31 +02:00
Denis Rouzaud
55860e8508 sipify QgsFieldExpressionWidget 2017-04-19 14:29:51 +02:00
Alexander Bruy
737906c55c [processing] add information message when feature skipped 2017-04-19 14:06:16 +03:00
Alexander Bruy
1016119468 [processing] prevent division by zero in random points in polygons fixed 2017-04-19 14:01:41 +03:00
Alexander Bruy
3b5b191730 [processing] fix parsing selection parameter in translate algorithm 2017-04-19 12:23:35 +03:00
Nyall Dawson
23de9a0224 Rework QgsRange to better handle temporal ranges
Make a new QgsTemporalRange template class for specific
temporal classes.

Add QgsDateTimeRange class.
2017-04-19 18:45:17 +10:00
Nyall Dawson
18c8c1fe36 Add is2d() method to QgsBox3d to determine whether box is 2d 2017-04-19 18:45:17 +10:00
Martin Dobias
24c5b0326f Rewrite addTopologicalPoints() and remove legacy snapping code + unit test 2017-04-19 11:24:20 +08:00
Nyall Dawson
c4ea048e5b New QgsRange template based class for storing interval ranges
QgsRange classes represent a range of values of some element
type. For instance, ranges of QDateTime might be used to
represent the ranges of timestamp ranges.

Ranges can indicate whether the upper and lower values are
inclusive or exclusive. The inclusivity or exclusivity of
bounds is considered when determining things like whether
ranges overlap or during calculation of range intersections.

Includes typedefs for QgsDoubleRange, QgsIntRange, QgsDateRange.
2017-04-18 12:19:42 +10:00
Nyall Dawson
33b6c41dd2 Merge pull request #4357 from nyalldawson/composer_layer_ref
Use weak layer references and loose matching for composer legend customisation
2017-04-18 12:06:38 +10:00
Nyall Dawson
3535ee2d55 Allow QgsDataProvider access through QgsMapLayer
Avoids having to cast to QgsRasterLayer/QgsVectorLayer before
accessing the common QgsDataProvider members
2017-04-18 11:14:01 +10:00
Nyall Dawson
87a670848b [sipify] Always add virtual keyword for overridden methods
sip often requires the virtual keyword to be present, or
it chokes on covariant return types in overridden methods
2017-04-18 11:14:01 +10:00
Nyall Dawson
1805a70952 Add missing docs 2017-04-18 10:27:05 +10:00
Nyall Dawson
023ad46525 sipify QgsLayerTreeLayer 2017-04-18 10:27:05 +10:00
Nyall Dawson
468c784f7e sipify QgsLayerTreeGroup 2017-04-18 10:27:05 +10:00
Nyall Dawson
0b36ee3aac Use weak layer references and loose matching for composer legend
customisation

Allows legend customisation to be restored when loading a composer
template

Fix #2738
2017-04-18 10:27:05 +10:00
Nyall Dawson
05b737c215 Add doxygen note linking QgsDistanceArea to QgsEllipsoidUtils 2017-04-18 10:23:09 +10:00
Nyall Dawson
5f1656b8e9 Move retrieval of lists of known ellipsoids to QgsEllipsoidUtils 2017-04-18 10:18:48 +10:00
Nyall Dawson
147bb7f1ed Move ellipsoid parameter retrieval to new QgsEllipsoidUtils class 2017-04-18 09:53:00 +10:00
Nyall Dawson
cc5b9bfe17 More QgsDistanceArea API cleanups and simplification
- setEllipsoidalMode() was removed. Ellipsoidal calculations are
now enabled whenever a valid ellipsoid() has been set. Set the
ellipsoid to 'NONE' to disable ellipsoidal calculations.

- ellipsoidalEnabled() was removed. Ellipsoidal calculations
are now enabled whenever a valid ellipsoid() is set. Check
willUseEllipsoid() to determine whether ellipsoidal
calculations will be performed.

- sourceCrs() and setSourceCrs() now always take and return
QgsCoordinateReferenceSystem objects. All string/ID based CRS
methods were removed.

- geographic() was removed. This was only used internally
in one place, so was replaced with sourceCrs().isGeographic() instead.

- some largely overlapping measurement functions were consolidated
2017-04-18 08:14:16 +10:00
Nyall Dawson
cdef0764b5 Use default copy constructors and assignment operators for QgsDistanceArea
There's no complex member variables here - the default implementations
should be fine (actually faster, since they won't require
recalculation of the derived parameters)
2017-04-18 08:14:16 +10:00
Nyall Dawson
53e1df45ab sipify QgsDistanceArea 2017-04-18 08:14:16 +10:00
Martin Dobias
7b202edf04 Remove QgsVectorLayer::snapPoint() and unused code in QgsSelectedFeature 2017-04-17 17:37:16 +08:00
Alexander Bruy
c749057f02 Merge pull request #4363 from alexbruy/passwordlineedits
[needs-docs] use QgsPasswordLineEdit in the master password dialog
2017-04-17 12:28:50 +03:00
Mathieu Pellerin
8c20d993f8 sipify qgscolorbutton and qgscolorrampbutton (#4365)
* get rid of params to get rid of warnings
2017-04-17 16:10:11 +07:00
Martin Dobias
316d9c3359 R.I.P. QgsSnapper and QgsMapCanvasSnapper
These classes have been replaced by more efficient and flexible classes
(see QgsPointLocator, QgsSnappingUtils, QgsMapCanvasSnappingUtils)
2017-04-17 17:08:48 +08:00
Mark Johnson
8b08285e90 added measureLineProjected and computeSpheroidProject to QgsDistanceArea 2017-04-17 19:06:30 +10:00
Alexander Bruy
85788151c2 doxymentation 2017-04-17 10:59:17 +03:00
Alexander Bruy
6bcc066d6f sipify QgsCredentials dialog 2017-04-17 10:59:17 +03:00
Martin Dobias
e73a52bb35 [FEATURE] New node tool implementation 2017-04-17 14:23:36 +08:00