6538 Commits

Author SHA1 Message Date
Nyall Dawson
d77c61ef81 More test 2018-10-15 16:51:16 +10:00
Nyall Dawson
88da833b72 Try resurrecting test under Travis 2018-10-15 15:25:17 +10:00
Nyall Dawson
e33caa4902 [mssql] Skip some tests on Travis which fail because of msodbcsql segfaults 2018-10-15 11:47:30 +10:00
Nyall Dawson
c6dda7b4f3 SQL Server on Travis 2018-10-15 11:47:30 +10:00
Even Rouault
e7d15b6495
[GDAL provider] Make sure that setEditable(true) invalides cached GDAL handles to get proper refresh (fixes #20104) 2018-10-14 17:50:38 +02:00
Even Rouault
906f80219f
[OGR provider] Make again a feature iterator to be resetable on a OSM layer (fixes #20098) 2018-10-14 12:43:54 +02:00
Nyall Dawson
0f056b500a Fix line pattern fill symbol corruption with negative angles 2018-10-13 06:31:56 +10:00
Nyall Dawson
e277b91087 Fix distorted line pattern fill when line offset is large compared
with pattern distance
2018-10-13 06:31:56 +10:00
Nyall Dawson
5b4ed16cf9 Fix line pattern fill offsets are always treated as positive,
even when offset is negative
2018-10-13 06:31:56 +10:00
Alessandro Pasotti
b80c95c71a
Merge pull request #8150 from elpaso/bugfix-20053-json-exporter-values
Fixes #20053 decimal separator in csv files
2018-10-10 09:56:52 +02:00
Denis Rouzaud
7c0a2a1cd7 a few more forward declarations 2018-10-09 11:48:33 -08:00
Denis Rouzaud
f27a5043bb remove useless includes 2018-10-09 11:48:33 -08:00
Alessandro Pasotti
859b39a634 Fixes #20053 decimal separator in csv files
Actually it had nothing to do with CSV being the
source, but it was the json exporter passing
the values through all field formatters except for
the fallback.

This resulted in all fields using a 'Range' formatter
(which is the default for all numeric types) passing
through the formatter and being returned as strings
in the json. Worse, if the locale was not a "dot"
locale and decimal separator was on, the resulting
string could not be easily converted into its original
numeric type.

Now, instead of checking for the fallback formatter
only, there is a white list of formatters that
can be applied when we want a json.

This is a temporary solution because the "right" way
to do it would be either a flag in the formatter to
tell if it can be applied when converting to json
and/or other "data" formats (csv etc.) or a different
new method similar to representValue.
2018-10-09 11:03:06 +02:00
AndrewAnnex
8fbb717580 addressed comments, ran prepare-commit.sh 2018-10-09 14:36:05 +10:00
AndrewAnnex
c04accd72a forgot to add voids in testqgsgdalprovider.cpp 2018-10-09 14:36:05 +10:00
AndrewAnnex
9b4cb7a269 added unit test and test raster 2018-10-09 14:36:05 +10:00
Nyall Dawson
06520be7b0 Spelling 2018-10-08 19:16:29 +10:00
Nyall Dawson
745495fe73 [mssql] Prevent overwriting existing tables via drag and drop in browser
Fixes #16805
2018-10-08 19:16:29 +10:00
Nyall Dawson
da21193894 [mssql] Fix handling of geometry column when multiple geometry/geography
columns are present

Fixes #13932
2018-10-08 17:01:03 +10:00
Nyall Dawson
71c5051356 [mssql] Fix incorrect precision detection for double/float fields
Fixes #15124
2018-10-08 17:01:03 +10:00
Nyall Dawson
794583e62e [mssql] Test data load script 2018-10-08 16:15:31 +10:00
Nyall Dawson
eb439d34ba [mssql] Update test for skipping invalid geometry handling 2018-10-08 16:15:31 +10:00
Nyall Dawson
eb40d911df Add test for MSSQL behavior with invalid polygon geometries
Forward port of 039866d, because I am an idiot and forgot
2018-10-08 16:15:31 +10:00
Even Rouault
119cd8ace9 QgisApp::addVectorLayer(): add |layername= to OGR datasets (fixes #20031)
Do it also in case of datasets that have a single layer, in case they might
later be edited to have more layers
(except for a few drivers known to be always single layer)
2018-10-08 07:23:27 +10:00
Even Rouault
bd6c1115bb [OGR provider] Make createEmptyLayer() work properly on GeoPackage when creating/overwrite a new database (fixes #20040) 2018-10-08 07:23:12 +10:00
Blottiere Paul
80e19b6328 Add core unit test 2018-10-08 05:03:49 +10:00
Blottiere Paul
7681d308e2 Removes TODO comment 2018-10-08 05:03:49 +10:00
Blottiere Paul
6dfae7238c Activates unit test 2018-10-08 05:03:49 +10:00
rldhont
2b71c9cc97
Merge pull request #7915 from rldhont/server-cache-manager-extension
[Server][Cache] Finalizing the cache manager
2018-10-07 15:50:00 +02:00
Nyall Dawson
ed35ad9ca7 Unify sqlite string quoting functions to a single QgsSqliteUtils::quoteString
function, with tests
2018-10-07 17:36:40 +10:00
rldhont
bc7cea2e3e [Server][Cache] Extending and enhancing cache manager tests 2018-10-06 10:25:20 +02:00
Nyall Dawson
81db0052ff [mssql] Fix single geometry types are added to multi geometry type layers
Fixes #10793
2018-10-06 06:06:05 +10:00
Alessandro Pasotti
29c4970f8a [processing] In-place add layer name to dlg title and store active layer 2018-10-05 10:10:20 +02:00
Alessandro Pasotti
ca1c65d07a [processing] In place editing triggers editing and select all
If the active layer is not editable, the executor will
try to switch editing on.

If there are no selected features, the executor will
select all features before running.
2018-10-05 08:53:30 +02:00
Alessandro Pasotti
223a87fbc5
Merge pull request #8121 from nyalldawson/no_boundary
Boundary alg cannot run in-place mode
2018-10-05 08:51:05 +02:00
Nyall Dawson
2f89139ce3 Fix up test 2018-10-05 16:00:36 +10:00
Nyall Dawson
3fc0e69fb3 [mssql] Add unit test for #15305 2018-10-05 16:00:36 +10:00
Nyall Dawson
a6ae6c1702 Add a provider test for a crash experienced in SQL Server provider 2018-10-05 16:00:36 +10:00
Nyall Dawson
57fcf439ba Boundary alg cannot run in-place mode 2018-10-05 15:44:51 +10:00
Nyall Dawson
10095ce0ef [mssql] Compile some simple expression functions
Should speed up lots of querying operations on sql server layers
2018-10-05 11:34:49 +10:00
Nyall Dawson
1d9086c75d [mssql] Allow compilation of int div expressions 2018-10-05 11:34:49 +10:00
Nyall Dawson
3df8c75db8 [mssql] Update list of uncompilable expressions 2018-10-05 11:34:49 +10:00
Nyall Dawson
234985b59d [needs-docs][labeling] Fix substitutions don't play well with wrapped labels
Fixes an issue identified in the upcoming QGIS Map Design 2nd ed
(spoiler alert!) where it's impossible to utilise label text
substitutions if you also want to use word wrapping.

This isn't possible to directly fix, because we need to evaluate
the full label expression (including the word wrapping component)
in order to actually HAVE text to substitute into.

So, a new setting has been added to the label formatting tab
allowing users to directly set an auto-wrapping line ideal
line size. This is applied AFTER label text evaluation, substitutions,
and the 'wrap text on' character, so it can play correctly well with
all these other settings. This also has the nice side-effect
of making auto label text wrapping more accessible to new
users/those unfamiliar with the wordwrap expression function.

Fixes #20007, and cleans up a chapter of QMD 2ed ;)
2018-10-05 06:58:56 +10:00
Nyall Dawson
dce8673d21 Move guts of wordwrap expression function to QgsStringUtils::wordWrap
To allow use outside of expressions
2018-10-05 06:58:56 +10:00
Nyall Dawson
f3779589c6 [mssql] Fix conversion of time values
At least using the linux sql server driver, time fields are not
correctly automatically converted to QTime variants. Instead
they are returned as a raw byte array containing the value.

Add special handling to ensure that these time values are
read regardless.

(there's already a test in place for this, which was failing
on Linux)
2018-10-04 12:46:28 +10:00
Philipe Borba
e375d1ddd7 [BUG FIX][Split Tool] Bug fix for split features tool
Fixes #19936 by prioritising existing attributes over provider side defaults in some circumstances
2018-10-04 06:19:55 +10:00
Nyall Dawson
14b6843293 Update expected test results 2018-10-04 06:15:38 +10:00
Nyall Dawson
297dbe0786 Fix ellipsoidal area calculation 2018-10-04 06:15:38 +10:00
Larry Shaffer
a74d797517
Merge pull request #8072 from dakcarto/opencl-clhpp
[opencl] Add FindOpenCLhpp CMake module; vendor cl2.hpp; fixup includes
2018-10-03 13:38:47 -06:00
Matthias Kuhn
0319e36c63
Merge pull request #8054 from m-kuhn/geometryCheckPyBindings
Python bindings for QgsGeometryCheck and co
2018-10-03 14:36:48 +02:00