34214 Commits

Author SHA1 Message Date
Nyall Dawson
989d9864c5 [FEATURE][processing] New algorithm for single sided buffers 2016-08-17 06:44:04 +10:00
Nyall Dawson
298d047125 [FEATURE] Expression functions for offset_curve and single_sided_buffer
Especially useful with geometry generators!
2016-08-17 06:43:02 +10:00
Nyall Dawson
d008d31f38 Fix potential crash when using default expression parameters 2016-08-17 06:43:02 +10:00
Nyall Dawson
e3f0d3d88f [FEATURE] Expose GEOS single sided buffer through QgsGeometry
Makes it easy for PyQGIS code to perform a single sided buffer
operation
2016-08-17 06:43:02 +10:00
Nyall Dawson
616a80f48e Bump minimum GEOS version to 3.3 2016-08-17 06:43:02 +10:00
Stéphane Brunner
40b70a3ddf Merge pull request #3326 from pvalsecc/perf
Add heuristic to not simplify geometries for nothing
2016-08-16 14:03:27 +02:00
Patrick Valsecchi
5ee97adc16 Add heuristic to not simplify geometries for nothing
Tested with a release binary and Swiss OSM roads in PostGIS at several zoom
levels (the higher, the less features), values in ms (average over at
least 100 queries):

Level | Before | After | % improvement
-------------------------------------------
7     |  37    |  36   | 2.7
6     |  41    |  38   | 7.32
5     |  48    |  46   | 4.17
4     |  70    |  64   | 8.57
3     | 114    | 109   | 4.39

Not much improvement (I'm quite dispointed, here), but not much change in
the code.
2016-08-16 12:48:35 +02:00
Nyall Dawson
cd4bc8887b Vertically stack the color widget when in dock mode 2016-08-16 19:47:28 +10:00
Alexander Bruy
ce133102bf Merge pull request #3392 from nyalldawson/processing_temp
[processing] If supported, use memory layers instead of shapefiles
2016-08-16 11:39:50 +03:00
Matthias Kuhn
282f406e5b Disable builtin pyyaml package with python 3
It's not compatible
2016-08-16 09:54:16 +02:00
Tudor Bărăscu
112df2f7ad in readme: addded geopackage as data source + macOS naming (#3394)
Before this commit it was somehow implied that OS X is not an
UNIX platform when in fact it is. Also, starting with macOS Sierra,
Apple has dropped the naming of OS X towards macOS.
2016-08-16 08:17:31 +02:00
Nyall Dawson
22be7edadf Merge pull request #3398 from nyalldawson/grad
FEATURE: Open color dialog inside layer style panel
2016-08-16 15:35:43 +10:00
Nyall Dawson
a3149b14d9 Merge pull request #3396 from nyalldawson/displace_widget
Use panels for displacement renderer settings
2016-08-16 15:34:39 +10:00
Nyall Dawson
0f2723542b Python 3 update 2016-08-16 08:59:01 +10:00
Martin Dobias
c306438946 Fix cache size setting in options dialog
The bug disabled network caching for all new QGIS installs...
2016-08-16 00:07:46 +02:00
Nyall Dawson
50c35929d8 Make QgsVectorLayer uniqueValues/min/maxValue consider edits
Previously these methods would inconsistently handle the
edit buffer, eg uniqueValues would consider changed attributes
but not added features. Now uniqueValues, minimumValue and
maximumValue all consider both added features and changed
attribute values when performing their calculation.

The most noticable effect of this fix is that the unique
values widget now correctly shows values for features which
have been added but not yet committed to the provider.
2016-08-16 07:57:15 +10:00
Denis Rouzaud
251fffa4c6 fix layout 2016-08-15 13:58:32 +02:00
Denis Rouzaud
c800ab46e9 enable relation editor widget test on Qt5 2016-08-15 13:56:18 +02:00
Alexander Bruy
866617ccd3 Merge pull request #3393 from nyalldawson/processing_translate
[FEATURE][processing] New algorithm for translating (moving) points
2016-08-15 14:41:39 +03:00
Alessandro Pasotti
4e82767fcf Merge pull request #3366 from aaime/sld_filter_fix
Do not generate a ogc:Filter where a ogc:Expression is expected.
2016-08-15 13:06:12 +02:00
Denis Rouzaud
1cb48ddd65 Merge pull request #3384 from wonder-sk/fix-postgres-qt5
Fix postgres pkey map in Qt5 (fixes #15223)
2016-08-15 11:58:14 +02:00
Denis Rouzaud
ea4e5cb7c0 additional fields should be placed at the end 2016-08-15 10:48:39 +02:00
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