47120 Commits

Author SHA1 Message Date
Nyall Dawson
732d6bb475 Add convenience constructors to create QgsCircularStrings
Add constructors to create a circular string with a single arc:
- from 3 points on arc
- from 2 points and a center
2018-04-24 10:07:51 +12:00
Nyall Dawson
3f3b9515ef Add convenience constructor to create QgsLineString between two points 2018-04-24 10:07:51 +12:00
Nyall Dawson
fbf6b4a383 Add geometry method to calculate mid point on an arc from p1->p2 with given center
And improve some docstrings
2018-04-24 10:07:51 +12:00
Nyall Dawson
2d7632fc1a [oracle] Always check bounding box intersection when using filter rect
Because oracle sdo_filter sometimes returns results outside
the given filter (depending on the spatial index), and is
only designed for use as a fast "first-pass" filter.

From the Oracle docs:

"This operator performs only a primary filter operation..

The secondary filtering operation, performed by the SDO_RELATE operator,
can be used to determine with certainty if objects interact spatially."

Instead of using SDO_RELATE we can instead just do a bounding
box intersection inside QGIS if an exact intersection is not
required.

Fixes failing provider conformance test suite for oracle provider.
2018-04-24 09:13:18 +12:00
Nyall Dawson
ac7760be10 Indentation 2018-04-24 09:10:39 +12:00
Nyall Dawson
6c867c0dc5 [oracle] Fixes for edit tests (still disabled) 2018-04-24 09:10:39 +12:00
Nyall Dawson
92a80894ac [oracle] Add read-only support for curved geometry types
Previously these geometries were silently discarded

Fixes #12675, #16809

Sponsored by Open Spatial (http://www.openspatial.com)
2018-04-24 09:10:39 +12:00
Harrissou Sant-anna
a0c3844574 Replace Edit Nodes Item icon 2018-04-23 15:32:34 +07:00
Nathan Woodrow
53a384cba7
[FEATURE][needs-docs] Show data defined expected format in expression builder (#6839) 2018-04-23 13:32:51 +10:00
Nathan Woodrow
76b956a6a3
[FEATURE][needs-docs] Don't bail on first expression error (#6838) 2018-04-23 10:50:43 +10:00
Juergen E. Fischer
8e7486bf56 update_ts.sh: handle empty exclusion 2018-04-23 00:20:25 +02:00
Nyall Dawson
a2fbf5e1de [oracle] Fix some clazy warnings 2018-04-23 05:09:10 +10:00
Nyall Dawson
3032ab7472 [oracle] More code modernization 2018-04-23 06:26:59 +12:00
Nyall Dawson
2273dfacb6 [FEATURE][oracle] Allow restricting table list for a connection
to a specific schema

This allows a schema to be set in the connection properties for
an oracle db connection. If set, only tables within that schema
will be scanned and listed for the connection.

Previously the option existed to restrict the scan to tables
which belong to the user, but this option does not support
the use case where a connection must access tables from a different
user, and the default "scan everything" setting is too expensive
(since it often takes multiple minutes to perform, especially
when geometryless tables are shown).

Sponsored by Open Spatial (http://www.openspatial.com)
2018-04-23 06:26:59 +12:00
Nyall Dawson
31faa11bfb [oracle] More code modernization 2018-04-23 06:26:59 +12:00
Nyall Dawson
8d1b435255 [oracle] Address more clazy warnings 2018-04-23 06:26:59 +12:00
Nyall Dawson
529173f3fa [oracle] Fix clazy warnings in new connection dialog 2018-04-23 06:26:59 +12:00
Juergen E. Fischer
9242d2f960 remove plugin_template exclusion from translation updates (followup 605ef7d8294b6) 2018-04-21 14:32:28 +02:00
Nyall Dawson
4d61fb5e63 [oracle] Fix crash when adding a feature with missing attributes
to data provider
2018-04-21 21:21:28 +10:00
Nyall Dawson
a74414c0ae [oracle] Always fetch features with null goemetry unless feature rect is set
...to match behaviour of other providers
2018-04-21 21:21:28 +10:00
Nyall Dawson
dd2ff1587a [dbmanager][oracle] Add some missing imports 2018-04-21 17:07:34 +10:00
Blottiere Paul
d589ba7d7c Try to add cancel support for Oracle databases in dbmanager 2018-04-21 17:03:11 +10:00
Nathan Woodrow
b22121ac75
[FEATURE][needs-docs] Hyperlink functions to show help in builder (#6796) 2018-04-21 12:58:12 +10:00
Loïc Bartoletti
44c72a01f7 Typos and re indent 2018-04-21 08:16:14 +10:00
Loïc Bartoletti
f558b742cf Add tests 2018-04-21 08:16:14 +10:00
Loïc Bartoletti
2702a3092f Fix warn doc 2018-04-21 08:16:14 +10:00
Loïc Bartoletti
b09cbaeb98 sipify 2018-04-21 08:16:14 +10:00
Loïc Bartoletti
70d5536054 fix doc 2018-04-21 08:16:14 +10:00
Loïc Bartoletti
0bacf0ff16 - Add some methods in QgsVector3D
- Move QgsVector3D from 3d to core
- Use QgsVector3D instead of QVector3D
2018-04-21 08:16:14 +10:00
Loïc Bartoletti
9d649e738a Add skewLines intersection algorithm 2018-04-21 08:16:14 +10:00
Nyall Dawson
d87f75aa98 [processing] Unit tests for distance param widget wrapper 2018-04-20 22:44:28 +10:00
Nyall Dawson
91c1277035 [processing] Swap more QGIS and GDAL algorithm parameters to distance params 2018-04-20 22:44:28 +10:00
Matthias Kuhn
11735067d5
Merge pull request #6808 from m-kuhn/fixxxxes
Some minor code fixes
2018-04-20 14:37:39 +02:00
rldhont
f914762b46
Merge pull request #6793 from pblottiere/bugfix_owslib
[server][bugfix] Cleaning GetCapabilities response
2018-04-20 14:12:17 +02:00
Nyall Dawson
6358daad91 Fix broken translation string 2018-04-20 20:08:28 +10:00
Nyall Dawson
4a594d3f32 [FEATURE][processing] Add buttons to save/clear/copy log
In the algorithm execution dialog, this adds buttons to allow
users to save the current log (to text or HTML files), copy the
log contents to the clipboard, and clear the log.
2018-04-20 20:08:28 +10:00
Nyall Dawson
0dfb3c2d8c [processing] Use distance parameter for more algorithms 2018-04-20 18:27:00 +10:00
Nyall Dawson
1d0d22361c Smoother looking warning icon 2018-04-20 18:27:00 +10:00
Nyall Dawson
6412138259 Indentation 2018-04-20 18:27:00 +10:00
Nyall Dawson
6a2625664e [processing] Add dedicated "distance" parameter
This is a subclass of QgsProcessingParameterNumber, but specifically
for numeric parameters which represent distances. It is linked
to a parent parameter, from which the distance unit will
be determined, and is shown using a dedicated distance widget
within the processing parameters panel. This widget shows
the distance unit.

This avoids the confusion when running algorithms which
use distances where the unit depends on a layer or CRS parameter -
e.g. the distance parameter in the buffer algorithm gives
the distance in layer units... so now we can show those units
directly within the dialog. Hopefully this leads to less
user confusion and accidental "1000 degree buffers"!

Additionally - if the unit is in degrees, a small warning
icon is shown next to the parameter. The tooltip for this
icon advises users to reproject data into a suitable
projected local coordinate system.

Initially implemented for the native buffer and single
sided buffer algorithm only - but more will be added.

Fixes #16290
2018-04-20 18:27:00 +10:00
matteo
9107da368e [processing] fix missing import 2018-04-20 18:26:33 +10:00
Matthias Kuhn
62ca029849 QString() to QStringLiteral() 2018-04-20 10:19:50 +02:00
Matthias Kuhn
e6181e1a5b Adjust to const-correct renderer API 2018-04-20 10:18:39 +02:00
nirvn
f63d5ad9ac [FEATURE] Copy statistics panel content to clipboard button 2018-04-20 14:28:43 +07:00
Matthias Kuhn
5204fd35d2 QVariant also supports booleans 2018-04-20 09:08:14 +02:00
Matthias Kuhn
a75fa25517 Use range-based for loop 2018-04-20 09:08:14 +02:00
Matthias Kuhn
eb7f755429
Merge pull request #6813 from m-kuhn/constrenderers
Const correctness for feature renderers
2018-04-20 08:31:15 +02:00
nirvn
7d787980f5 followup a463858: fix interpol. data widget setValue function 2018-04-20 10:13:35 +07:00
Nyall Dawson
c70c78412c Fix string capitalization, HIG violations 2018-04-20 11:25:10 +10:00
Nyall Dawson
463a64651f Modernize code 2018-04-20 11:09:50 +10:00