7514 Commits

Author SHA1 Message Date
Nyall Dawson
fcf59bb471 Try to fix proj4 build 2019-05-13 10:38:26 +10:00
Nyall Dawson
2debb89c2c Indentation 2019-05-13 10:38:26 +10:00
Nyall Dawson
0b8e38e780 Leave broken code in place for now, it can't hurt, can it? 2019-05-13 10:38:26 +10:00
Nyall Dawson
0a7f5fcd46 Disable some tests, add some temporary results for now 2019-05-13 10:38:26 +10:00
Nyall Dawson
18fb3f2bad Wip conversion to proj6 db instead of gdal csv files for population of CRS db 2019-05-13 10:38:26 +10:00
Juergen E. Fischer
e9a80d6799 fix build 2019-05-12 17:19:50 +02:00
Alessandro Pasotti
9a612d4e19
Merge pull request #9832 from elpaso/qjson-nlohmann
Fast (and beautiful) json serializing
2019-05-10 11:33:10 +02:00
Alessandro Pasotti
0081ad026a Faster build times with fwd include 2019-05-10 09:37:25 +02:00
Nyall Dawson
85ff9aea31 Add method to retrieve map extent to QgsRenderContext
Previously only a "layer clipping extent" was available for retrieval
from a QgsRenderContext instance, yet there's a need for rendering
operations to have access to the original full extent of the map
being rendered.
2019-05-10 06:31:00 +10:00
Nyall Dawson
2e5257372b [FEATURE] Add order by support to expression aggregate and concatenation functions
Because certain aggregates and concatenation requires results in
a certain order, this change allows specific control of the order
features are added to the aggregate during an expression evaluation.

E.g.

concatenate("Station",concatenator:=',', order_by:="Station")

will give a comma separated list of station names in alphabetical
order, rather than layer feature order.

Sponsored by SMEC/SJ
2019-05-10 06:23:56 +10:00
Nyall Dawson
6b16218c0f Allow setting order by clause for aggregate calculation 2019-05-10 06:23:56 +10:00
olivierdalang
71a2766015 fix failing tests 2019-05-09 16:29:17 +02:00
Matthias Kuhn
c780ea87e6
Merge pull request #9939 from rouault/fix_opening_gpkg_with_fkey_violation
Fix opening of GeoPackage datasets with foreign key violation
2019-05-08 09:18:56 +02:00
nirvn
65ec9cd146 [symbology] Fix setSize(size) not working for ellipse markers 2019-05-08 13:18:02 +07:00
Even Rouault
87f4410ee0
[OGR provider] Fix opening of GeoPackage datasets with foreign key violation 2019-05-06 22:33:37 +02:00
Mathieu Pellerin
7376e6f82c Add tests 2019-05-06 22:07:00 +07:00
Alessandro Pasotti
425f67224d Fix json comparison with indented reference files 2019-05-06 10:30:07 +02:00
Alessandro Pasotti
ea0a70bd13 Merge branch 'qjson-nlohmann' of github.com:elpaso/QGIS into qjson-nlohmann 2019-05-03 20:15:24 +02:00
Alessandro Pasotti
bd3d75fce8 Indent on JSON export 2019-05-03 19:02:58 +02:00
vcloarec
fe39b26684 Add test for QgsMeshLayer::reload() and QgsMdalProvider()::reloadData()
Add test and data file for new test
2019-05-03 15:26:22 +02:00
Alessandro Pasotti
a8770b7380 Fix Travis quirks 2019-05-03 09:02:46 +02:00
Nyall Dawson
346cb388cf Fix duplicate layers in custom layer order panel
Fixes #21955
2019-05-03 12:54:03 +10:00
Alessandro Pasotti
748a73ab80 Fix 3D build 2019-05-02 17:39:50 +02:00
Alessandro Pasotti
290909f9bb Use json objects for server getfeatureinfo 2019-05-02 14:30:18 +02:00
Alessandro Pasotti
bbd836f4d3 Update tests for geometry classes 2019-05-02 13:52:46 +02:00
Alessandro Pasotti
ba816459e1 Update tests 2019-05-02 10:16:00 +02:00
nirvn
3747cf7870 [FEATURE][symbology] Unlock string as character for font markers 2019-04-30 18:32:03 +07:00
Luigi Pirelli
0f01359b90
Merge pull request #9880 from troopa81/fix_pointpick_precision
Fix point picking precision for point parameters in processing dialog
2019-04-30 12:33:11 +02:00
Alessandro Pasotti
f70acf260b
Merge pull request #9901 from nyalldawson/invalid_qlr
Allow loading QLR files with invalid sources
2019-04-30 09:11:53 +02:00
Julien Cabieces
9cfaf10c42 Never use scientific notation 2019-04-30 09:08:39 +02:00
Nyall Dawson
72febb35e9 Allow loading QLR files with invalid sources
E.g. if the layer path has moved, we still should allow these
files to be read, so that the layer path can be fixed by the user
manually.
2019-04-30 16:34:31 +10:00
Nyall Dawson
38ef62e1cc Fix incorrect annotation scaling when exporting layouts
Previously, annotation size and position always used pixel units. This
did not work well when exporting layouts, resulting in tiny annotations
(it also caused issues when moving projects between hidpi/non hidpi
displays).

Instead, use millimeters for annotation size and position so that the
appearance is consistent across displays and works correctly in layout
exports.

Add lots of unit tests covering this.

Fixes #18373
2019-04-30 15:21:39 +10:00
Mathieu Pellerin
cd5642aca0 [FEATURE] Make the custom dash pattern dialog a style dock widget 2019-04-28 15:33:48 +07:00
Mathieu Pellerin
5fa9e2f02e Add simple line custom dash pattern tests 2019-04-28 12:19:27 +07:00
Alessandro Pasotti
4d2a8dd9da
Merge pull request #9873 from elpaso/bugfix-21839-postgresql-check-pk-unicity
[postgresql] Fix checkPrimaryKeyUnicity option
2019-04-27 19:00:43 +02:00
Alessandro Pasotti
6fa56635b3
Merge pull request #9878 from elpaso/bugfix-21917-server-root-layer-order
[server] Respect custom layer order for groups in GetMap
2019-04-27 17:36:07 +02:00
Luigi Pirelli
3a1f6d7774
Update tests/src/python/test_provider_postgres.py
Co-Authored-By: elpaso <elpaso@itopen.it>
2019-04-27 17:20:07 +02:00
Nyall Dawson
762b2a423b [FEATURE] Expression functions which return file info
base_file_name: Returns the base name of the file without the directory or file suffix.
file_exists: Returns true if a file exists
file_name: Returns the file name from a full path
file_path: Returns the directory/path from a full file path
file_size: Returns a file size
file_suffix: Returns a files suffix/extension
is_directory: Returns true if a file path is a directory
is_file: Returns true if a file path is a file
2019-04-27 17:24:37 +10:00
Julien Cabieces
b7772d407d Fix point picking precision for point parameters in processing dialog 2019-04-26 15:38:51 +02:00
Alessandro Pasotti
da49f79045 Suggestions from JEF 2019-04-26 12:32:42 +02:00
Alessandro Pasotti
956ed06f52 [server] Respect custom layer order for groups in GetMap
Fixes #21917
2019-04-26 12:04:39 +02:00
Alessandro Pasotti
a3368d416c Layout and SQL 2019-04-26 10:26:04 +02:00
Alessandro Pasotti
163082a061 More tests for checkPrimaryKeyUnicity 2019-04-26 09:19:51 +02:00
Martin Dobias
5e4ea73399
Merge pull request #9857 from marcel-dancak/tiles_xyz
New Processing Algorithm to generate raster XYZ tiles
2019-04-26 08:41:30 +02:00
Martin Dobias
fdb6a2b79a Add test for XYZ Tiles algorithm 2019-04-25 22:14:08 +02:00
rldhont
833fa3ded3
Merge pull request #9856 from rldhont/fix-server-wmts-resolutions
[Server] WMTS - use resolution for bbox calculation
2019-04-25 15:14:01 +02:00
Alessandro Pasotti
38c91e4e97 [postgres] Fix checkPrimaryKeyUnicity option
This provider option was linked to the project level option
"Trust layer metadata..." which was implemented
to speed up loading of large dataset by trusting extent
read from metadata to avoid costly operations to determine
the layer extent.

Check PK unicity on the other hand has only effect on views
and query layers and it is useful as an independent
option to prevent loading of layers that have no PK (or the
wrong one).

But the operation of determine unicity of a values in a column
can also be costly, so better to get control back to the user.

Legacy default is preserved (the project-level "Trust..." option).

Fixes #21839

Funded by RAAB.nl
2019-04-24 17:14:42 +02:00
nirvn
756964620a [FEATURE][symbology] Add offset settings for point pattern fill symbol layer 2019-04-24 16:53:40 +07:00
rldhont
f8880c6e9c [Tests][Server] WMTS - use resolution for bbox calculation 2019-04-24 10:46:21 +02:00
Alessandro Pasotti
8378eae0e5 Layout 2019-04-24 10:08:08 +02:00