63240 Commits

Author SHA1 Message Date
Alexander Bruy
072c76747c fix calculating raster size in the TIN and IDW algorithms to maintain
accurate pixel size (fix #31970)
2020-05-29 11:26:22 +03:00
Andrea Giudiceandrea
d9aecd496a Add test for Jan 1st CE in TestQgsDateTimeEdit 2020-05-29 08:28:34 +10:00
Andrea Giudiceandrea
add71e84aa Avoid triple conversion for Date/Time field
In QgsDateTimeFieldFormatter::representValue(), QDate and QDateTime fields don't need a triple conversion (QVariant->toString->fromString->toString) where a double conversion (QVariant->QDateTime->toString) is enough.
2020-05-29 08:28:34 +10:00
Andrea Giudiceandrea
f86f476f2b Set the minimum datetime widget value to 1 CE instead of 100 CE
The lower limit was set to Jan 1st 100 CE only because QDateTimeEdit::setMinimumDateTime doesn't support dates < '0100-01-01'.
This limitation doesn't affect QDateTimeEdit::setDateTimeRange so it is possible to allow entering dates also from 1 CE to 99 CE which previously where not allowed.
2020-05-29 08:28:34 +10:00
Alexander Bruy
d2f72e87af update SIP bindings 2020-05-29 08:14:46 +10:00
Alexander Bruy
2fbc2b8025 allow to export favorite symbols from style manager (fix #27315) 2020-05-29 08:14:46 +10:00
Even Rouault
fcf6203cb8 QgsDelimitedTextSourceSelect: add a limitation to the number of fields
Set to 10000 by default. Can be overriden through settings.

This is only for the preview in the source select dialog. (Attribute
table performs badly for much less columns)

Related to #36392
2020-05-28 20:42:32 +02:00
Even Rouault
644a5647db QgsDelimitedTextFile: fix parsing of files with CR end of line
Fixes #36392
Fixes #21976
Fixes #17190

We are obliged to do 'at hand' parsing due to QT not handling CR-only
end of lines.
As we are at it, also limit each line to 1 MB to avoid potential denial
of service (which was what close to what happened here before the CR-only
parsing fix)

Add tests for parsing CR-only end of lines, and exercising the at-hand
buffering logic
2020-05-28 20:42:32 +02:00
Julien Cabieces
a261a069bd Fixes #34982 : set sql filter on the right row for postgres datasource 2020-05-29 03:58:38 +10:00
José de Paula Rodrigues Neto Assis
97e0651555 Be more lenient on accepting SAGA versions
Even though SAGA explicitly does't follow semver conventions, there are
advances, and not all changes on their part break the API. Since the
user is already warned in big letters that versions different from 2.3
are unsupported, in beta status, we've changed the requirement for SAGA
"beta" from 7.3 to everything in version 7.
2020-05-29 03:57:15 +10:00
Julien Cabieces
090604c5e2 Fixes #36796 : Don't modify project when snapping utils object is modified 2020-05-29 03:50:57 +10:00
Julien Cabieces
b0424c39aa Fixes #36054 : Fix loss precision when rect filtering in virtual layer 2020-05-29 03:49:50 +10:00
Nyall Dawson
98603b7866 [plugins] When a user clicks the "Reload all repositories" button
manually in the plugin manager, then force a reload of the repositories
and don't rely on cached copies of the repo manifest

Otherwise it's not possible to force a refresh on certain types of
plugin repositories where it's not possible to modify the Cache-Control
attribute of the repo

Note that to avoid unnecessary server load, we still use cached
copies during startup and by default. It's only when a user explicitly
hits the "Reload all repositories" button that we force a non-cached
fetch.

Fixes #34351
2020-05-29 03:47:39 +10:00
Nyall Dawson
4eb10f2990 Dox 2020-05-29 03:45:30 +10:00
Nyall Dawson
5c1aa4fce2 [layouts] Prevent GeoPDF export if map items do not have a valid CRS set
And show a friendly message explaining this

Fixes #35242
2020-05-29 03:45:30 +10:00
Nyall Dawson
8632bf6805 Only show vector layers in GeoPDF export vector attributes tree view
This option only makes sense for vector layers, so filter out rasters
and other layer types
2020-05-29 03:45:30 +10:00
Nyall Dawson
1022f3fed6 [layouts] Allow checking all or unchecking all items in the geopdf
export options dialog at once

Right click on the list shows a "Select All"/"Deselect All" option

Fixes #32281
2020-05-29 03:45:30 +10:00
Nyall Dawson
601a717174 Import 3d python library by default in console 2020-05-29 03:44:55 +10:00
Nyall Dawson
1f835dfa9a [3d] Expose 3d algorithms provider to Python
Otherwise this provider cannot be initialized from standalone Python
scripts

Fixes #36661

Also cleanup 3d sip generation by correctly defining SIP_NO_FILE
in headers we don't want to expose, so that the sip_include script
can do its magic
2020-05-29 03:44:55 +10:00
Alexander Bruy
0496ce52fc
Merge pull request #36774 from alexbruy/raster-sld
improve logic for choosing style type when exporting raster style (fix #35944)
2020-05-28 12:27:19 +03:00
Alexander Bruy
f2ea6e8b04 use selected filter to determine style type (QML or SLD) (fix #35944) 2020-05-28 08:50:46 +03:00
Nyall Dawson
c1dd894917 Update test image 2020-05-28 11:49:59 +10:00
Nyall Dawson
23396b7c86 [symbology] Don't force rasterized output when exporting point pattern fills
This avoids the force conversion to a raster based pattern which currently occurs
when exporting maps/layouts to a vector format (e.g. PDF). The raster pattern
results in considerable quality loss, and the tiling edges of the raster brush
can sometimes be seen in outputs.

Additionally, fixes render corrupt when marker subsymbols have data defined properties
which affect the marker shape, such as data defined rotation or sizes

Refs #16100 (still needs fixing for line fill symbols)
2020-05-28 11:49:59 +10:00
Richard Duivenvoorde
b0e71a822e Add askToSaveMemoryLayers to ini file template so it has a default and is searchable 2020-05-28 08:34:54 +10:00
Even Rouault
535c25317f QgsVectorLayerSaveAsDialog: make it work with custom CRS
The current approach was based on a srsid, that that might be unset for custom
CRS. So store a full QgsCoordinateReferenceSystem object internally and use
that for exchanges with QgsProjectionSelectionWidget

Consequence: we need to deprecate the "long crs()" method, and replace it
by a "QgsCoordinateReferenceSystem crsObject()" one. I'm not particularly
happy with the name but the existing one was not very well named...

Mark also the QgsVectorLayerSaveAsDialog( long srsid, ... ) constructor as
deprecated

Fixes the use case of https://github.com/qgis/QGIS/issues/34471#issuecomment-586181977
2020-05-28 08:17:55 +10:00
Blottiere Paul
b76f39e3c4 Try to reactivate tests for legend and json export 2020-05-28 08:16:34 +10:00
Julien Cabieces
7fa4bab138 Remove useless qWarning message 2020-05-28 04:54:06 +10:00
Even Rouault
e0beec4dfb [Server, WCS] Fix several non compliance errors in CoverageDescription output
There were several non-compliance in the CoverageDescription output to a
DescribeCoverage request. The corrected result has been validated against the
OGC WCS 1.0.0 schema.

Fixes #36504
2020-05-27 19:09:30 +02:00
Harrissou Sant-anna
807d25e043 Hide the frame around the symbol edit rule dialog 2020-05-27 18:58:42 +10:00
Even Rouault
97bac49841 [WMS provider] Detection of SERVICE=WMTS in url must be case insensitive
As mandated by OGC specs.

Fixes #36659
2020-05-27 10:41:36 +02:00
Alessandro Pasotti
2a70569a2c Merge pull request #36733 from elpaso/bugfix-36262-json-export-respect-use-layer-ids
Server: respect "use layer ids" option in json getfeatureinfo
2020-05-27 10:09:09 +02:00
Nyall Dawson
923072d9e9 Multiselect combobox UX tweaks:
- left clicking in the combo box opens the dropdown, just like a standard
combo box
- right clicking on an unexpanded combo shows the correct context menu
for the widget, instead of the default line edit context menu
2020-05-27 18:01:01 +10:00
Nyall Dawson
4f7fcb3089 [processing] When adding a Vector Features input to a model, default the input to accepting
sources with geometry instead of leaving the filter blank
2020-05-27 18:01:01 +10:00
Vincent Cloarec
1df077a950
MDAL update 0.6.0 (#36703)
MDAL update 0.6.0
2020-05-27 09:07:40 +02:00
Nyall Dawson
0ea7187ae4 [processing] Fix 'selected features only' is disabled by default
Fixes #36753
2020-05-27 13:29:12 +10:00
Even Rouault
11f6d53429 test_provider_wfs.py: improve unit test to demonstrate that we use Transaction endpoint for transactions (relates to #34307) 2020-05-27 08:18:38 +10:00
Even Rouault
0d6d626ec1 Fix crash on "Open Directory" entry of contextual menu of recent projects
Fixes #31630

I couldn't reproduce a crash on my platform (Linux, Ubuntu 16.04, gnome classic),
but this smells pretty much like the issue of #30210 fixed per PR #30210

So using QgsFocusKeeper hoping that it would solve the issue for people affected
2020-05-27 08:17:33 +10:00
Even Rouault
f393b13da7 WFS provider: add more details to log message when creation of temporary SpatiaLite cache fails
Should help in the diagnosis of issue #36545
2020-05-26 22:29:41 +02:00
Alessandro Pasotti
3ac41e3287 No initial underscores in variables 2020-05-27 04:41:56 +10:00
Even Rouault
160c6bfc9d QgsFileWidget: use QgsFocusKeeper added per PR #36722 2020-05-27 04:40:56 +10:00
Alexander Bruy
59282b0b0f
quote project file path when passing it to the crash handler (fix #25532)
quote project file path when passing it to the crash handler to avoid
issues if path contains spaces (fix #25532)
2020-05-27 04:40:04 +10:00
Alexander Bruy
abe8481a1e fix layout of the QgsHistogram widget to prevent histogram collapsing on
resizing (fix #25197)
2020-05-27 04:38:48 +10:00
Alexander Bruy
1a7f25c0f1 also fix worldfile name when saving map canvas 2020-05-27 04:35:15 +10:00
Alexander Bruy
8f21a6d2f3 use completeBaseName for world file when exporting layouts (fix #34523) 2020-05-27 04:35:15 +10:00
Audun Ellertsen
dc8c3d9141 Avoid leaking sqlite3_stmt on errors 2020-05-27 04:32:10 +10:00
Nyall Dawson
57519e9faa [layouts] Don't refresh the map canvas multiple times during atlas exports
Fixes #30144
2020-05-27 04:31:11 +10:00
Matthias Kuhn
38673f5a7f
Merge pull request #36200 from olivierdalang/self_snap
[feature] Snapping also snaps to the currently digitised feature
2020-05-26 14:54:26 +02:00
Alexander Bruy
2a2fe1e095
Merge pull request #36731 from alexbruy/relief-results
check return value from the QgsRelief and notify user about errors (fix #17452)
2020-05-26 15:02:16 +03:00
Alessandro Pasotti
d859bb9530 More getfeatureinfo test updates 2020-05-26 12:03:08 +02:00
Even Rouault
bcea438f4c
Merge pull request #36722 from rouault/fix_30210
QgsBinaryWidgetWrapper: fix focus-related crash
2020-05-26 11:35:50 +02:00