55550 Commits

Author SHA1 Message Date
Nyall Dawson
a4e5e6a598 [needs-docs] Append a local, user writable folder to proj 6 search paths
Now, proj will search in the current user profile "proj" folder (e.g.
.local/share/QGIS/QGIS3/profiles/default/proj" on linux) for
grid files and other proj helper files.

This allows users (and plugins) to install grid files and make them
available for use in QGIS without requiring administrator access
to the system.
2019-06-03 10:38:22 +10:00
Juergen E. Fischer
19933e0feb processing: avoid fetching the layer parameters when not executing 2019-06-01 09:10:39 +02:00
Juergen E. Fischer
5a54eb7739 processing: add option to select directory to recurse for files (fixes regression with a number of tools that used to have this - eg. buildvrt for instance) 2019-05-31 19:02:48 +02:00
Martin Dobias
d7fdbbedb3 [browser] Fix removal of views from postgres databases (fixes #29812)
For views one needs to use DROP VIEW sql command
2019-05-31 10:05:15 +02:00
Peter Petrik
2cf1624ff3 fix #30028 Closing Vertex Edititor crashes the app 2019-05-31 10:01:11 +02:00
Nyall Dawson
ba764b0d9f Fix proj4 build 2019-05-31 10:38:08 +10:00
Nyall Dawson
c82d3b643f Upgrade QgsCoordinateTransformContext for proj 6
This reworks (on proj 6 builds only!) QgsCoordinateTransformContext
to use proj strings of proj coordinate operations to handle the
users' preferred list of operations when transforming coordinates
between two CRSes.

Previously, the context heavily utilised internal transform ID
numbers, which were QGIS specific and relied on matching entries
from the QGIS srs.db file. This approach was undesirable because
it meant QGIS had to maintain and carry it's own table of
possible transform pathways between CRS pairs (which was difficult
to update, impossible to track, and most likely severely out of
date).

Now we can utilse Proj 6's (wonderful!) logic for determining the
best coordinate operation to utilise between two CRSes. All the
old API has been deprecated and no longer works under proj 6, but
that's unavoidable (and unlikely to be in use by plugins anyway,
it's VERY low level stuff).

A further bonus of this work is that QgsCoordinateTransform no
longer relies on proj strings of the source/dest CRS to build
the transform -- the issue with that approach was that proj
strings are lossy (and not always possible to generate), so
now by default we are generating better pathways between CRS
pairs.

This resolves issues with transforms which rely on pivot datums,
such as GDA94 - GDA2020 conversions.

Sponsored by ICSM
2019-05-31 10:38:08 +10:00
Nyall Dawson
0cf4ecf491 Deprecate a QgsCoordinateTransformContext members which don't
apply in proj >= 6.0 builds
2019-05-31 10:38:08 +10:00
Nyall Dawson
823d28ba2d Improve QgsRasterProjector handling of transform context 2019-05-31 10:38:08 +10:00
Nyall Dawson
c61fb85ed6 Remove unused support for single source/dest settings in QgsCoordinateTransformContext
This has been #ifdef'ed out since it's original implementation,
and it has no meaning in the world of Proj >= 6.0
2019-05-31 10:38:08 +10:00
Nyall Dawson
0c590a1650 Indentation 2019-05-31 09:56:53 +10:00
Nyall Dawson
be11896012 Fix exception in BatchAlgorithmDialog 2019-05-31 09:54:30 +10:00
Juergen E. Fischer
0597a8183a fix windows build 2019-05-31 01:11:35 +02:00
Etienne Trimaille
5c8daf29a7 small improvements to bug report 2019-05-31 06:34:07 +10:00
Even Rouault
50dab59a06 [OGR provider] Map GeometryCollection of TIN coming from multipart shapefiles to MultiPolygonZ (fixes #29376) 2019-05-31 06:32:59 +10:00
Even Rouault
6abc15d113 [WFS client] Revert read buffer size limitation (fixes #29258, fixes #27626)
This apparently caused deadlock issues.

Credit to @nyalldawson for spotting the offending commit.

Partial revert of 0addae5b783e541953522eabe178426e820bf852
2019-05-31 06:30:35 +10:00
Alessandro Pasotti
d61bc83ab7
Merge pull request #30020 from elpaso/make-make-great-again
Copy test file before running the test
2019-05-30 13:49:43 +02:00
Martin Dobias
d3342ad3aa [wcs] safer and faster rendering of WCS layers
Redering of WCS layers has been quite inefficient since introduction
of multi-threaded rendering in QGIS 2.4: whenever map rendering was
starting, copying of WCS provider involved running full initialization
of WCS provider which typically does three(!) network requests
in the constructor (get capabilities + 2x check to work around some
incompatibilities of WCS servers). This was both slow and potentially
dangerous because of embedded QEventLoop for the network requests.

This is now gone and when WCS provider gets cloned (e.g. when starting
map rendering), it just gets copy of data without any extra work.

Avoiding embedded QEventLoop fixes a crash in 3D view when loading tiles.
Fixes #28800
Fixes #26706
2019-05-30 13:47:01 +02:00
nirvn
056833e479 [layout][ui] Fix missing opacity setting for the label font color button 2019-05-30 17:16:47 +07:00
Alessandro Pasotti
2a2a4cd597 Copy test file before running the test
and make make check happy
2019-05-30 11:41:47 +02:00
Alexander Bruy
1d1d2ca703 Revert "[processing] populate batch interface with rows when multiple layers"
This reverts commits f8890d8f047cd2bb934eaad83e1057814927adb5,
f085f5527658c0a81b9a065a6fcee4d654d16bb6 and 5844a0fc906c744327139e137642f0ec97ae240a
2019-05-30 12:05:52 +03:00
Alessandro Pasotti
3885944c59
Merge pull request #30017 from elpaso/bugfix-gh29747-layout-mgr-crashes-copying
Don't crash when copying layout elements
2019-05-30 10:36:32 +02:00
Alessandro Pasotti
8988fbcdd2 Don't crash when copying layout elements
Guard for existing multiFrames

Fixes #29747
2019-05-30 09:49:34 +02:00
Peter Petrik
c2042a2ee3 fix #29630 spatialindex for NaN points 2019-05-30 09:30:04 +02:00
Nyall Dawson
789a758464 Tweak names 2019-05-30 17:27:00 +10:00
Nyall Dawson
3cb3676329 Don't limit label distances to postive values
Sometimes it's useful to have negative distances, as a 0 distance
can still be quite far from line features for some font families.
2019-05-30 17:27:00 +10:00
Nyall Dawson
0458e08c99 Fix warning 2019-05-30 17:27:00 +10:00
Nyall Dawson
10c4bb9f9b [labeling] Fix curved labels sometimes placed below line even when
set to above line only
2019-05-30 17:27:00 +10:00
Nyall Dawson
50315c4a33 Remove unused calculation 2019-05-30 17:27:00 +10:00
Nyall Dawson
b04374d46f Tweak curved label cost of placing away from center (increase cost slightly to encourage more central placements) 2019-05-30 17:27:00 +10:00
Nyall Dawson
f9b8c6ffa3 [labeling] Update confusing/vague variable names 2019-05-30 17:27:00 +10:00
Nyall Dawson
328b0afa6e [labeling] Fix curved labeling fails when line feature geometry
begins with small segments

Fixes #28699
2019-05-30 17:27:00 +10:00
Nyall Dawson
fcacd00a30 Avoid redundant calculation in QgsMapToPixelSimplifier 2019-05-30 17:27:00 +10:00
Nyall Dawson
3d9386b11b Remove impossible to hit code path - distance is never < 0 2019-05-30 17:27:00 +10:00
Nyall Dawson
0b451b2514 Fix some curved labels randomly disappear at certain scales
Refs #12173
2019-05-30 17:27:00 +10:00
Nyall Dawson
b334fc4dc8 Update for c++11 2019-05-30 17:27:00 +10:00
Nyall Dawson
e1bd4e9210 [labeling] Don't waste time trying to generate curved labels on lines
where the label length is greater then the line length
2019-05-30 17:27:00 +10:00
Nyall Dawson
e227e93d0b Optimise method
Avoid duplicate calculations
2019-05-30 17:27:00 +10:00
Nyall Dawson
e0aa09ce18 [labeling] Ensure "merge connected features" setting works correctly
with line networks that contains forks and branches

And simplify memory management

Refs #12173
2019-05-30 17:27:00 +10:00
Nyall Dawson
7213030ad9 [labeling] Fix missing labels when multilinestring features are used in
conjunction with the "merge connected lines" setting

Refs #12173
2019-05-30 17:27:00 +10:00
Nyall Dawson
44d993dc1e Ensure MapServer source select/browser correctly handles nested
server structures
2019-05-30 16:33:21 +10:00
Nyall Dawson
ff365abe29 Avoid more noisy message log warnings 2019-05-30 16:33:21 +10:00
Nyall Dawson
f44ce975c1 Fix MapServer provider ignores referer setting 2019-05-30 16:33:21 +10:00
Nyall Dawson
9fd2866e1a Add error item in browser when MapServer connections fail 2019-05-30 16:33:21 +10:00
Nyall Dawson
8b9fbedb30 Fix MapServer connection items in browser do not respond correctly
to changes in connection parameters

And modernise code, sync with AFS provider
2019-05-30 16:33:21 +10:00
Nyall Dawson
8e51364e42 [mapserver] Safer and faster rendering of ArcGIS MapServer layers
Avoid redundant network requests when cloning data provider
2019-05-30 16:33:21 +10:00
Nyall Dawson
75c720a659 Fix overly noisy o2 debug messages/warnings 2019-05-30 16:33:21 +10:00
Nyall Dawson
d383073277 Better error reporting when things go wrong in ArcGIS MapServer provider rendering 2019-05-30 16:33:21 +10:00
Nyall Dawson
323fae26eb Fix ArcGIS MapServer provider does not correctly respect authentication configuration 2019-05-30 16:33:21 +10:00
Peter Petrik
3f9a07e78a fix #30003 crash in mesh calculator 2019-05-30 10:18:10 +10:00