50211 Commits

Author SHA1 Message Date
Martin Dobias
cef3395e6e Add SIP_NO_FILE to the alg header 2018-09-13 11:46:29 +02:00
Martin Dobias
4a0669714b [FEATURE] Snap geometries algorithm
Makes sure that any two vertices of the vector layer are at least at distance given by the threshold value.
The algorithm moves nearby vertices to one location and adds vertices to segments that are passing around other
vertices within the threshold. It does not remove any vertices. Also, it does not modify geometries unless
needed (it does not snap coordinates to a grid).

This algorithm comes handy when doing vector overlay operations such as intersection, union or difference
to prevent possible topological errors caused by numerical errors if coordinates are very close to each other.

After running the algorithm some previously valid geometries may become invalid and therefore it may be useful
to run Fix geometries algorithm afterwards.
2018-09-13 11:46:29 +02:00
Blottiere Paul
f99b2db674
Merge pull request #7860 from pblottiere/filter_2
Expression from WFS 2.0 filters
2018-09-13 11:19:17 +02:00
Peter Petrik
79dc991806 fix strings in dialogs 2018-09-13 10:45:36 +02:00
Peter Petrik
f1358a4b1a add option to save qgis project file locally when saving to postgres failed 2018-09-13 10:45:36 +02:00
Juergen E. Fischer
d1ae9b073d fix windows build and some warnings 2018-09-13 10:19:55 +02:00
Blottiere Paul
5fd9501ad9 More unique_ptr 2018-09-13 08:04:34 +01:00
Blottiere Paul
bae996c8ad Const correctness 2018-09-13 08:04:34 +01:00
Blottiere Paul
9cc1a8c385 Add unique_ptr in nodeIsBetweenFromOgcFilter 2018-09-13 08:04:34 +01:00
Blottiere Paul
65d50cd528 Add unique_ptr in nodeFunctionFromOgcFilter 2018-09-13 08:04:34 +01:00
Blottiere Paul
694af1cce0 Add unique_ptr in nodePropertyIsNullFromOgcFilter 2018-09-13 08:04:34 +01:00
Blottiere Paul
5ccb16734c Add unique_ptr in nodeNotFromOgcFilter 2018-09-13 08:04:34 +01:00
Blottiere Paul
b57b9d7f84 Add unique_ptr in nodeLiteralFromOgcFilter 2018-09-13 08:04:34 +01:00
Blottiere Paul
180d6b317f Add unique_ptr in nodeSpatialOperatorFromOgcFilter 2018-09-13 08:04:34 +01:00
Blottiere Paul
0d1da7dfbe Add unique_ptr in nodeBinaryOperatorFromOgcFilter 2018-09-13 08:04:34 +01:00
Blottiere Paul
23d2df264a Remove unused attribute 2018-09-13 08:04:34 +01:00
Blottiere Paul
129461f83b Update error messages with prefix according to WFS version 2018-09-13 08:04:34 +01:00
Blottiere Paul
76a98cadd8 Rename class 2018-09-13 08:04:34 +01:00
Blottiere Paul
a99b520114 Add documentation 2018-09-13 08:04:34 +01:00
Blottiere Paul
38fc046636 Update sip binding 2018-09-13 08:04:34 +01:00
Blottiere Paul
052819f483 Add unit test for WFS 2.0 2018-09-13 08:04:34 +01:00
Blottiere Paul
6a188214f2 Add more node methods 2018-09-13 08:04:34 +01:00
Blottiere Paul
edfa4017eb Add new class to build expression from WFS filter 2018-09-13 08:04:34 +01:00
Matthias Kuhn
cbb0e76520
Merge pull request #7873 from m-kuhn/avoidCrash
Check layer pointer for validity
2018-09-13 08:09:37 +02:00
Matthias Kuhn
9e40a78a55
Merge pull request #7875 from m-kuhn/avoidCrashSnapToGrid
Fix crash when adding feature to non-spatial layer
2018-09-13 07:51:36 +02:00
Nyall Dawson
d3ee0f9668 [ux] Make tag combobox in symbol selector non-editable
There doesn't seem to be any reason to support edits here!
2018-09-13 12:00:52 +10:00
Loïc Bartoletti
08dfeab817 add myself to the map 2018-09-13 07:38:07 +10:00
Nyall Dawson
6935027ead [processing] Fix API break in widget wrapper
Fixes #19820
2018-09-13 05:40:39 +10:00
Denis Rouzaud
efed091270 [locator] do not skip less than 3 chars when using prefix
you might really be looking for it, using the prefix makes it clear enough
2018-09-13 05:39:08 +10:00
Blottiere Paul
98a4bd3030
Merge pull request #7867 from tudorbarascu/fix_tests
fix qgz test project
2018-09-12 19:50:09 +02:00
Denis Rouzaud
3b1b41f391 add qgsEnumMap to list all entries (int, string) of enums 2018-09-12 11:38:54 -04:00
Denis Rouzaud
827cfbc4df fix conversion warning 2018-09-12 11:38:54 -04:00
Matthias Kuhn
2182e2d9aa Fix crash when adding feature to non-spatial layer 2018-09-12 17:24:27 +02:00
Matthias Kuhn
561586f740 Check layer pointer for validity 2018-09-12 16:59:13 +02:00
Tudor Bărăscu
a0e8be590a fix qgz test project
from qgis 3.1 to qgis 3.3 the qgz project lost the relation reference

While reporting issues on the bug tracker I noticed that the test project
lost it's relation. I recreated the qgz file.
2018-09-12 13:23:51 +03:00
Nyall Dawson
d7fb5f959f Fix Travis build 2018-09-12 16:22:44 +10:00
Nyall Dawson
010c2f455c Fix model setData implementation, allow renaming symbols through model 2018-09-12 16:22:44 +10:00
Nyall Dawson
d7edeac379 Make style model decoration icons size responsive
We hack the model a bit here, but as much as possible avoid bleeding
view properties into the model API.

So we use a QObject property ("icon_size") to specify icons sizes
for the model to generate. This is set on instances
of the model to indicate the required sizes for decorations in all
views connected to the model, and allows the model to have size responsive icons.

By using a QObject property we avoid having public GUI/view related API within
the model, and mostly avoid view related properties contaminating the pure model,
yet still have pixel-perfect symbol renders for the required view icon sizes.
2018-09-12 16:22:44 +10:00
Nyall Dawson
28836d2d60 hi-dpi friendly style manager icons 2018-09-12 16:22:44 +10:00
Nyall Dawson
68c0d7f4e1 Unit tests for style proxy model smart group filter 2018-09-12 16:22:44 +10:00
Nyall Dawson
95d65ae861 Add python safe addSmartgroup method, unit tests for smart groups 2018-09-12 16:22:44 +10:00
Nyall Dawson
c41af120a0 Remove addSmartGroup from Python bindings -- it causes a crash in sip
and CANNOT be made functional
2018-09-12 16:22:44 +10:00
Nyall Dawson
adc31bb8a0 Fix test on Travis 2018-09-12 16:22:44 +10:00
Nyall Dawson
c5ab5891e0 Add a QAbstractItemModel for showing the entities within a QgsStyle object
- also adds QgsStyleProxyModel which handles filtering of entities
- lots of unit tests
- new signals in QgsStyle for when symbols/tags/etc change (with tests)
2018-09-12 16:22:44 +10:00
Geoff Kimbell
cb0b335a95 [FEATURE][processing] Add custom OPTIONS to contour algorithm (#7834) 2018-09-12 04:36:06 +10:00
Martin Dobias
318946a08a Use outline only indicator icon 2018-09-11 15:48:46 +02:00
Martin Dobias
4756f3ed81 Use setFlags() in QgsMapLayer when reading style from xml 2018-09-11 15:48:46 +02:00
Martin Dobias
b8197ed3b8 [FEATURE] Layer tree view indicator for non-removable (required) layers 2018-09-11 15:48:46 +02:00
Martin Dobias
602b3e9dff Add QgsMapLayer::flagsChanged() signal 2018-09-11 15:48:46 +02:00
Martin Dobias
9d22389070 Fix connection to GPS using serial port
It was impossible to start GPS live tracking when connecting via a serial port rather than gpsd.

QSerialPort in Qt5 does not support Unbuffered open mode and will just fail (around line 545):
https://github.com/qt/qtserialport/blob/5.11/src/serialport/qserialport.cpp

This was not a problem in QGIS 2.x / Qt4 where we used QextSerialPort which did not have such test.
2018-09-11 08:38:12 +02:00