6568 Commits

Author SHA1 Message Date
signedav
97b827e97c indentation 2018-10-18 16:38:54 +02:00
signedav
c7c7204252 put extra default back 2018-10-18 15:37:31 +02:00
Even Rouault
391ec8a5dd
[OGR provider] Revise significantly the way we handle subset filter to avoid issues with FID (fixes #20136)
Some rationale on this change...

Previously when applying a "regular" subset string, ie. one that is only the
content of a where clause, we issued a full "SELECT * FROM layer WHERE subsetstring",
resulting in a OGR SQL layer. The caveat of that is that most OGR drivers
will have issues retaining the original FID. A hack consisting in adding a
{original_fid_name} as orig_ogc_fid to the select columns was introduced in
4ce2cf1744
to try to retain the original FID, but this added a lot of complexity. And
actually, in the case of the OGR GPKG driver, it caused it to still be confused
when analyzing the column definition of the resulting layer, since it sees
2 FID columns despite the renaming (one included in the '*' wildcard, and the
one of orig_ogc_fid), which caused it to use sequential FID numbering (the
driver when seeing more than once a column that is the FID column assumes that
some cross join is done, and thus that FID are unreliable)

A simpler and more robust (crossing fingers!) approach in that case is
just to use OGR_L_SetAttributeFilter() instead of GDALDatasetExecuteSQL().
Some care must be taken to cancel the filter when removing the subset
filter, or in QgsOgrFeatureIterator when combining with the filter
expression coming from the request, but besides that, this is more
straightforward, and actually solves #20136
2018-10-18 12:28:02 +02:00
signedav
7026dfa329 json decoding of values
before comparing them with the python structs
2018-10-18 09:19:33 +02:00
signedav
d34fdf277d extended json type server tests
not working because of the \n in the response
2018-10-18 09:18:28 +02:00
signedav
4f55e9d8a2 server tests for json types in postgres 2018-10-18 09:18:28 +02:00
nirvn
009fcd8e7e fix build on cosmic (et cie) 2018-10-18 13:27:37 +07:00
rldhont
e10736ae7b
Merge pull request #8199 from pblottiere/server_getfeatureinfo_tolerance
[bugfix] Fixes #19383 - GetFeatureInfo tolerance
2018-10-16 19:12:11 +02:00
Matthias Kuhn
7d3daf6f40
Merge pull request #8197 from signedav/fix_duplication
[Bugfix] Care about default values again on creating feature
2018-10-16 15:18:57 +02:00
Matthias Kuhn
190f938654
Merge pull request #8103 from m-kuhn/geometryValidatorCode_1
Geometry validation of editing session
2018-10-16 11:34:50 +02:00
signedav
5352629842 rename back test_qgsowsconnection 2018-10-16 07:09:44 +02:00
Nyall Dawson
ca427d3316 Rename actions 2018-10-16 14:13:29 +10:00
Nyall Dawson
b7b638c52b Simpler API to link actions to QgsDockWidget 2018-10-16 14:13:29 +10:00
Nyall Dawson
51f6fb0667 QStringLiteral 2018-10-16 13:32:05 +10:00
Even Rouault
c89a542365
Merge pull request #8185 from rouault/fix_19571
[WFS client] Try to handle layers of type GeometryCollection if the first GeometryCollection is made of geometries of the same type (fixes #19571)
2018-10-15 20:33:08 +02:00
Matthias Kuhn
8da2910993
Add some tests for QgsVectorLayerFeaturePool 2018-10-15 17:29:21 +02:00
Even Rouault
9014285bc7
[WFS client] Try to handle layers of type GeometryCollection if the first GeometryCollection is made of geometries of the same type (fixes #19571) 2018-10-15 15:29:42 +02:00
Matthias Kuhn
0bb6a16145
Standardize geometry checker tests 2018-10-15 15:25:45 +02:00
signedav
7ce06e6265 test with correct uniquevalue 2018-10-15 14:45:47 +02:00
Blottiere Paul
c3a41bc2fa Add unit test for polygon tolerance 2018-10-15 13:29:25 +01:00
Matthias Kuhn
6a94033487
Make feedback a required parameter for geometry checks 2018-10-15 14:28:02 +02:00
Matthias Kuhn
2a5692a520
Add test for overlap check with no area size restriction 2018-10-15 14:28:02 +02:00
Blottiere Paul
5765d49465 Add unit test for line tolerance 2018-10-15 10:40:27 +01:00
signedav
67276dcddf corrected comment in test 2018-10-15 11:25:04 +02:00
Even Rouault
d5e57d31e6
Merge pull request #8186 from rouault/fix_20104
[GDAL provider] Make sure that setEditable(true) invalides cached GDAL handles to get proper refresh (fixes #20104)
2018-10-15 11:10:00 +02:00
Even Rouault
b777ab23b1
Merge pull request #8184 from rouault/fix_20098
[OGR provider] Make again a feature iterator to be resetable on a OSM layer (fixes #20098)
2018-10-15 11:09:43 +02:00
Nyall Dawson
46b6ffadda Fix a bunch of QString warnings 2018-10-15 19:02:48 +10:00
Blottiere Paul
6fce7853ca Add unit test for point tolerance 2018-10-15 09:30:59 +01:00
signedav
a3f3187c72 tests 2018-10-15 10:27:42 +02:00
signedav
e8c15a9c46 tests for unique values
with default unique value and fallback in case the default value already exists
2018-10-15 09:14:06 +02:00
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