11769 Commits

Author SHA1 Message Date
Nyall Dawson
2d43dac0b5 Refine behavior of QgsGeometry equals tests
Before we had two checks - equals() and isGeosEqual() which
performed the exact same check (since equals() called the geos
equality test)

Since the geos equality test is a slow, topological test, which
considers two geometries equal if their component edges overlap,
but disregards ordering of vertices this is not always what we
want. There's also the issue that geos cannot consider m values
when testing the geometries, so two geometries with different
m values would be reported equal.

So, now calling QgsGeometry::equals performs a very fast, strict
equality test where geometries are only equal if the have exactly
the same vertices, type, and order.

And swap most code which was calling the slow geos test to instead
use the fast strict native test.
2018-01-05 09:59:22 +10:00
Nyall Dawson
13aa5211d1 Expand equality operators for QgsAbstractGeometry subclasses 2018-01-05 09:37:27 +10:00
Juergen E. Fischer
e271b647d4 translation string updates (incl. better translatable date time widget
help)
2018-01-04 22:49:30 +01:00
Nyall Dawson
66aaaadd67 Fix tracing still active when snapping is turned off
Otherwise tracing is disabled in the snapping toolbar, yet still
active on the canvas.
2018-01-04 19:29:36 +11:00
Nyall Dawson
b904731259 Respect transform context in point locator 2018-01-04 15:04:42 +11:00
Nyall Dawson
8f15cdf680 Respect transform contexts when tracing 2018-01-04 15:04:42 +11:00
Nyall Dawson
c94d26a5d5 Doxygen++ 2018-01-04 12:27:38 +11:00
Denis Rouzaud
bdf744ee3f
Merge pull request #5960 from 3nids/fix16657
fix date/time widget for field with time zones
2018-01-03 13:22:52 -04:00
Borys Jurgiel
cef2db9ae3
Merge pull request #5904 from borysiasty/pyQgisVersion
Make QGIS 2.99 compatible with 3.0 plugins by introducing PyQGIS API version
2018-01-03 18:09:24 +01:00
Denis Rouzaud
69cfdc4fcf rename static variables
since they're not really default values
2018-01-03 12:21:17 -04:00
Denis Rouzaud
919cbec7b2 add a bool in config to determine if it uses Qt::ISODate for field format
also fixes the fact that the display format of QDateTimeEdit only accepts string formats, so in case of Qt::ISODate use a default date/time with zmne zone
2018-01-03 11:28:05 -04:00
Denis Rouzaud
1710dc0587 fix date/time widget for field with time zones
this adds a new format of date/time to use Qt::ISODate format
the issue is that QDate::fromString does not recognize the t letter for the timezone in format
this a hack since any field_format needs to be tested if it corresponds to QgsDateTimeFieldFormatter::DEFAULT_ISO_FORMAT and in such case replace by Qt::ISODate instead of a format string
2018-01-03 10:01:53 -04:00
Denis Rouzaud
230e91c44b [date time widget] do not use minimumDateTime for NULL values
fixes issue when setting min and max values for the widget
2018-01-02 20:41:24 -04:00
Nyall Dawson
21296982e1 Link metadata widget to canvas
So that child widgets which can take properties from canvas
can have full functionality
2018-01-03 11:06:46 +11:00
Denis Rouzaud
39b183fef4 remove include and forward declarations left-overs 2018-01-01 20:09:46 -04:00
Denis Rouzaud
7237dab6ec [QDateTimeEdit] use QLineEdit::addAction
instead of custom tool button
this seems to solve many issues :)
kudos to @nyalldawson for pointing to it
and a happy new year!
2018-01-01 20:09:46 -04:00
Denis Rouzaud
86feed4955 [QgsDateTimeEdit] use special value text to handle NULL values
the widget now uses a special value text to display NULL rather than painting a QLineEdit on top

a press on the spinbox buttons (non-calendar mode) is catch to set to current date to avoid starting at the minimum date
2018-01-01 20:09:46 -04:00
luzpaz
626781a63a Typo fixes
+ added word to spelling.dat
2017-12-31 09:14:09 +11:00
Borys Jurgiel
4783af674e
Merge pull request #5952 from borysiasty/plugin-notification
[Plugin installer][needs-docs] Display notifications as an icon rather than a text
2017-12-28 09:37:59 +01:00
Borys Jurgiel
e69fa14455 [Plugin installer] Desaturate toolbar icons 2017-12-27 22:51:08 +01:00
Nyall Dawson
e7e37efed7
Merge pull request #5926 from nyalldawson/proc_dialog
[processing] Add api to show algorithm dialog, use dialog for history
2017-12-27 22:34:13 +11:00
Alexander Bruy
d58053d486 [processing] restore script collection creator (fix #17649) 2017-12-27 11:41:08 +02:00
Borys Jurgiel
63e5558297 [Plugin installer] Move the status bar label to the right and make it less verbose 2017-12-27 08:05:23 +01:00
Mathieu Pellerin
3b8905209e
[processing] harmonize and improve UI spacing 2017-12-27 10:50:52 +07:00
Borys Jurgiel
3a52412c20 [Plugin installer][needs-docs] Display an icon rather than a text in the status bar when new a plugin or plugin upgrade is available 2017-12-26 21:22:37 +01:00
Alexander Bruy
9fb386ac60
Merge pull request #5945 from medspx/ProcessingGrassFixDescV
[Processing] Fix description files for GRASS provider
2017-12-25 09:40:36 +02:00
Médéric RIBREUX
a540a93e24 Fix i.modis.qc description file 2017-12-23 10:24:52 +01:00
Nyall Dawson
2872f69e20 Reluctantly participate in the Americanization of the world 2017-12-23 18:48:03 +11:00
Nyall Dawson
c7e37e89eb [sipify] Correctly convert doxygen warning blocks to sphinx warnings 2017-12-23 18:48:03 +11:00
Nyall Dawson
87b8a370e9 Expand QgsCoordinateTransform docs 2017-12-23 18:48:03 +11:00
Alexander Bruy
1e06abb143
Merge pull request #5943 from borysiasty/zip-reloading
[Plugin Manager] Reload manager contents after installing a plugin from zip.
2017-12-23 09:22:32 +02:00
Nyall Dawson
6ac6939bf8 Sipify 2017-12-23 14:21:32 +10:00
Borys Jurgiel
c0b56a3a65 [Plugin Manager] Reload manager contents after installing a plugin from zip. Fixes #17626 2017-12-22 23:47:53 +01:00
Tom Kralidis
04b18f4d43 [bugfix] [MetaSearch] make gml:Envelope CRS explicit for spatial queries
(fixes #17739)
2017-12-22 16:21:25 -05:00
Tom Kralidis
e16dfe4ff0
MetaSearch: remove duplicate field 2017-12-22 09:21:39 -05:00
Nyall Dawson
4ff72de62e
Merge pull request #5858 from lbartoletti/segment_intersection
Segment intersection
2017-12-22 21:43:13 +11:00
Trashmonk
d908518c49 Update Rasterize.py 2017-12-21 17:55:02 +01:00
Trashmonk
82df4de88a Update Rasterize.py 2017-12-21 17:55:02 +01:00
Trashmonk
4fbea38439 Added transparency to areas with no vector data.
Originally the background colour defaulted to white with no transparency for areas without vector data. I have added an alpha channel to the geotiff and set it zero (full transparency) for areas with no vector data. This could be optional, in case the user wants a solid background.
2017-12-21 17:55:02 +01:00
nirvn
0a40a81151 [layouts] add icons for items and use those in the items panel 2017-12-21 10:33:24 +07:00
Nyall Dawson
b25681cc43 [needs-docs][processing] Double clicking a history entry shows
the algorithm dialog instead of immediately executing same alg

This allows users to edit the parameters before re-running,
which is a more common user-operation (e.g. changing the
input layer, changing a parameter value "oops, that buffer
was a bit too big....").

If someone wants to exactly re-run the algorithm without changes
it's only one extra click anyway...
2017-12-21 11:01:56 +10:00
Nyall Dawson
5f7aa45aab [needs-docs][processing] Add methods to show algorithm dialog
Adds processing.createAlgorithmDialog and
processing.execAlgorithmDialog. These methods can be used
to create and execute algorithm dialogs for a specified algorithm,
optionally pre-populated with a given set of (non-default) parameter
values.
2017-12-21 11:01:49 +10:00
Nyall Dawson
54910fc3ce Fix algorithm dialog window geometry save/restore 2017-12-21 10:43:49 +10:00
Nyall Dawson
ce28cf5087 Save algorithm results to dialog 2017-12-21 10:38:38 +10:00
Nyall Dawson
edcd058e32 [processing] Add a setParameters method to AlgorithmDialog
Allows pre-populating the dialog with non-default parameter
values.
2017-12-21 10:22:19 +10:00
Nyall Dawson
595b9812ce [processing] Implement a todo (set layer param's wrapper values) 2017-12-21 10:04:54 +10:00
Borys Jurgiel
8c62a7cac2
Merge pull request #5916 from borysiasty/no_colon
[Plugin installer] Remove trailing colon if it's a very end of the message
2017-12-20 20:21:02 +01:00
Alexander Bruy
45859beec4
Merge pull request #5923 from borysiasty/processing_groups
[processing] Fix group id of GDAL algorithms.
2017-12-20 15:06:46 +02:00
Matthias Kuhn
f5a650f978
Followup 9a5435f: Fix sip files 2017-12-20 12:10:33 +01:00
Borys Jurgiel
ecb9611b00 Fix group id of GDAL algorithms. Follows up 53bc147dca00 2017-12-20 12:07:32 +01:00