58338 Commits

Author SHA1 Message Date
Alessandro Pasotti
cdf523e33d
Update python/core/auto_generated/qgsfield.sip.in
Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
2019-11-01 08:59:17 +01:00
Alessandro Pasotti
f20660c0dd field displayNameWithAlias
This adds another method to display field names with alias, this is to be used when
working close to the data structure (sql builder, expressions etc.) when the information
in the alias is sometimes fundamental to indentify what the field contains.

displayNameWithAlias is now used (insted of field name) in:

    expressions dialog
    query builder

The format is:

alias (field_name)
and, in case there is no alias:
field_name
2019-10-31 17:30:02 +01:00
Matthias Kuhn
9a9ab392f2
Merge pull request #32524 from m-kuhn/dxfEmptyExtentError
[dxf export] Bail out if extent could not be determined
2019-10-31 15:34:44 +01:00
Blottiere Paul
292008f637
Merge pull request #32386 from pblottiere/fix_crs_json
Use CRS in WMS GetFeatureInfo when info_format is in json Fixes #32326
2019-10-31 15:30:43 +01:00
Blottiere Paul
624ae0355f Remove unused parameter 2019-10-31 14:15:14 +01:00
Blottiere Paul
0a2b92ab22 Update sip 2019-10-31 14:15:14 +01:00
Blottiere Paul
b12896f5b9 Do not transform eometries in getfeatureinfo for json format 2019-10-31 14:15:14 +01:00
Blottiere Paul
2f79dcc057 Add option in json exporter to not transform geometries 2019-10-31 14:15:14 +01:00
Blottiere Paul
e3371fd9be Update sip 2019-10-31 14:15:14 +01:00
Blottiere Paul
55d1b8d68a Add doc 2019-10-31 14:15:14 +01:00
Blottiere Paul
ff19e61280 Update src/core/qgsjsonutils.h
Co-Authored-By: Alessandro Pasotti <elpaso@itopen.it>
2019-10-31 14:15:14 +01:00
Blottiere Paul
44b835fb93 Add test with underlying layer in 4326 2019-10-31 14:15:14 +01:00
Blottiere Paul
f3fbbcd488 Add unit test with layer in crs other than 4326 2019-10-31 14:15:14 +01:00
Blottiere Paul
a1ad183cc6 Set destination crs on json exporter 2019-10-31 14:15:14 +01:00
Blottiere Paul
2ca4aa6546 Add method to set destination crs on json exporter 2019-10-31 14:15:14 +01:00
Matthias Kuhn
2c65ac54ad
Merge pull request #32542 from Djedouas/patch-1
Changed Python inspect.getargspec()
2019-10-31 11:08:30 +01:00
Matthias Kuhn
1895db9495 Test fixes 2019-10-31 10:09:29 +01:00
Hugo Mercier
e86c2afb4e
Merge pull request #31648 from troopa81/fix_snaptocurrentlayer
Parallelize snap caching
2019-10-31 09:31:20 +01:00
Matthias Kuhn
3e5af46a16
Merge pull request #32540 from daniviga/master
[RPM] Update sip references in spec file
2019-10-31 09:23:12 +01:00
MUrban
3f33701da1 [feature] [mesh] fix #29326 Adding SIP_SKIP for datasetPlaybackInterval 2019-10-31 09:09:47 +01:00
MUrban
32cfedd074 [feature] [mesh] fix #29326 Adding playback function for mesh datasets 2019-10-31 09:09:47 +01:00
Djedouas
6d63bce6d2
Changed Python inspect.getargspec()
inspect.getargspec() is deprecated since python 3.
replacement with inspect.getfullargspec()

related to issue #32516
2019-10-31 09:00:20 +01:00
Matthias Kuhn
30cada8825
Merge pull request #32513 from m-kuhn/dxfNoNan
[dxf export] initialize PointZ with 0
2019-10-31 08:51:49 +01:00
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
Alessandro Pasotti
e8fa8edfc4 Typo 2019-10-30 17:46:27 +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
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
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