34392 Commits

Author SHA1 Message Date
Nyall Dawson
c2a232848c Add provider test for postgres with compound key 2016-08-15 10:48:33 +02:00
Nyall Dawson
5407ae8a6a [FEATURE] Color dialog can be embedded in layer style panel
Now clicking color buttons inside the layer style panel causes
the color picker dialog to be opened inside the style panel itself
rather than as a separate dialog
2016-08-15 18:04:07 +10:00
Nyall Dawson
a2fe4c4f59 New method to find parent QgsPanelWidget for a widget 2016-08-15 17:56:21 +10:00
Nyall Dawson
5d30b5f3ef Merge pull request #3390 from nirvn/raster_properties_fix_qt5
fix crash when opening raster properties window under qt5
2016-08-15 14:58:11 +10:00
Nyall Dawson
297664631e [composer] Fix guide sizing under qt5 (fix #15432) 2016-08-15 13:47:36 +10:00
Nyall Dawson
42ebb4f7d7 Use panels for displacement renderer settings 2016-08-15 13:43:27 +10:00
Nyall Dawson
2d191f66a0 Implement move assignment operator for QgsExpressionContext 2016-08-15 12:00:11 +10:00
Nyall Dawson
786b77a157 Fix uninitialized members 2016-08-15 10:04:21 +10:00
Nyall Dawson
5f6dfaed38 Remove QgsGeometry pointers from QgsGeometryAnalyzer 2016-08-15 09:47:04 +10:00
Nyall Dawson
6d82cd63b6 Fix leak caused by missing virtual destructor 2016-08-15 09:02:30 +10:00
Nyall Dawson
2ca6992ca1 [oracle] Fix build warnings 2016-08-15 08:31:57 +10:00
Nyall Dawson
f9e10888cb [processing] Fix some potential errors in clip algorithm 2016-08-14 14:50:34 +10:00
Nyall Dawson
0f268bf27a [FEATURE][processing] New algorithm for translating (moving) points
Allows geometries to be shifted by a x/y displacement
2016-08-14 14:36:10 +10:00
Nyall Dawson
001ae44b67 [processing] If supported, use memory layers instead of shapefiles
when writing to a temporary result

Avoids truncation of field names and other format specific
limitations
2016-08-14 13:32:38 +10:00
nirvn
5a25c71eb6 fix crash when opening raster properties window under qt5 2016-08-13 13:41:31 +07:00
Alessandro Pasotti
a064c0a160 Stop the timer when the reply finish
This should fix a few reported and unreported issues
with false positive timeout errors.

Fixes: #12243

 (cherry-picked from ace9d2b0f661849106f0448189cb233710754f12)
2016-08-12 14:57:48 +02:00
Andrea Aime
1140437f55 Do not generate a ogc:Filter where a ogc:Expression is expected. Fixes #10076 and #11202 2016-08-12 12:44:02 +02:00
Denis Rouzaud
e2cacade1d Merge pull request #3375 from 3nids/movetoolcad
[FEATURE] Move feature now benefits from Advanced Digitizing
2016-08-12 11:36:30 +02:00
Denis Rouzaud
99ed790820 rename enum to avoid confusion 2016-08-12 11:04:29 +02:00
Alexander Bruy
915afcf8fa Merge pull request #3372 from anitagraser/patch-1
[processing] fixed failure to insert only one point in Densify geometries alg
2016-08-12 11:04:47 +03:00
Alexander Bruy
4ae7b6f8dd Merge pull request #3385 from nyalldawson/centrods
[processing] Rework centroid algorithm to handle non-polygon layers
2016-08-12 11:03:51 +03:00
Martin Dobias
be3c780f16 Make it work with Qt5 < 5.6 2016-08-12 00:01:59 +02:00
Nyall Dawson
e9423dc4dd [processing] Rework centroid algorithm to handle non-polygon layers
The existing polygoncentroids algorithm has been deprecated
(and hidden from the toolbox), and a new, generic centroids
algorithm added which works with lines and multipoints
2016-08-12 07:50:47 +10:00
Nyall Dawson
d0faca16a7 Merge pull request #3381 from nyalldawson/processing_layer
[processing] Create vector files using default dataset/layer options
2016-08-12 07:48:32 +10:00
Nyall Dawson
9bc61e77c7 [processing] Create vector files using default dataset/layer options
Fixes missing CRS when saving to GML (fix #14544)
2016-08-12 07:01:04 +10:00
Martin Dobias
b6d03209b9 Fix closest segment for points (#3383)
* Make closestSegment() behave as expected by QgsGeometry::closestSegmentWithContext

This fixes a bug that QgsPointLocator::nearestEdge() would return valid match even for point layers.

* Shortcut if using QgsPointLocator with a wrong layer type
2016-08-11 17:23:01 +02:00
Martin Dobias
46f7c644da Fix postgres pkey map in Qt5 (fixes #15223)
Switching from QVariant to QVariantList solves the underlying Qt issue:
- comparison of QVariantList objects works fine
- comparison of QVariantList objects wrapped in QVariant does not work

The extra wrapping of QVariantList into another QVariant seems unnecessary anyway,
so we may as well save a tiny bit of memory and cpu
2016-08-11 17:10:57 +02:00
Denis Rouzaud
7233d263a2 remove extra includes 2016-08-11 15:19:31 +02:00
Denis Rouzaud
0af7cd3206 remove old code in comment (old QgsFeatureId class and 32bit IDs) 2016-08-11 14:41:08 +02:00
Denis Rouzaud
6e86a9a0f7 debug output for QgsRelation::isValid() 2016-08-11 14:41:08 +02:00
Alexander Bruy
a72485cf47 Merge pull request #3380 from nyalldawson/processing
[processing] Offset curve follow ups
2016-08-11 13:21:54 +03:00
Nyall Dawson
5025c828e5 [processing] Expose buffer settings (cap/join style/mitre limit)
Also make fixed distance buffer correctly handle null geometries
(copy the row as a geometryless row)
2016-08-11 18:35:30 +10:00
Alexander Bruy
8a31576d3a Merge pull request #3379 from nyalldawson/processing
[FEATURE][processing] New algorithm for offsetting lines
2016-08-11 11:30:19 +03:00
Nyall Dawson
0a2b661ecb Make QgsGeometry::offsetCurve handle multi* geometries 2016-08-11 17:59:01 +10:00
Denis Rouzaud
af1fee525a Move feature now benefits from Advanced Digitizing
QgsMapToolMoveFeature now inherits QgsMapToolAdvancedDigitizing
this allows to specify distance, angles, complex and multiple moves at once
it is now a click and click operation (similarly to the rotate feature map tool): so it can be cancelled once enabled with the right click
2016-08-11 08:06:43 +02:00
Nyall Dawson
82f4a82c66 [FEATURE][processing] New algorithm for offsetting lines 2016-08-11 08:38:43 +10:00
Matthias Kuhn
7ee55a78f1 [pyqt5] Aliases for indistinguishable method overloads (#3099)
See
https://www.riverbankcomputing.com/pipermail/pyqt/2016-May/037500.html
2016-08-10 20:58:39 +02:00
Matthias Kuhn
3aff45cc13 Fix db_manager 2016-08-10 20:36:18 +02:00
Nyall Dawson
44d6d21a34 Merge pull request #3374 from nirvn/label_repeat_improvement
[pal] fix repeated labels on curved lines when label width > repeat distance
2016-08-11 04:13:43 +10:00
Matthias Kuhn
58ea21124e Streamline expression context generation (#3350)
* Save more data to QML

 * Virtual fields
 * Map tips
 * Display expression
 * Read only flag

* Streamline expression context generation

Whenever an object is able to generate an expression context it
implements the method createExpressionContext() declared in
QgsExpressionContextGenerator.

This makes a cleaner API and allows using QgsFieldExpressionWidget and
QgsDataDefinedButton from python because standard OO programming
approaches are used instead of callbacks and void pointers.

* Colorize output of doc and sip tests

* Fix build

* Fix sip complaints

* Fix rebase problems

* Workaround failing bindings test
2016-08-10 19:44:30 +02:00
Larry Shaffer
f3e90f1d5a [auth] Add missing auth system ui headers for external C++ apps 2016-08-10 07:25:31 -06:00
Juergen E. Fischer
38229d3ef0 creatensis.pl: exclude point release component from path 2016-08-10 15:05:49 +02:00
Harrissou Sant-anna
e3867832bb Remove duplicate example (#3360) 2016-08-10 14:45:34 +02:00
Jürgen Fischer
f38856e738 Merge pull request #3359 from jef-n/api-updates-v2
Replace V2 in API
2016-08-10 13:29:53 +02:00
Matthias Kuhn
4267a19658 Fix crash when clicking in empty relation editor 2016-08-10 13:19:27 +02:00
nirvn
fb346ecf4f fix repeated labels on curved lines when label width > repeat distance 2016-08-10 17:33:35 +07:00
Juergen E. Fischer
c24692cd5c update after slot renames (followup 4cfacf1) 2016-08-10 12:12:28 +02:00
Juergen E. Fischer
b08a9e7951 rename test images 2016-08-10 12:12:28 +02:00
Juergen E. Fischer
3f22a7a77f another scripts/replacev2.sh with minor manual fixes 2016-08-10 12:12:28 +02:00
Juergen E. Fischer
f2d6209e9e rename QgsAttributeTypeDialog::setWidgetV2Config & QgsAttributeTypeDialog::setWidgetV2Type 2016-08-10 12:12:28 +02:00