58525 Commits

Author SHA1 Message Date
Matthias Kuhn
ec244b3338 Since 3.10.1 2019-10-31 08:42:15 +01:00
Matthias Kuhn
d6ca284634 Avoid type conversion for QCOMPARE 2019-10-31 08:40:53 +01:00
Nyall Dawson
6e03a97f63 Copyright 2019-10-31 14:59:39 +10:00
Nyall Dawson
994f45470a Dox++ 2019-10-31 14:59:39 +10:00
Nyall Dawson
8b7447a3c2 When reading a project, fallback to default view extent if canvas
extents are not set
2019-10-31 14:59:39 +10:00
Nyall Dawson
f602ed3751 Add API to allow setting the default view extent for a new project
Allows a QgsProject created using QGIS api only (i.e., not via the desktop
application) to specify the default extent which should be visible when
that project is opened.

Straight from the dox:

Sets the default view extent, which should be used as the initial map extent
when this project is opened.

\warning When a project is opened in the QGIS desktop application and saved, individual
map canvases will store their own previous view extent as custom project properties. Reloading
this saved version of the project will trigger the canvases to restore their individual last view
extents. Accordingly, in the QGIS desktop application, this setting only forms a default, initial
view used when the project is opened for the very first time.
2019-10-31 14:59:39 +10:00
Nyall Dawson
65490ab13e Move QgsProject map scales settings to a new class, QgsProjectViewSettings
attached to QgsProject

And deprecate old getters/setters

The goal here is to create a place for project view related settings (e.g.
map scales, default extent, possibly future things like a fixed project
maximum area of interest, etc). Currently these are all handled in an
ad-hoc way, e.g. sometimes in project custom keys, sometimes inside
xml saved and restored by map canvases. But both these approaches break
important use case for plugins, e.g. creating a project from scratch
which will zoom to a desired extent on load. That's totally impossible
in the current API, unless you resort to extremely fragile manual
xml crafting...
2019-10-31 14:59:39 +10:00
Nyall Dawson
8c8d76387c Doxy 2019-10-31 12:19:59 +10:00
Nyall Dawson
13e9dd727f Deprecate old QgsRasterResampler interface, and add a new interface
which doesn't require pre-allocation of a temporary QImage

The existing interface is very inefficient for the bilinear resampler,
because it requires allocation of a temporary QImage just to pass
the desired height and width to the resampler...
2019-10-31 12:19:59 +10:00
Daniele Viganò
e168ca5dfa
[RPM] Update sip references in spec file 2019-10-30 22:53:49 +01:00
Matthias Kuhn
e8ebef4c02 Use range-based for loops 2019-10-31 05:06:41 +10:00
Matthias Kuhn
4ad2f0adbc Fix crash with invalid postgres provider
Crash is triggered by opening the postgres vector layer properties with a not-yet-known CRS.
2019-10-31 05:05:35 +10:00
Matthias Kuhn
1886d70dca Typo 2019-10-30 19:10:19 +01:00
Alessandro Pasotti
e689a65bb3
Merge pull request #32322 from elpaso/server-wfs3-timefilter-dimensions
[feature] Server wfs3 timefilter dimensions
2019-10-30 18:29:49 +01:00
Matthias Kuhn
de2dd6f0c6 Fix copy items from value map configuration
QAbstractItemView internally uses the KeyPress signal, so in order to
make sure our code takes precedence we need to react to the same signal.
Apparently it's not enough to trust Qt that the KeyReleased is always
triggered after a KeyPress.

Fix #32256
2019-10-30 17:51:56 +01:00
Alessandro Pasotti
e8fa8edfc4 Typo 2019-10-30 17:46:27 +01:00
Alessandro Pasotti
576a9176e7 PG: Skip broken connections (for a while) 2019-10-30 17:19:00 +01:00
Matthias Kuhn
312c869268 Use class enum 2019-10-30 16:23:36 +01:00
Matthias Kuhn
1bfa34a046 Typo 2019-10-30 16:15:27 +01:00
Matthias Kuhn
473473d8c3 [dxf export] Bail out if extent could not be determined
E.g. because no layers are given
2019-10-30 16:04:07 +01:00
Julien Cabieces
340651b2f7 fix spell error 2019-10-30 14:59:11 +01:00
Alessandro Pasotti
3ba5770e7d Fix test case and add some more BSTS checks
BSTS=better safe than sorry
2019-10-30 14:41:34 +01:00
Alessandro Pasotti
42e48726b6 Code layout typos 2019-10-30 14:41:34 +01:00
Alessandro Pasotti
73beaca45a Address PR comments 2019-10-30 14:41:34 +01:00
Alessandro Pasotti
9dda18e643 Resolve mssing layers loosely by name and provider 2019-10-30 14:41:34 +01:00
Alessandro Pasotti
4dad6a0a70 Auto load missing layers from Postgis 2019-10-30 14:41:34 +01:00
Alessandro Pasotti
c6d4b9886a Load dependency layers automatically when possible 2019-10-30 14:41:34 +01:00
Alessandro Pasotti
64949dc227 Check vector layer widget broken dependencies 2019-10-30 14:41:34 +01:00
Alessandro Pasotti
6a7719f9be
Merge pull request #32512 from elpaso/fix-mxe-builds
Fix MXE builds
2019-10-30 14:40:12 +01:00
Matthias Kuhn
6746fec749
Merge pull request #31966 from m-kuhn/fix28914
Fix move selected to top
2019-10-30 14:29:10 +01:00
Alessandro Pasotti
d1be51f467 Stupid vim and your hard tabs! 2019-10-30 13:27:34 +01:00
Matthias Kuhn
3a063d4135 Test attribute table "selected on top" 2019-10-30 12:50:16 +01:00
Matthias Kuhn
ae18cae4f8 Fix crash on exit
Global static QHash can crash on exit
2019-10-30 12:25:49 +01:00
Julien Cabieces
2cb391aeda remove useless signal 2019-10-30 12:00:05 +01:00
Alessandro Pasotti
933db2a706 Fix build warning about a template 2019-10-30 11:53:14 +01:00
Alessandro Pasotti
43e092f412 Fix tests and remove unnecessary code
also correctly down-up cast date(time) when needed
2019-10-30 11:53:14 +01:00
Alessandro Pasotti
76f4c96dc6 Remove unused code (leftover) 2019-10-30 11:53:14 +01:00
Alessandro Pasotti
2bffe50081 Update src/app/qgssourcefieldsproperties.cpp 2019-10-30 11:53:14 +01:00
Alessandro Pasotti
a3ad8ef63d Update src/app/qgswmsdimensiondialog.h
typo
2019-10-30 11:53:14 +01:00
Alessandro Pasotti
776c804839 Apply suggestions from code review
Co-Authored-By: Blottiere Paul <blottiere.paul@gmail.com>
2019-10-30 11:53:14 +01:00
Alessandro Pasotti
663628f2b3 Server WMS/OAPIF dimensions, add a tooltip about support 2019-10-30 11:53:14 +01:00
Alessandro Pasotti
5ea32bce18 Server OAPIF time queries: handle infinity 2019-10-30 11:53:14 +01:00
Alessandro Pasotti
72efe7ca4f Server: adapt infinity filters to QgsRange API 2019-10-30 11:53:14 +01:00
Alessandro Pasotti
358c814722 Server OAPIF temporal extent 2019-10-30 11:53:14 +01:00
Alessandro Pasotti
c9df6aee25 Server OAPIF time filter: check validity
Raise if empty
2019-10-30 11:53:14 +01:00
Alessandro Pasotti
3a10f69d80 Server OAPIF use QgsRange classes for intervals
with full test coverage for single values and ranges,
supports time, datetime and string fields.
2019-10-30 11:53:14 +01:00
Alessandro Pasotti
07bb6b77e1 Server OAPIF datetime filter support
with full test coverage for single values and ranges,
supports time, datetime and string fields.
2019-10-30 11:53:14 +01:00
Alessandro Pasotti
a1bfc163ef Server OAPIF, better styles and API HTML output 2019-10-30 11:53:14 +01:00
Alessandro Pasotti
595807171d Server: datetime basic filter support for OAPIF 2019-10-30 11:53:14 +01:00
Alessandro Pasotti
6112da45f6 Server OAPIF datetime support 2019-10-30 11:53:13 +01:00