55700 Commits

Author SHA1 Message Date
Harrissou Sant-anna
1e2b59afc4 Make the target crs optional in gdal warp algorithm [needs-docs] 2019-06-11 13:43:38 +10:00
Etienne Trimaille
8849cd9886 Fix label Feature request is not applied automatically 2019-06-11 03:02:02 +10:00
Alessandro Pasotti
13099cc4fa
Merge pull request #30137 from elpaso/bugfix-gh30131-postgres-json
Fix json hanlding of bools and complete json(b) PG support
2019-06-10 14:22:14 +02:00
Alessandro Pasotti
ef6dd4ede6
Update src/core/qgsjsonutils.h
Co-Authored-By: Matthias Kuhn <matthias@opengis.ch>
2019-06-10 11:04:47 +02:00
Alessandro Pasotti
660e451f07 More tests for json values, fix boolean representation 2019-06-10 09:15:00 +02:00
Alessandro Pasotti
114affc549 Handle strings with chars that require escaping 2019-06-10 08:33:16 +02:00
Nyall Dawson
5201151c1c [needs-docs] Reorganise Zoom to Native action to sit next to
other layer-related zoom actions

Instead of sitting next to global map based zoom actions
2019-06-10 14:19:04 +10:00
Nyall Dawson
f00da6170f "Zoom to native resolution" action is a layer-based zoom, so add the
layer rectangle to the background of the icon to give a visual hint of this

Otherwise it's easy to mistake the action as a full map-based action
2019-06-10 14:19:04 +10:00
Nyall Dawson
5c84bbc1a5 Avoid multiple redundant requests for mapserver legends 2019-06-10 12:47:43 +10:00
Nyall Dawson
3cad7ed106 [layouts] Fix attribute table filtering to items within atlas feature
when atlas feature has a different CRS to table layer

And greatly improve performance when using an attribute table
filtered to the atlas feature
2019-06-10 12:37:47 +10:00
Nyall Dawson
182b1e1279 Use * to fetch all fields from feature services, don't list them one by one
Otherwise we often exceed the maximum size of a get query
2019-06-10 12:28:32 +10:00
Nyall Dawson
c9f8b19647 Avoid sqlite database lookup on EVERY https network request
Whenever a https network request is created, QgsAuthManager::sslCertCustomConfigByHost
is used to alter the ssl configuration according to config
stored within the sqlite authentication database. This results
in a database query being created for EVERY request, regardless
of whether a user actually has any ssl configuration set.

Instead, use a cache to avoid firing off this db query
for every request
2019-06-10 08:45:28 +10:00
Harrissou Sant-anna
352423e443 Update help Url for Core plugins in official doc 2019-06-10 08:24:55 +10:00
Nyall Dawson
762ea69cd2 [layouts] Fix filtering of attribute table to visible features
when linked map is rotated

The rotation wasn't being taken into account, which meant that
visible features weren't shown (and vice versa)
2019-06-10 08:24:11 +10:00
Alessandro Pasotti
b43c87047e
Update src/core/qgsjsonutils.h
Co-Authored-By: Matthias Kuhn <matthias@opengis.ch>
2019-06-09 16:43:35 +02:00
Alessandro Pasotti
5aa5a841cb Update test because now we are correctly returning null 2019-06-09 12:54:03 +02:00
Alessandro Pasotti
fe7f510fbf
Merge pull request #30139 from elpaso/bugfix-gh29700-histogram-crash-fwd-port
Forward port of histogram binding fix with a bonus test
2019-06-09 11:17:35 +02:00
Alessandro Pasotti
574d40a506 Fix test QCOMPARE 2019-06-09 10:47:27 +02:00
Alessandro Pasotti
79219dae23 Forward port of histogram binding fix with a bonus test
Fwd port of PR #30033
Fixes #29700

With a new test for the bug.
2019-06-09 10:25:50 +02:00
Alessandro Pasotti
d2a93501f2 Remove empty lines 2019-06-08 20:32:02 +02:00
Alessandro Pasotti
3ea542a433 Fix json hanlding of bools and complete json(b) PG support
Fixes #30131 and add tests for jsonutils
2019-06-08 20:29:48 +02:00
nirvn
192c456d4d [arcgisrest] Fix drawing of large areas for non-tiled raster layers 2019-06-08 08:03:29 +07:00
Nyall Dawson
1c9586a732 For xyz/mapserver tiles, disable smooth pixmap transform when
we are rendering at native tile resolutions (or just close enough to)

This allows pixel-perfect rendering of tiles at native resolutions
2019-06-08 05:34:28 +10:00
Nyall Dawson
493b17ccb6 On zooming too far into a mapserver layer, just use best available
resolution tiles and don't abort renderering
2019-06-08 05:34:28 +10:00
Martin Dobias
393af833d4 Switch back to using passing by value 2019-06-07 14:48:55 +02:00
Martin Dobias
1241783e5f Better error reporting when geometry overlay algorithms fail 2019-06-07 14:48:55 +02:00
Martin Dobias
0ba99af486 Fix a crash when running 'snap geometries to layer'
A crash may happen when running the alg with 'snap to anchor nodes (single layer only)' behavior.
It turns out that I made a mistake while porting the algorithm to std::sort - originally
the sorting function used -1/0/+1 for comparison, while std::sort wants '<' operator returning true/false.
Due to inconsistent results from the comparison function, std::sort would end up corrupting
the array and memory even beyond the range, causing crashes.

Related to #29400 (but does not fix it)
2019-06-07 14:48:55 +02:00
nirvn
2a9028ad28 [arcgisrest] Fix parsing of imageserver raster layer 2019-06-07 16:59:48 +07:00
Even Rouault
b1e4a270e5
Merge pull request #30103 from boundlessgeo/master-wfs-conn-dlg
Fix some issues with WFS connection dialog
2019-06-07 11:34:20 +02:00
Nyall Dawson
4a60e184f8 Fix missing mapserver legends in some circumstances 2019-06-07 19:24:10 +10:00
Nyall Dawson
75e225248b [afs] ImageServer services can be accessed as FeatureServers, but
we need to manually assume the geometry type is Polygon
2019-06-07 19:24:10 +10:00
Nyall Dawson
7876a6c2a4 [afs] If a field has a coded domain set, create a corresponding
value map editor widget setup to ensure raw values are correctly
displayed as their corresponding description
2019-06-07 19:24:10 +10:00
Martin Varga
f4e11bf7d5 [processing] tiles_xyz: maximize map preview 2019-06-07 11:09:41 +02:00
Martin Varga
228040d153 [processing] tiles_xyz: get rid of unlabeled areas at the edges of metatiles 2019-06-07 11:09:41 +02:00
Martin Varga
4013925083 [processing] deferred transparency/bg_color option in xyz alg 2019-06-07 11:09:41 +02:00
Martin Varga
ebab737420 [processing] changed alpha to transparent option in tiles_xyz, default bg color from canvas 2019-06-07 11:09:41 +02:00
Martin Varga
3a9b32d635 [processing] added new options (alpha, quality, tile_size) to xyz alg 2019-06-07 11:09:41 +02:00
Nyall Dawson
861c5115eb Fix various clazy warnings 2019-06-07 16:40:18 +10:00
Alessandro Pasotti
1b5fb70647
Merge pull request #30096 from elpaso/bugfix-gh30062-gpkg-copy-fid
createFeatures check unique constraints on unfiltered layer
2019-06-07 08:19:56 +02:00
Alessandro Pasotti
613f304d3b
Merge pull request #30098 from elpaso/bugfix-gh30050-gpkg-drag-and-drop
Get raster layer name when d&d gpkg, also open vectors in addition to…
2019-06-07 08:19:32 +02:00
Alessandro Pasotti
96c3357915
Merge pull request #30100 from elpaso/bugfix-gh29937-duplicated-datefield-crash
Do not emit dateChanged signal if value has not changed
2019-06-07 08:18:47 +02:00
Matthias Kuhn
bb2ee21519
Merge pull request #30112 from m-kuhn/ssl_certificate_check_fixes
Remove debug stuff
2019-06-07 07:15:42 +02:00
Nyall Dawson
43e6ee0464 Fix crash when closing QGIS with open layout designer windows
Qt connections to a lambda ALWAYS should have a context object,
or the connection lasts forever, even after the object which
made the connection is deleted.
2019-06-07 13:36:57 +10:00
Nyall Dawson
a707346038 Avoid tiny scale jumps when repeatable clicking 'zoom to native scale' 2019-06-07 11:25:23 +10:00
Harrissou Sant-anna
a749cd9c0c Add a help button to the Processing History dialog
connected to the docs
2019-06-07 07:14:05 +10:00
Larry Shaffer
3c2022b87d
Update feature paging fix to allow for WFS version >= 1.1
But, only default to paging enabled if WFS 2.0.0 or higher

From Even Rouault: For some older MapServer versions that had a paging
extension for WFS 1.1, but didn't support yet WFS 2.0
2019-06-06 14:39:57 -06:00
Larry Shaffer
018df8c129
Fix WFS connection's version Detect button, which did not support auth
Adds QgsNewHttpConnection protected member to access auth settings
2019-06-06 10:41:58 -06:00
Matthias Kuhn
71c3205a2b Extended validity period 2019-06-06 17:41:40 +02:00
Matthias Kuhn
26e8e22603
Merge pull request #30109 from DelazJ/processingTestReadme
Fixing typo
2019-06-06 16:09:56 +02:00
Matthias Kuhn
430845ee16 Remove debug stuff 2019-06-06 15:59:34 +02:00