58269 Commits

Author SHA1 Message Date
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
David Signer
46280fb36f avoid double check 2019-10-08 09:29:22 +02:00
David Signer
fdbc630c53 tests for datetime widget regarding focus and null value representers 2019-10-08 08:43:05 +02:00
David Signer
7b4401e343 widget initialization minor fix 2019-10-08 07:50:05 +02:00
David Signer
8592046e66 do not trigger editing finished in inFocus event like it does in outFocus event
function docs in header
2019-10-08 07:40:37 +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
David Signer
896f26ada3 use displayCurrentDate in clear for the clear button and for the setDateTime initialization it overwrites the value with the null value representation by calling displayNull after 2019-10-07 17:36:50 +02:00
David Signer
37a2765289 go to the end of the lineEdit content, otherwise it cannot be set to the null representation value 2019-10-07 17:35:52 +02:00
David Signer
878e6e8d78 check if null instead of the value of the lineEdit 2019-10-07 17:27:08 +02:00
David Signer
1df5213da6 if the lineEdit contains the Null Representation it should replace the text with the current date 2019-10-07 17:20:47 +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
Matthias Kuhn
ea510e83ef
Update python/plugins/db_manager/db_plugins/plugin.py
Co-Authored-By: Alessandro Pasotti <elpaso@itopen.it>
2019-10-07 09:18:34 +02: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
Nyall Dawson
442282224a Avoid use of too new CMAKE VERSION_GREATER_EQUAL 2019-10-07 10:33:20 +10:00
Alexandre Neto
54d3c64c19 Update tests 2019-10-07 09:07:45 +10:00
Alexandre Neto
28b24bda51 Better approach for preferredFormat 2019-10-07 09:07:45 +10:00
Alexandre Neto
6918f230b8 Checks is gpkg is available for writing 2019-10-07 09:07:45 +10:00
Alexandre Neto
9f3ed88145 Makes GPKG prefered input format for OGR algs #Fixes 29097 2019-10-07 09:07:45 +10:00
Nyall Dawson
2a13e8a289 Fix build warnings 2019-10-07 09:02:13 +10:00
Harrissou Sant-anna
64e2f426ad Display the label's background Size Y DD button
for regular geometric background shape when setting text format
2019-10-07 07:59:17 +10:00
Nyall Dawson
d5749f8713 Deprecated QgsGeometry::createPolylineFromQPolygonF and
QgsGeometry::createPolygonFromQPolygonF

These were internal details which should never have been exposed
to public API
2019-10-07 07:03:34 +10:00
Nyall Dawson
61cb466101 Optimise QgsGeometry::asQPolygonF 2019-10-07 07:03:34 +10:00
Nyall Dawson
8f40c8d1c5 Add QgsLineString::fromQPolygonF 2019-10-07 07:03:34 +10:00