55593 Commits

Author SHA1 Message Date
Matthias Kuhn
98d2328aae Fix typo 2019-06-06 14:22:03 +02:00
Matthias Kuhn
feaea39bbe More debugging 2019-06-06 14:18:15 +02:00
Matthias Kuhn
515919d586 debug msgs 2019-06-06 12:14:08 +02:00
Matthias Kuhn
608f050d01 Redo the whole cert signing process 2019-06-05 22:47:51 +02:00
Matthias Kuhn
c76336683a Sign postgres.crt with ca 2019-06-05 17:10:07 +02:00
Matthias Kuhn
dc36d4a234 Add ssl key with postres as CN 2019-06-05 15:00:59 +02:00
Matthias Kuhn
d34c7395d3 Fix access rights 2019-06-05 13:50:49 +02:00
Matthias Kuhn
8c39f88b85 Make the code check a bit happier 2019-06-05 12:53:19 +02:00
Matthias Kuhn
128583e97f Fix dockerfile 2019-06-05 12:47:54 +02:00
Matthias Kuhn
107bf5f9b4 Temporary workaround until https://github.com/kartoza/docker-postgis/pull/129 is merged 2019-06-05 10:28:41 +02:00
Matthias Kuhn
f198931289 Unblacklist postgres postgis test 2019-06-05 10:25:38 +02:00
Matthias Kuhn
eb39933851 Add test for postgres server certificate validation 2019-06-05 10:20:59 +02:00
Matthias Kuhn
41650fcac2 Only check server SSL certificate if requested
Fix #30075
2019-06-04 10:03:28 +02:00
Nyall Dawson
8b83a461f9 [needs-docs] Make label map tools follow click-click behavior
It's rather jarring that the move label and rotate label tools
don't follow the rest of the application in using click-click
to move and rotate and rotate labels, and instead use the older
click-and-drag behaviour. This commit reworks the tools to use
click to start, click to end behaviour instead.

It also makes them respect the same conventions as the move
and rotate features tools, where a right click cancels the
move/rotate, and same with pressing "esc" mid-operation.
2019-06-04 07:10:24 +10:00
Nyall Dawson
942827ba52 Fix Travis build 2019-06-04 06:18:17 +10:00
Nyall Dawson
a98d12e1e0 Dox 2019-06-04 06:18:17 +10:00
Nyall Dawson
1bc716fc61 [labeling] Fix incorrect bounding box of labels used when
map is rotated

Fixes #24680
2019-06-04 06:18:17 +10:00
Nyall Dawson
004b7d879a [labeling] Fix cannot use labeling map tools when canvas is rotated
Fixes #25384
2019-06-04 06:18:17 +10:00
Nyall Dawson
70a07f930e Add some unit tests for labeling results 2019-06-04 06:18:17 +10:00
Luigi Pirelli
357328aade
Merge pull request #29992 from ghtmtt/processing_ndvi
[processing] fix NDVI calculation formula in builtin raster calculator
2019-06-03 09:51:33 +02:00
Nyall Dawson
7ec417f161 Remove outdated comment 2019-06-03 16:46:54 +10:00
Nyall Dawson
789dbb570b Add friendly, descriptive errors when opening a project which has
preset non-default coordinate operations set between a crs pair,
which use grids that are not available on the local system
2019-06-03 16:46:54 +10:00
Nyall Dawson
fe4ea3318a Add method to retrieve grid details from a proj string 2019-06-03 16:46:54 +10:00
Nyall Dawson
56c265fa34 Update test results 2019-06-03 16:46:54 +10:00
Nyall Dawson
f8655dc8a4 Don't allow building QGIS on proj 6.0 versions
Require at least 6.1.0. We need proj_normalize_for_visualization,
and the workarounds for building without it are too extensive,
too fragile, and result in too much spaghetti code.

Gotta make the hard call here ;)
2019-06-03 16:46:54 +10:00
Nyall Dawson
5db70523ec Whenever calculating proj coordinate operation strings, ALWAYS
base them on normalized operations

QGIS doesn't need (or want) to care about strictly following
projection definitions here, we ALWAYS want X/Y to be X/Y
2019-06-03 16:46:54 +10:00
Nyall Dawson
315e043754 Update test results for proj 6 2019-06-03 16:46:54 +10:00
Nyall Dawson
4fc89f7222 Fix application of default datum transform on proj 6 builds 2019-06-03 16:46:54 +10:00
Nyall Dawson
31f92141ae Fix doxygen 2019-06-03 16:46:54 +10:00
Nyall Dawson
eb551e0316 Fix caching of coordinate transforms 2019-06-03 16:46:54 +10:00
Nyall Dawson
c5c7d7847e Don't select not-available operations by default 2019-06-03 16:46:54 +10:00
Nyall Dawson
4bf6e8f6d8 Fix accuracy message when operation accuracy is unknown 2019-06-03 16:46:54 +10:00
Nyall Dawson
3defbe182a Update datum transform widgets and dialog for proj 6 2019-06-03 16:46:54 +10:00
Nyall Dawson
f0e6f14223 Allow clickable links in QgsMessageViewer 2019-06-03 16:46:54 +10:00
Nyall Dawson
3e89df8f9e Show nice friendly warnings to users when
- A coordinate transform cannot be created, e.g. due to not making
sense (transforming earth coords to mars coords)
- A coordinate transform cannot be created due to a missing grid
file (along with links to download the grid if available)
- A coordinate transform was created, BUT a better one is possible,
it just is missing some prerequisite on the user's system (again,
with links to download if available)

Sponsored by ICSM
2019-06-03 16:46:54 +10:00
Nyall Dawson
a8b5583aab Don't show generic proj error message to users 2019-06-03 16:46:54 +10:00
Nyall Dawson
1241b3f780 Always attempt to create the preferred Proj coordinate operation
for transforms, even if grids are not available.

And then use custom handlers or message log to warn users that
better operations are possible, just not available on their system.

Also use similar approach to raise errors when either no operation
is possible between two coordinate systems, or only ONE is yet
it is not available on the current system (e.g. due to missing
grid file)

Sponsored by ICSM
2019-06-03 16:46:54 +10:00
Nyall Dawson
f758bb7214 Add mechanisms to set handlers for coordinate transform creation errors and warnings 2019-06-03 16:46:54 +10:00
Nyall Dawson
d754a09296 Refactor to extract useful method 2019-06-03 16:46:54 +10:00
Nyall Dawson
eeeda4b5bf Remove unused setFinder method 2019-06-03 16:46:54 +10:00
Matthias Kuhn
6e846d8def
Merge pull request #9980 from qgis/Apache24config
Change the httpd template to use Apache 2.4 style
2019-06-03 08:08:35 +02:00
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