57973 Commits

Author SHA1 Message Date
Nyall Dawson
023ba1968e [processing] Drop precision of attribute check for create grid test results 2019-10-10 08:55:20 +10:00
Denis Rouzaud
16c0552787
fix building custom widgets 2019-10-09 21:31:33 +02:00
Denis Rouzaud
1d6d12876f
[custom widgets] add QgsAuthConfigSelect (#32178) 2019-10-09 20:48:22 +02:00
ThiesVanLoon
93a52b47f7 Bug fix resolving issue 32172
The 'upload' parameter value 'to_attr' should not involve a closing bracket

https://github.com/qgis/QGIS/issues/32172
2019-10-09 13:39:34 +02:00
Alessandro Pasotti
ffc5897c27
Merge pull request #32161 from elpaso/bugfix-gh32149-rangewidget-negative-integers
Fix range widget negative integers -> NULL
2019-10-09 08:57:09 +02:00
Nyall Dawson
6e26963908 Cleanup QgsMapLayerRenderer api
Make associated QgsRenderContext a base class member, since all
renderer subclasses require this
2019-10-09 16:36:18 +10:00
Nyall Dawson
8e58027512 Test mask 2019-10-09 16:36:18 +10:00
Nyall Dawson
dbd3544703 Add unit tests for raster rendering during staged render jobs 2019-10-09 16:36:18 +10:00
Nyall Dawson
f45540d175 Fix export to geopdf skips raster and mesh layers
Fixes #32148
2019-10-09 16:36:18 +10:00
Nyall Dawson
dadb90312f Fix API break, update test results which relied on layers with unknown CRS 2019-10-09 15:01:51 +10:00
Nyall Dawson
3112332227 Rename variable for clarity 2019-10-09 15:01:51 +10:00
Nyall Dawson
15cf2f035b Cleanup cursor handling 2019-10-09 15:01:51 +10:00
Nyall Dawson
828b63e8f4 Allow layer projection to be set via indicator icon click 2019-10-09 15:01:51 +10:00
Nyall Dawson
cae899aeb7 Don't show invalid CRS indicator for layers which are themselves
invalid

It's useless information which is usually fixed when setting the layer's
path to the correct one.
2019-10-09 15:01:51 +10:00
Nyall Dawson
cb06519d16 [api] Add API to indicate that individual layers may be loaded without any
CRS validation, regardless of the user's settings

This avoids hacks put in place in other parts of QGIS code or in plugins
to temporarily deactivate the CRS validation prompt, providing a supported,
stable method to indicate that when loading a particular layer no CRS
validation is required.
2019-10-09 15:01:51 +10:00
Nyall Dawson
71ddea9bd2 Fix QgsProject::defaultCrsForNewLayers() 2019-10-09 15:01:51 +10:00
Nyall Dawson
ffe66bff82 [needs-docs] Add option to take no action ("Leave as an unknown CRS") when
a layer is loaded which has no CRS

This is the new default behavior. It effectively defers the choice of CRS
from layer loading time to a later time which is convenient for users. E.g.
it no longer asks for CRS choice 100x when loading 100 files into QGIS at once.
(Effectively an application crash/hang... no one will sit through these 100 dialogs!)

The new behavior means there's no prompt (by default!) when loading these layers,
and instead the layers will be shown in the layer tree with an "unknown CRS"
indicator icon. They'll also be un-referenced, with coordinates from the layer
treated as purely numerically, non-earth values. I.e. the same behavior
as all layers get when a project is set to have no CRS.

The user can then resolve these in their own time, and by using convenient
shortcuts like highlighting multiple layers at once and then setting the CRS
for all these in a single action.

Fixes #19762, #27634, #24815  (and probably others)
2019-10-09 15:01:51 +10:00
Nyall Dawson
c43381139a Update/enhance unit tests for CRS validation 2019-10-09 15:01:51 +10:00
Nyall Dawson
b6596cde30 [needs-docs] Add an indicator icon for layers with an unknown/invalid CRS 2019-10-09 15:01:51 +10:00
Nyall Dawson
937415663f Don't force fallback to WGS84 for unknown layer CRSes
Because:

1. There's very little chance this is the correct choice for the layer
2. WGS84 use MUST be discouraged moving forward and the spatial community
needs to move away from this CRS (see https://www.opengeospatial.org/blog/3045
for justification)
3. It's better to fallback to an unknown CRS and correctly reflect
this ambiguity in the GUI for users
2019-10-09 15:01:51 +10:00
Nyall Dawson
58ec36cc3a Avoid a CRS detach when no validation function set 2019-10-09 15:01:51 +10:00
Nyall Dawson
6f6888ea7a Fix static variable prefix 2019-10-09 15:01:51 +10:00
Alessandro Pasotti
3b56da8252
Update tests/src/gui/testqgsrangewidgetwrapper.cpp
Co-Authored-By: signedav <david@opengis.ch>
2019-10-08 21:35:48 +02:00
Alessandro Pasotti
1a7294bc7f
Merge pull request #32166 from elpaso/bugfix-gh32118-remove-windows-qgz-T-attr
Remove T attribute on project QGZ files on windows
2019-10-08 21:35:16 +02:00
Even Rouault
a491117c88
Merge pull request #32162 from rouault/fix_29212_followup_revived
Application options: defer disabling of drivers after application restart (relates to #29212)
2019-10-08 20:34:39 +02:00
Even Rouault
d7f5bd0ea3
Application options: defer disabling of drivers after application restart (relates to #29212)
This is a follow-up of https://github.com/qgis/QGIS/pull/31772

Driver de-registration is now defered after application restart to avoid
any risk of potential crashes if a dataset using a disabled driver was
already in use.
2019-10-08 20:31:39 +02:00
Juergen E. Fischer
7f54c6acf0 debian packging [ci skip]:
* scripts/scandeps.pl: remove python3-autopep8 from INSTALL build
  dependency list (not an actually dependency anyway)
* include eoan in INSTALL
2019-10-08 20:27:47 +02:00
Nyall Dawson
2dad68f763 Fix memory layers cannot use non-EPSG CRS codes
Likely also fixes other bugs relating to use of non-EPSG authorities,
by making QgsCoordinateReferenceSystem::createFromString correctly
handle other authorities and avoid forced conversion of the identifier
to a number.
2019-10-09 03:48:16 +10:00
Nyall Dawson
3356460ce7 Fix crash after deleting report sections
Fixes #31302
2019-10-09 03:47:42 +10:00
Alessandro Pasotti
5aa44b79ed Remove T attribute on project QGZ files on windows
Fixes #32118
2019-10-08 17:30:39 +02:00
Even Rouault
cac47046c6
Merge pull request #32150 from rouault/ogr_provider_oapif
[OGR provider] Set of usability fixes for OAPIF/WFS3 datasets
2019-10-08 12:23:58 +02:00
Mathieu Pellerin
eaea8e0738
[expression] Fix is_layer_visible function not taking scale-based visibility into account (#32156) 2019-10-08 16:57:07 +07:00
Alessandro Pasotti
339531a7ed Fix range widget negative integers -> NULL
Fixes #32149

With tests
2019-10-08 11:17:56 +02:00
Jorge Gustavo Rocha
dcab584b2d Uh-oh misspelling fix 32117 2019-10-08 10:02:03 +10:00
Even Rouault
4762e6ae06
OGR sublayers: add a 'Description' column in the GUI
Some OAPIF/WFS3 datasets uses UUID as the layer name, so this is highly
impractical for the user. However they publish a user friendly name in
the TITLE metadata, so use that.
2019-10-07 19:46:36 +02:00
Even Rouault
aeaaabd8e3
[OGR provider] Optimize for OAPIF/WFS3 datasets
OAPIF/WFS3 datasets can be very slow, up to the point where this freeze QGIS
for hours, when they have a lot of collections (i.e. layers), because:
- the feature count is absent from collection metadata, so it
  would require a full scan of the collection
  See https://github.com/opengeospatial/ogcapi-features/issues/261
- the layer geometry type is absent from collection metadata.
  See https://github.com/opengeospatial/ogcapi-features/issues/262
  OGR curretly does one /items request to get the first features and guess
  the geometry type for it, but this approach is still too slow with datasets
  with a huge number of collections.
- the layer extent is generally present in the metadata, but some servers
  do not offer it, so if OLCFastGetExtent reports FALSE, return a world bbox
  instead of iterating over the whole collection

This is best used together with the latest enhancements & fixes of the
OAPIF driver of GDAL master (503585c5abe8c3f8fde428af8b3f511d4fa3359f)
or with their backport to GDAL 3.0 branch (https://github.com/OSGeo/gdal/pull/1910)
2019-10-07 17:08:11 +02:00
Even Rouault
4a86911148
splitSubLayerDef(): remove useless code path
Since 144e9a2e457d48ca7680d6bbc7a0c74b59a6b2ad, we no longer use
':' as the separator for the OGR sublayer informations. Consequently
we no longer need the hack that was needed to merged back Windows
paths like "C" : "\foo"
2019-10-07 17:08:11 +02:00
Juergen E. Fischer
cb0cc43722 fix 4cbcfbbd4 2019-10-07 17:00:49 +02:00
nirvn
13cd3d6597 [ui] Fix overview panel's extent polygon red-on-red visibility issue 2019-10-07 17:57:28 +07:00
nirvn
adc25ec8f7 [canvas] Clear cache to re-create selected feature highlight color 2019-10-07 15:47:30 +07:00
nirvn
06b8857e59 [projects] Add Q_PROPERTYs for backgroundColor and selectionColor 2019-10-07 15:47:30 +07:00
nirvn
3fefd137b7 Fix spelling, revert world_map.gpkg change (arg) 2019-10-07 15:47:30 +07:00
nirvn
607d4ed1ae [projects] Insure backgroundColorChanged / selectionColorChanged signals emitted only when color changes 2019-10-07 15:47:30 +07:00
nirvn
09d5307592 Use project signals to update canvas background and selection colors 2019-10-07 15:47:30 +07:00
nirvn
afd4269787 [canvas] Refresh canvas when the canvas (i.e. background) color is changed 2019-10-07 15:47:30 +07:00
nirvn
23cc659a05 [projects] Add signals for background color and selection color change 2019-10-07 15:47:30 +07:00
nirvn
6b1e31170e Add tests 2019-10-07 15:47:30 +07:00
nirvn
6bc83965a8 [projects] Serve selection color through a proper API 2019-10-07 15:47:30 +07:00
nirvn
5863f63ae1 [projects] Serve default canvas background color through a proper API 2019-10-07 15:47:30 +07:00
Nyall Dawson
0e003e4497 Drop mersenne-twister from analysis
This isn't exposed to stable api, is currently unused, and the std
library version should be preferred instead in any case
2019-10-07 10:33:28 +10:00