56281 Commits

Author SHA1 Message Date
Nyall Dawson
f74bd3454d Remove hardcoded heading 2019-07-08 12:41:17 +10:00
Nyall Dawson
ea3e0aa252 Fix totally inaccurate message always shows at the top of CRS
selector dialogs in totally inappropriate occasions
2019-07-08 12:41:17 +10:00
Alessandro Pasotti
34ad0b1dfd Do not reset ok to false when opening a GPKG
Fixes #30590
2019-07-08 09:59:07 +10:00
Nyall Dawson
ac0326a351 [API] Add useful PyQGIS additions to QgsSymbol
Adds:
- __len__ : returns number of symbol layers in symbol
- [ ] getter: returns a specific symbol layer, also allows negative indices to retrieve from end of symbol
- del [ ]: removes a specific symbol layer, also allows negative indices
- raise IndexError when an invalid symbol layer is requested
- allow iteration over symbol layers using
  for layer in symbol:
     print(layer.color())
2019-07-08 08:41:59 +10:00
Nyall Dawson
81e82ac1be Warn users when min zoom > max zoom in xyz connection properties
This results in a situation where no tiles can be loaded
2019-07-08 08:41:21 +10:00
Nyall Dawson
900d970a28 [xyz] Don't crash on empty tilesets, instead return empty images
This situation can validly arise e.g. if a user puts in a greater min
tile zoom level then is actually available
2019-07-08 08:41:21 +10:00
nirvn
9345e9ea1a Fix crash when triple-clicking on the vertex tool button (fixes #30577) 2019-07-07 14:00:05 +07:00
Nyall Dawson
1c51d34ca1 [FEATURE] Add "extract symbols" action to QGS/QGZ project file context menu in browser
Opens the style manager dialog showing all symbols, colorramps, text formats
and label settings from the selected project.
2019-07-07 16:38:33 +10:00
Nyall Dawson
be1af1aeb9 Fix qt warning 2019-07-07 16:38:33 +10:00
Nyall Dawson
be33cf2191 Fix test 2019-07-07 16:38:33 +10:00
Nyall Dawson
d737b4c986 Add tests 2019-07-07 16:38:33 +10:00
Nyall Dawson
08a985ac8f [FEATURE][processing] New algorithm "Create style database from project"
Extracts all symbols, color ramps, text formats and label settings from
the current project and stores them in a new style XML database
2019-07-07 16:38:33 +10:00
Nyall Dawson
f3dcd8211e Dox, comments 2019-07-06 12:36:54 +10:00
Nyall Dawson
87f10e140e Fix generation of enum class Pydocs 2019-07-06 12:36:54 +10:00
Nyall Dawson
4f5f6b5607 Add a generic method for adding style entities to a QgsStyle 2019-07-06 12:36:54 +10:00
Nyall Dawson
590d1aae9d [FEATURE][API] Visitor API for style entities
Adds a new visitor pattern API for creation of visitors which visit
all the style entities (symbols, color ramps, text formats, and
label styles) associated with different objects. Can be used on a
renderer, map layer, or project wide level.

E.g. on a project wide level, allows collection of ALL the style
symbols/color ramps/text settings inside a project, including those
in layouts or annotations!
2019-07-06 12:36:54 +10:00
Alessandro Pasotti
3a05312121
Merge pull request #30548 from elpaso/bugfix-gh30387-gpkg-project-relative-paths
Fix relative storage for GPKG projects
2019-07-05 14:21:12 +02:00
Alessandro Pasotti
3798c48654 Use TemporaryDirectory instead of QT (fails on Travis) 2019-07-05 13:33:27 +02:00
Alessandro Pasotti
3e21bcc186 Better comment about storage in path resolver 2019-07-05 13:33:27 +02:00
Alessandro Pasotti
75defad55c Remove warning 2019-07-05 13:33:27 +02:00
Nyall Dawson
accbb2d7f1 Show details about missing grids in transform selection dialog
Gives users advice about why a particular transform isn't available on their system
2019-07-05 05:53:13 +10:00
Nyall Dawson
9144e1c36d Don't disable items unavailable options in transform dialog, just make them
red and disable the ok button when they are selected

Allows for users to view the metadata and explanatatory text
for them
2019-07-05 05:53:13 +10:00
Nyall Dawson
7f491513e7 Further improvements to transform selection dialog
- Show area of use information, which gives users much more context
and clues for selecting the right transform from the list
- Fix missing scope and remarks for single operations
2019-07-05 05:53:13 +10:00
Nyall Dawson
63370d90db Fix unable to select new projections from datum transform dialog popup box 2019-07-05 05:53:13 +10:00
Matthias Kuhn
fef9bcf12e Code styling 2019-07-04 19:44:34 +02:00
Matthias Kuhn
9bd9cd0d2a Remove leftover include 2019-07-04 19:44:34 +02:00
Matthias Kuhn
e6c7e4a0e9 Allow compiling geonode provider without gui 2019-07-04 19:44:34 +02:00
Matthias Kuhn
738e560125 Fix vtable issues because missing key function 2019-07-04 19:44:34 +02:00
Alessandro Pasotti
b92012ccae Fix relative storage for GPKG projects
Fixes #30387
2019-07-04 11:23:56 +02:00
rldhont
cd53764b26
Merge pull request #30467 from rldhont/ogcutils-propertyislike-wildcard
QgsOgcUtils: The wildcard attribute of PropertyIsLike OGC Filter Element is not well replaced
2019-07-04 07:38:58 +02:00
rldhont
c402a34368
Merge pull request #30514 from rldhont/server-wmts-getcapabilities-operations
[WMTS] Fixing the WMTS GetCapabilities Get element children
2019-07-04 07:38:23 +02:00
Matthias Kuhn
60bcd6396b
Merge pull request #30272 from rduivenvoorde/geojsonRFC7946
Add option for RFC7946 (no crs) ogr GeoJSON creation
2019-07-03 19:49:51 +02:00
rldhont
52f129821f [Test] Add a expressionFromOgcFilter test with And, Or and PropertyIsLike with wildCard to PyQgsOgcUtils 2019-07-03 17:00:24 +02:00
rldhont
d83d8eef89 [Test] QgsOgcUtils: Add ILIKE with wildcard tests 2019-07-03 16:58:10 +02:00
rldhont
e56e446e50 [Test] QgsOgcUtils: Add simple test for PropertyIsLike wildCard
The test for a different wildcard is to complex and does not test the situation of the wild card at the end.
2019-07-03 16:58:10 +02:00
Richard Duivenvoorde
9191c05ecb Change tooltip and hint to documentation 2019-07-03 15:19:56 +02:00
Alexander Bruy
cd091f179b
Merge pull request #30531 from alexbruy/xyz-background
[processing] allow to set tiles background in the TilesXZY algorithms (fix #30490)
2019-07-03 13:54:27 +03:00
Alexander Bruy
ded25d5035
Merge pull request #30529 from alexbruy/color-wrapper
[processing] adjust color widget wrapper size policy to be consistent with others
2019-07-03 13:53:18 +03:00
Alexander Bruy
d3091e7d64 [processing][needs-docs] allow to set tiles background (fix #30490) 2019-07-03 12:15:47 +03:00
Alexander Bruy
2be8e5fa88 [processing] adjust color widget wrapper size policy to be consistent
with the all other wrappers
2019-07-03 12:09:19 +03:00
rldhont
72a708c999
Merge pull request #30511 from rldhont/fix-27262-with-tests
[Tests] Add to PyQgsOgcUtils some tests to interpret specific text as decimal in scientific notation
2019-07-03 10:21:21 +02:00
Nyall Dawson
379190d28b Lighten proj text color 2019-07-03 05:11:31 +10:00
Nyall Dawson
766e58a3a1 Move 'make default' option over OK in transform dialog 2019-07-03 05:11:31 +10:00
Nyall Dawson
2f0a7e0561 Add help button to transform selection dialog 2019-07-03 05:11:31 +10:00
Nyall Dawson
39724c2a48 When building on proj >= 6.2, show the full scope and remarks
for coordinate operations

Gives much more useful information to users to allow them to make
informed choices about suitable operations
2019-07-03 05:11:31 +10:00
Nyall Dawson
b9c9ad05bc [processing][needs-docs] Allow string parameters in models to be multi-line input style 2019-07-03 05:11:06 +10:00
rldhont
14883e9c27 [WMTS] Fixing the WMTS GetCapabilities Get element children
The ows Get element has a Constraint child that describe the way to do request to the service. In the case of WMTS, all are KVP.
2019-07-02 14:58:48 +02:00
rldhont
627db1a41b [Tests] Add to PyQgsOgcUtils some tests to interpret specific text as decimal in scientific notation
Fixed #27262
2019-07-02 12:58:08 +02:00
rldhont
5d5403c000 Add ORA-03114 support 2019-07-02 11:41:28 +02:00
rldhont
acc94ee28b Fix Oracle connection reset in case of ORA-12170: Connect timeout occurred
Oracle connection is never reset in case of ORA-12170: Connect timeout occurred.

The execution of request is only retry in case of getfeature and error 12170.

A fix has been done in PostgreSQL provider #9107
2019-07-02 11:41:28 +02:00