Even Rouault
f68f288dea
Merge pull request #7145 from rouault/fix_18596
...
[OGR provider] When editing a GeoJSON file, close and re-open the file at end of editing session (fixes #18596 )
2018-06-02 17:32:12 +02:00
Even Rouault
754018a477
[OGR provider] When editing a GeoJSON file, close and re-open the file at end of editing session ( fixes #18596 )
2018-06-02 12:00:15 +02:00
Even Rouault
7e2ca8f61b
Merge pull request #7144 from rouault/fix_18976
...
[Postgres provider] Speed up feature insertion when pkid column is not set (fixes #18976 )
2018-06-02 11:27:27 +02:00
Even Rouault
a9a8fbdb17
[cleanup] use for range based loop
2018-06-01 23:09:32 +02:00
Even Rouault
2ed200a8f2
Merge pull request #7142 from rouault/fix_18996
...
QgsSvgCache::svgAsPicture(): make sure the returned picture is not shared (fixes #18996 )
2018-06-01 22:33:49 +02:00
Even Rouault
cc25727a18
[Postgres provider] Speed up feature insertion when pkid column is not set ( fixes #18976 )
...
When inserting features whose attribute column corresponding to the pkid
is empty, and tat this pkid column has a default value using a sequence,
then we can remove it from the INSERT statement completely, which save us
from doing a SELECT nextval(...) for each row. On the provided test case
of that ticket, on a debug build, this cuts down the insertion time from 5 minutes
to 1 minute 10s.
2018-06-01 22:31:09 +02:00
Even Rouault
75b7edf1d2
QgsSvgCache::svgAsPicture(): make sure the returned picture is not shared ( fixes #18996 )
...
For some reason QPicture.detach() doesn't seem to always work as intended, at
least with QT 5.5 on Ubuntu 16.04
Serialization/deserialization is a safe way to be ensured we don't
share a copy.
Relates to a6eea7205c72a1be837ab43b79aad0c67a92a9b2
2018-06-01 22:00:07 +02:00
Alessandro Pasotti
033071ae50
Do not set min/max precision for int fields
...
Fixes #19050
QGIS saves integer field when I create a new real
field through field calculator (Update field works as intended)
backport required
2018-06-01 18:07:41 +02:00
Even Rouault
9d3f8d44f5
Merge pull request #7140 from rouault/fix_19009
...
Assorted set of fixes regarding field length for OGR provider
2018-06-01 17:42:59 +02:00
Even Rouault
3b29102627
Merge pull request #7141 from rouault/fix_18563
...
QgsVectorFileWriter: workaround a bug in GDAL where appending to an existing BNA crashes it (fixes #18563 )
2018-06-01 15:17:10 +02:00
Even Rouault
43f796e78e
QgsVectorFileWriter: workaround a bug in GDAL where appending to an existing BNA crashes it ( fixes #18563 )
...
Upstream fixes done in GDAL as well to fix the crash itself:
GDAL master: a36939afd5
GDAL 2.3 branch: f9af14bc04
2018-06-01 14:28:30 +02:00
Even Rouault
e4d5899bb2
Merge pull request #7131 from rouault/fix_linux_build_qca
...
QCAMacros.cmake: fix Linux build
2018-06-01 14:19:42 +02:00
Even Rouault
b9003ffa12
QgsVectorDataProvider::supportedType(): only checks field length and precision against min/max if they are defined (ie > 0). Fixes test_qgsauxiliarystorage.py and qgis_projectstoragetest
2018-06-01 14:06:04 +02:00
Denis Rouzaud
dc9fb90b01
add note on how to invalidate results
2018-06-01 03:31:39 -08:00
Denis Rouzaud
a15d8903ed
[locator] add a way to invalidate results from python API
...
otherwise if you access the config of the filter (or change app settings) from outside the main application settings dialog, results are not invalidate
for instance, if you update a URL of a service, results won't be updated
2018-06-01 03:31:39 -08:00
Even Rouault
917a6e3cdc
QCAMacros.cmake: re-add 25ba36180cfbf836b9458beb98e28f62349c4260 for FreeBSD
2018-06-01 13:23:49 +02:00
Even Rouault
1a4f80428d
QCAMacros.cmake: fix Linux build
...
25ba36180c
causes
build failures on Ubuntu 16.04 and 18.04 with gcc
{{{
/usr/bin/c++ -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I/usr/include/Qca-qt5/QtCrypto -fPIE -std=gnu++11 -o CMakeFiles/cmTC_3b936.dir/qcaossl.cpp.o -c /home/even/qgis/QGIS/build/CMakeFiles/CMakeTmp/qcaossl.cpp
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qchar.h:37:0,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:41,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/QString:1,
from /usr/include/Qca-qt5/QtCrypto/qca_core.h:36,
from /usr/include/Qca-qt5/QtCrypto/qca.h:36,
from /usr/include/Qca-qt5/QtCrypto/QtCrypto:1,
from /home/even/qgis/QGIS/build/CMakeFiles/CMakeTmp/qcaossl.cpp:2:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1067:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."
# error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\
^
}}}
qtglobal.h doesn't like -fPIC and -fPIE together
See https://github.com/qgis/QGIS/pull/6093#issuecomment-393518711
2018-06-01 13:22:48 +02:00
Even Rouault
a3e527d8ff
[OGR provider] Advertize correct supported data types, length and with for GPKG; and advertize Date, Time, DateTime based on driver capabilities
2018-06-01 13:19:29 +02:00
Even Rouault
bad1ab4ea5
QgsVectorDataProvider::supportedType(): use -1 as the value for unspecified length/width (this is the default in QgsField constructor and QgsVectorDataProvider::NativeType())
2018-06-01 13:18:48 +02:00
Even Rouault
04a55b2578
[cleanup] QgsFieldCalculator: avoid use of hardcoded magic indices
2018-06-01 13:17:13 +02:00
Even Rouault
f4bf1ec907
[OGR provider] GPKG: allow repeated creation of int fields with len != 0 ( fixes #19009 )
2018-06-01 13:15:41 +02:00
Andrea Giudiceandrea
6192b5eb36
Add fill/stroke color & opacity parameters to more north arrows svg images
2018-06-01 18:02:16 +07:00
Nyall Dawson
05f426e061
Remove orig_ogc_fid fields from server filter tests
2018-06-01 21:00:20 +10:00
Nyall Dawson
e6e54de383
Add test to ensure that orig_ogc_fid field is only ever used internally
...
We don't want to expose this field to users, or include it in layer
exports or copies
And rename internal field to __orig_ogc_fid to avoid clashes with
existing datasets which have been exported before this fix and which
now contain a orig_ogc_fid field
2018-06-01 21:00:20 +10:00
Nyall Dawson
bd65fc607b
[processing][gdal] Don't double quote output paths
...
Breaks for some drivers, e.g. KML
Fixes #18264
2018-06-01 18:21:41 +10:00
Nyall Dawson
30ecb33855
[processing][GRASS] Fix some algorithms always export as GPKG, regardless of format selected
2018-06-01 16:53:00 +10:00
Nyall Dawson
60a87e9497
[processing] Fix error when creating tests and raster output
...
no longer exists
Fixes #16123
2018-06-01 16:20:12 +10:00
Nyall Dawson
4289bcb3cb
[processing][saga] Fix some field parameters are incorrectly defined as feature sources
...
Fixes #18193
2018-06-01 15:55:11 +10:00
Nyall Dawson
f6416a1990
[processing] Fix missing vector inputs when run in batch mode
...
Fix incorrect definition of compatibleVectorLayers, which was
using layer WKB type values instead of processing source types.
2018-06-01 15:55:11 +10:00
Nyall Dawson
d1bcfbfef3
[processing] Rename File parameter in modeler to File/Folder
...
Better reflects what it does
2018-06-01 15:55:11 +10:00
Nyall Dawson
950d042e72
[processing] Fix errors when filling parameters in batch panel
...
Fixes #18408
2018-06-01 15:55:11 +10:00
Nyall Dawson
dcba919eef
Add another acceptable hash
2018-06-01 11:54:31 +10:00
Nyall Dawson
4719a7c1f5
See if test now passes on Travis
2018-06-01 11:54:31 +10:00
Nyall Dawson
09d21cf920
Resurrect another GRASS test
2018-06-01 11:54:31 +10:00
Nyall Dawson
3f456993d6
Resurrect a GRASS test
2018-06-01 11:54:31 +10:00
Nyall Dawson
0e7c31e9e7
[processing][grass] Fix handling of optional file parameters
2018-06-01 11:54:31 +10:00
Nyall Dawson
e273ac2815
[processing] Some test debugging help
2018-06-01 11:54:31 +10:00
Nyall Dawson
46a4c23648
Resurrect a grass test
2018-06-01 11:54:31 +10:00
Nyall Dawson
ae95adba40
[processing][GRASS] Fix r.relief.scaling has inverted min/max values for altitude and azimuth parameters
...
Fixes #19076
2018-06-01 09:36:24 +10:00
Nyall Dawson
1c684456aa
[processing] Log an error when a numeric parameter has min value >= max value
...
Refs #19076
2018-06-01 09:36:24 +10:00
Nyall Dawson
32792d3409
Better dox, spelling
2018-06-01 08:53:20 +10:00
Nyall Dawson
f7a6864b9c
[processing] Fix invalid characters in HTML for 'Raster layer unique values' report
2018-06-01 08:53:20 +10:00
Nyall Dawson
8bdec09b3b
Revert "Fix QCA-ssl for FreeBSD"
...
This reverts commit 25ba36180cfbf836b9458beb98e28f62349c4260.
Breaks linux build
2018-06-01 08:32:46 +10:00
Matthias Kuhn
5e3ce8ff6a
SC2003: expr is antiquated. Consider rewriting this using $((..)), ${} or [[ ]].
2018-06-01 08:25:46 +10:00
Matthias Kuhn
09f17d9952
SC2006: Use $(..) instead of legacy ..
.
2018-06-01 08:24:38 +10:00
Nyall Dawson
408a9fbf0b
Fix some shellcheck warnings
2018-06-01 08:21:48 +10:00
Even Rouault
efa7f99b6f
Merge pull request #7132 from rouault/fix_19077_bis
...
[OGR provider] Avoid attribute table to be empty on OGR layer with mixed geom types (fixes #19077 )
2018-05-31 23:51:15 +02:00
Even Rouault
2969ba1e99
test_provider_ogr_gpkg.py: avoid bug_17795.gpkg test sample to be modified by tests
2018-05-31 23:05:37 +02:00
Even Rouault
ee06d52421
[OGR provider] Avoid attribute table to be empty on OGR layer with mixed geom types ( fixes #19077 )
2018-05-31 23:05:37 +02:00
Denis Rouzaud
0cffd19e5f
monkey path custom widgets
...
this will add module to the system to avoid missing modules when running on a local install (uic widget-plugin not installed)
2018-05-31 12:33:38 -08:00