57790 Commits

Author SHA1 Message Date
Matthias Kuhn
dbc80e9a53 Update src/providers/grass/CMakeLists.txt 2019-09-17 08:55:25 +10:00
Matthias Kuhn
e8a66a740a Add dependency on UI if providers are compiled with gui 2019-09-17 08:55:25 +10:00
Even Rouault
e9fdb9cfa3 [OGR provider] Disable OSM_USE_CUSTOM_INDEXING to fix loading of some .osm.pbf files (fixes #31062) 2019-09-17 08:54:05 +10:00
rldhont
4823054019 Define an enum for predefined WMS Dimension names 2019-09-16 22:52:32 +02:00
Even Rouault
ae013b0de3
Merge pull request #31811 from rouault/add_pgdump
QgsVectorFileWriter: add PGDUMP output format (fixes #31421)
2019-09-16 20:27:15 +02:00
Even Rouault
cbc86ffc1a
Processing: disable 'open output layer' for write-only formats such as PGDUMP (relates to #31421) 2019-09-16 18:25:16 +02:00
Even Rouault
ec993f2a96
GUI Save as vector layer: disable 'add output layer to canvas' for write-only formats such as PGDUMP (relates to #31421) 2019-09-16 18:24:56 +02:00
Even Rouault
c4c46ae099
QgsVectorFileWriter: add PGDUMP output format (fixes #31421) 2019-09-16 18:24:03 +02:00
Matthias Kuhn
4b0a330e06 Add error log messages 2019-09-16 18:22:37 +02:00
Denis Rouzaud
f13e0ebc86
[locator] fix sorting of grouped results (#31797)
when they do not arrive in a sequence
2019-09-16 16:14:51 +02:00
Even Rouault
f9ca96ea85
Merge pull request #31772 from rouault/fix_29212
[GDAL provider] Be more robust to driver being disabled after provider creation (fixes #29212)
2019-09-16 15:10:38 +02:00
Harrissou Sant-anna
eedb3df427 Connect the bookmark editor dialog to the user manual (#31795) 2019-09-16 19:56:53 +07:00
Juergen E. Fischer
2797e46e8f api doc archive is 7z now
[ci skip]
2019-09-16 13:26:08 +02:00
Denis Rouzaud
12ad5fe870
remove duplicated code with single method for QgsVectorLayer::min and max values (#31790) 2019-09-16 13:18:00 +02:00
Matthias Kuhn
fe81e0776a
Merge pull request #31760 from m-kuhn/fixSymbolScopeMissing
Add symbol scope to legend item
2019-09-16 12:49:09 +02:00
Etienne Trimaille
4a8f489722
use a single unittest in DB Manager SQL window 2019-09-16 10:52:35 +02:00
Matthias Kuhn
1b69a99028
Merge pull request #31791 from daniviga/grass78-fedora31
[RPM] Fedora 31 will ship GRASS 7.8
2019-09-16 10:04:18 +02:00
Matthias Kuhn
f347ae709a Add scope 2019-09-16 10:03:39 +02:00
Matthias Kuhn
f4980e47f0 Properly add symbol_label 2019-09-16 09:48:35 +02:00
Borys Jurgiel
e3334b1e65
Merge pull request #31784 from borysiasty/plugininstaller_fix_31783
[Plugin Installer] Only force http icon protocol for http-based repositories
2019-09-16 09:24:04 +02:00
Daniele Viganò
644cc25214
[RPM] Fedora 31 will ship GRASS 7.8 2019-09-16 09:10:08 +02:00
Borys Jurgiel
1aa102815c [Plugin Installer] Only force http icon protocol for http-based repositories. Fixes #31783 2019-09-16 08:30:47 +02:00
nirvn
aa9c53a897 [categorized renderer] When color ramp is set to random, randomize color
of appended categories to pre-existing list when hitting the
classify button (fixes #31579)
2019-09-16 11:45:56 +07:00
Nyall Dawson
393e623ba7 Fix corrupted expressions in filter indicator tooltips 2019-09-16 13:24:23 +10:00
Alexander Bruy
993c6e7b5f [processing] export vector layers which use VSI mechanism (fix #29001) 2019-09-16 11:56:28 +10:00
Alexander Bruy
4861114f2e [processing] force onLayerChanged() call in the
QgsProcessingMapLayerCombobox constructor to setup signals and
feature selection handling with initially selected layer (fix #30636)
2019-09-16 11:55:35 +10:00
Alessandro Pasotti
04f0879ed5 Processing editing in place: handle constraints
Fixes #31634
2019-09-16 10:41:58 +10:00
Fran
3b5ee1ad20 Added myself as a translator 2019-09-16 10:33:38 +10:00
Aleix Pol
ad6465e21d Use CC-BY-3.0
It is unclear to AppStream whether MIT is acceptable for metadata, and it gets
rejected on flathub, use Creative Commons instead:
https://creativecommons.org/licenses/by/3.0/

See https://github.com/hughsie/appstream-glib/issues/320
2019-09-16 06:04:12 +10:00
Even Rouault
e6e829c244
Merge pull request #31768 from rouault/fix_31213
[Postgresql Provider] Fix crash in discoverRelations() on invalid layer (fixes #31213)
2019-09-15 19:02:37 +02:00
Even Rouault
2c71035d62
Merge pull request #31766 from rouault/rasterfilewriter_fixes
QgsRasterFileWriter: assorted set of fixes (might be related to refs #30937)
2019-09-15 15:11:54 +02:00
Even Rouault
7d90d62d2a
Merge pull request #31771 from rouault/fix_30644
Raster export: fix issues with multiband raster and GeoPackage (fixes #30644)
2019-09-15 15:11:33 +02:00
Even Rouault
65359bc7ea
Merge pull request #31764 from rouault/fix_invalid_free_with_ellipsoid_utils
Make sure ellipsoid parameter and definition caches are cleared before app exit (related to #31762)
2019-09-15 14:56:45 +02:00
Even Rouault
2fb45b08e3
[GDAL provider] Be more robust to driver being disabled after provider creation (fixes #29212)
This is still quite a dangerous practice, and this commit is more a band-aid
than a definitive fix.
In case a GDALDataset would hold and use a pointer to the GDALDriver that has
created it (which is not common in GDAL drivers though), crash would occur.
Safer but more involved fixes could be:
- to prevent disabling a driver that is in use
- to post-pone the effect of driver disabling to application restart, or when
  the last dataset using the driver has been closed
2019-09-15 01:11:36 +02:00
Even Rouault
9525deb962
Raster export: fix issues with multiband raster and GeoPackage (fixes #30644)
- Fix guess of appropriate nodata value when comparing stat minimum value and
  output data type minimum value (copy & paste issue)
- When exporting to GeoPackage, do not promote Byte to a larger type, as this
  is unsupported by GeoPackage
- When determining if the output extent is included in the source extent,
  use a tolerance to avoid being to sensitive to rounding issues.
- QgsRasterBlock::setIsNoData() and setIsNoDataExcept(): initialize mData to
  zero when there is no nodata value, to avoid uninitialized/old memory to
  be used when reading bits().
2019-09-15 00:40:03 +02:00
Even Rouault
c3fba1b84b
QgsRasterFileWriter: assorted set of fixes (might be related to refs #30937)
- Lack of error checking on destination provider creation (in saveAsImage mode)
- Wrong computation of number of blocks if dimension is exactly a multiple of
  the block size
- Lack of error checking when writing blocks
- Slow computation of non-premultiplied r,g,b values, and inappropriate use
  of memcpy()
2019-09-14 22:19:24 +02:00
Even Rouault
79cb35166b
[Postgresql Provider] Fix crash in discoverRelations() on invalid layer (fixes #31213) 2019-09-14 22:15:26 +02:00
Even Rouault
97fab83eea
[WFS provider] Re-inject custom query parameters in DCP HTTP URLs (fixes #31026)
Since f1b59876344bf0c0f066c81bf8ef73ef25365023, we honour DCP HTTP endpoints
exposed in GetCapabilities.
But some (all?) servers fail to add in those endpoints the custom query parameters
the user might have injected in the GetCapabilities URL.
So re-add them manually.
2019-09-14 16:45:06 +02:00
Even Rouault
58a246008b
test_provider_wfs.py: fix tests so they pass with PROJ 6 2019-09-14 16:33:02 +02:00
Even Rouault
fdcca14f65
Make sure ellipsoid parameter and definition caches are cleared before app exit (related to #31762)
This should apply to both PROJ < 6 and >=6 builds.

Fixes the following error reported by Valgrind
```
==5848== Invalid read of size 4
==5848==    at 0xE5E4195: internal_pj_ctx_get_errno (in /home/even/proj/install-proj-master/lib/libproj.so.15.2.0)
==5848==    by 0xE5E16AE: internal_pj_free (in /home/even/proj/install-proj-master/lib/libproj.so.15.2.0)
==5848==    by 0xE5F4E78: internal_proj_destroy (in /home/even/proj/install-proj-master/lib/libproj.so.15.2.0)
==5848==    by 0x7F961A7: QgsProjUtils::ProjPJDeleter::operator()(PJconsts*) (qgsprojutils.cpp:76)
==5848==    by 0x7D2D44C: std::unique_ptr<PJconsts, QgsProjUtils::ProjPJDeleter>::~unique_ptr() (unique_ptr.h:239)
==5848==    by 0x7D2C9BD: QgsCoordinateReferenceSystemPrivate::~QgsCoordinateReferenceSystemPrivate() (qgscoordinatereferencesystem_p.h:94)
==5848==    by 0x7D2D6FA: QExplicitlySharedDataPointer<QgsCoordinateReferenceSystemPrivate>::~QExplicitlySharedDataPointer() (qshareddata.h:165)
==5848==    by 0x7CDFA77: QgsCoordinateReferenceSystem::~QgsCoordinateReferenceSystem() (qgscoordinatereferencesystem.cpp:233)
==5848==    by 0x55CC0AF: QgsEllipsoidUtils::EllipsoidParameters::~EllipsoidParameters() (qgsellipsoidutils.h:39)
==5848==    by 0x7D8C40B: QHashNode<QString, QgsEllipsoidUtils::EllipsoidParameters>::~QHashNode() (qhash.h:149)
==5848==    by 0x7D8C43F: QHash<QString, QgsEllipsoidUtils::EllipsoidParameters>::deleteNode2(QHashData::Node*) (qhash.h:536)
==5848==    by 0x9BE3B78: QHashData::free_helper(void (*)(QHashData::Node*)) (in /opt/qt59/lib/libQt5Core.so.5.9.1)
==5848==    by 0x7D8C466: QHash<QString, QgsEllipsoidUtils::EllipsoidParameters>::freeData(QHashData*) (qhash.h:576)
==5848==    by 0x7D8CCED: QHash<QString, QgsEllipsoidUtils::EllipsoidParameters>::~QHash() (qhash.h:254)
==5848==    by 0xA60E369: __cxa_finalize (cxa_finalize.c:56)
==5848==    by 0x77BE742: ??? (in /home/even/qgis/QGIS/build/output/lib/libqgis_core.so.3.9.0)
==5848==    by 0x4010DF6: _dl_fini (dl-fini.c:235)
==5848==    by 0xA60DFF7: __run_exit_handlers (exit.c:82)
==5848==    by 0xA60E044: exit (exit.c:104)
==5848==    by 0xA5F4836: (below main) (libc-start.c:325)
==5848==  Address 0x45db80e0 is 0 bytes inside a block of size 136 free'd
==5848==    at 0x4C2F440: operator delete(void*) (vg_replace_malloc.c:586)
==5848==    by 0xE5F5A3A: internal_proj_context_destroy (in /home/even/proj/install-proj-master/lib/libproj.so.15.2.0)
==5848==    by 0x7F9617A: QgsProjContext::~QgsProjContext() (qgsprojutils.cpp:48)
==5848==    by 0xA60E5FE: __call_tls_dtors (cxa_thread_atexit_impl.c:155)
==5848==    by 0xA60DF26: __run_exit_handlers (exit.c:40)
==5848==    by 0xA60E044: exit (exit.c:104)
==5848==    by 0xA5F4836: (below main) (libc-start.c:325)
==5848==  Block was alloc'd at
==5848==    at 0x4C2E709: operator new(unsigned long, std::nothrow_t const&) (vg_replace_malloc.c:387)
==5848==    by 0xE5E445E: internal_pj_ctx_alloc (in /home/even/proj/install-proj-master/lib/libproj.so.15.2.0)
==5848==    by 0x7F96151: QgsProjContext::QgsProjContext() (qgsprojutils.cpp:39)
==5848==    by 0x7F970A9: __tls_init (qgsprojutils.cpp:31)
==5848==    by 0x7F970F3: TLS wrapper function for QgsProjContext::sProjContext (in /home/even/qgis/QGIS/build/output/lib/libqgis_core.so.3.9.0)
==5848==    by 0x7F96186: QgsProjContext::get() (qgsprojutils.cpp:57)
==5848==    by 0x7D86B13: QgsEllipsoidUtils::definitions() (qgsellipsoidutils.cpp:351)
==5848==    by 0x7D863FE: QgsEllipsoidUtils::ellipsoidParameters(QString const&)::{lambda()#1}::operator()() const (qgsellipsoidutils.cpp:173)
==5848==    by 0x7D87EE1: void std::_Bind_simple<QgsEllipsoidUtils::ellipsoidParameters(QString const&)::{lambda()#1} ()>::_M_invoke<>(std::_Index_tuple<>) (functional:1531)
==5848==    by 0x7D87BC5: std::_Bind_simple<QgsEllipsoidUtils::ellipsoidParameters(QString const&)::{lambda()#1} ()>::operator()() (functional:1520)
==5848==    by 0x7D879A2: void std::__once_call_impl<std::_Bind_simple<QgsEllipsoidUtils::ellipsoidParameters(QString const&)::{lambda()#1} ()> >() (mutex:706)
==5848==    by 0x10A6AA98: __pthread_once_slow (pthread_once.c:116)
==5848==    by 0x7D863CE: __gthread_once(int*, void (*)()) (gthr-default.h:699)
==5848==    by 0x7D8787F: void std::call_once<QgsEllipsoidUtils::ellipsoidParameters(QString const&)::{lambda()#1}>(std::once_flag&, QgsEllipsoidUtils::ellipsoidParameters(QString const&)::{lambda()#1}&&) (mutex:738)
==5848==    by 0x7D86476: QgsEllipsoidUtils::ellipsoidParameters(QString const&) (qgsellipsoidutils.cpp:174)
==5848==    by 0x7E8D572: QgsMapSettings::setEllipsoid(QString const&) (qgsmapsettings.cpp:322)
==5848==    by 0x6A4E5F1: QgsMapCanvas::QgsMapCanvas(QWidget*) (qgsmapcanvas.cpp:143)
==5848==    by 0x5110841: QgisApp::QgisApp(QSplashScreen*, bool, bool, QString const&, QString const&, QWidget*, QFlags<Qt::WindowType>) (qgisapp.cpp:803)
==5848==    by 0x417DB9: main (main.cpp:1339)
==5848==
```
2019-09-14 15:19:02 +02:00
nirvn
738ced6488 Avoid qt warning when opening the raster properties dialog
(while visiting the function, remove use of  my* variable
names)
2019-09-14 15:38:26 +07:00
Matthias Kuhn
a8199c376a Add symbol scope to legend item
Fix #31756
2019-09-14 09:27:19 +02:00
Peter Petrik
cdd3a55e9e fix #30766, sip crash for QgsHighlight 2019-09-14 06:38:25 +10:00
Matthias Kuhn
0d26d64b2e Use range based for loop 2019-09-14 06:30:45 +10:00
Matthias Kuhn
ecdc0ea57a
Merge pull request #31393 from seralra96/fix_31292
Improve validation for QgsRelationAddDlg Fixes #31292
2019-09-13 21:12:44 +02:00
rldhont
b18cbc7d31 Use unique_ptr for QgsVectorLayerServerProperties in QgsVectorLayer 2019-09-13 20:37:44 +02:00
rldhont
ea0c1740d9 [Server] Define QgsWms::QgsRenderer::dimensionFilter method 2019-09-13 20:37:44 +02:00
rldhont
635e245143
Merge pull request #31746 from Gustry/combo_sql
fix combobox ID not having correct checked state when we update a SQL layer
2019-09-13 19:05:16 +02:00
Alessandro Pasotti
784fd1affd
Merge pull request #31741 from elpaso/bugfix-gh31732-datasource-manager-tabs-resize
Resize not-focused tabs for datasource and options dlgs
2019-09-13 18:27:45 +02:00
Etienne Trimaille
37803810eb
fix combobox ID not having correct checked state when we update a SQL layer 2019-09-13 17:46:38 +02:00