8288 Commits

Author SHA1 Message Date
Matthias Kuhn
c01f8042f8
Merge pull request #33162 from m-kuhn/dxf_dash_beautify
DXF export preserve dashed line style
2019-12-05 08:46:00 +01:00
Julien Cabieces
ba925bb36d Create child feature with geometry from the relation editor (#32528)
* [FEATURE][needs-docs] Create geometric child feature from relation editor
2019-12-04 14:46:32 +01:00
Nyall Dawson
7746061b46 [FEATURE][processing] New algorithm "Repair Shapefile"
Uses GDAL to repair shapefiles which have a broken or missing .SHX file
2019-12-04 19:58:02 +10:00
rldhont
caf8cfafa4 [Tests] Update QgsVectorLayer readSld to test read label 2019-12-04 17:13:01 +10:00
Sandro Santilli
30fe748469 Add test for pointcloud layers fetching and related permissions
This commit is expected to fail, lacking an actual fix

See #32972
2019-12-04 16:59:24 +10:00
Nyall Dawson
66456a30e7 [labeling] When a layer is set to "blocking" mode, expose the obstacle
settings widget to allow users to tweak the obstacle behavior

Previously these settings were stuck inside the disabled label settings
widget, which meant that to edit them you had to temporarily enable simple
labels, tweak the setting, and then set back to obstacle mode... woot.
2019-12-04 14:47:36 +10:00
Nyall Dawson
cf43104806 Add some unit tests for label settings widgets 2019-12-04 14:47:36 +10:00
Nyall Dawson
316fd50b73 Fix tests 2019-12-03 19:38:24 +10:00
Nyall Dawson
9f63f49230 Move label obstacle settings out to their own class, and monkey patch around
to maintain current API

QgsPalLayerSettings is way too heavy, and we need to start refactoring
this into smaller atomic components
2019-12-03 19:38:24 +10:00
Vincent Cloarec
7f415ca7a7 [FEATURE] Static particle traces for rendering mesh vector dataset (#33165)
* [FEATURE] Static particle traces for rendering mesh vector dataset

This PR permits to display directly in QGIS static particle traces for vector datasets in mesh layer without any plugin.
The user can choose in the mesh layer properties window :
- the color
- the size of the traces (line width)
- the count of particles
- the maximum length of the particle's tail
2019-12-03 08:13:36 +01:00
Nyall Dawson
ea5b4234ab Default to label placement engine v2 for newly created projects (for QGIS 3.12) 2019-12-03 13:48:45 +10:00
Nyall Dawson
2c7f89a769 Fix tests 2019-12-03 13:48:45 +10:00
Nyall Dawson
7f4226d209 Update labeling tests to use engine v2, update expected reference images 2019-12-03 13:48:45 +10:00
Matthias Kuhn
ba87ae6a3c Fix tests 2019-12-01 10:07:34 +01:00
Vincent Cloarec
6d4c995a28 [FEATURE] API for rendering frames for mesh vector dataset animation (particles) (#33110)
* [FEATURE] API for rendering frames for mesh vector dataset animation (particles) 

Adds a renderer to generate frames that represent particle traces in a vector field of a mesh layer. The renderer cannot be chosen in the current GUI, however crayfish plugin can use API to generate avi/gif files with nice animations representing the movement of (random) particles in the mesh layer vector field.
2019-11-29 09:06:47 +01:00
rldhont
6fdc99be1e [Tests][Server] Add WMS GetFeatureInfo GML tests 2019-11-29 11:58:59 +10:00
Nyall Dawson
3f94d55384 Fix identification of TAB file in GDA2020 CRS
Fixes #33007 (also requires GDAL master)
2019-11-29 08:27:47 +10:00
Alessandro Pasotti
8d9565099a PG provider connection API: convert to bools
Fixes #33130
2019-11-28 18:58:07 +01:00
signedav
6ca436d1fd
Merge pull request #32383 from signedav/test_rulelabel
Display Rulelabel when requested in GetLegendGraphics
2019-11-28 11:42:07 +00:00
David Signer
e465168539 changing temp location in the settings an recalculate the temp file path 2019-11-28 21:19:34 +10:00
Nyall Dawson
938ddfd6d5 Pass labeling engine version to pal 2019-11-28 21:15:30 +10:00
Alessandro Pasotti
d89745aec6
Merge pull request #33103 from elpaso/relation-reference-restore
Relation-reference widget: load dependencies
2019-11-28 10:25:55 +01:00
David Signer
a74035cd4e set RULELABEL to false to have the expected behavior 2019-11-28 09:37:41 +01:00
David Signer
71581a4046 Tests with RULELABEL and LAYERTITLE
And fix related tests
2019-11-28 09:37:41 +01:00
Nyall Dawson
4622ede354 Flip logic and leave default labeling engine as v1, mark v2 as experimental
Allows us time to tweak and refine the new rules before deploying on a
widespread basis
2019-11-28 09:54:51 +10:00
Nyall Dawson
ff3b4d5a74 Add API to set a label placement engine version, which dictates which
placement rules should be followed when solving the pal labeling engine
solution.

For new projects it defaults to version 2, but when loading an older project
version 1 is used.

This allows changes to be made to the label placement problem solving without
affecting the placement of labels in existing projects.
2019-11-28 09:54:51 +10:00
Alessandro Pasotti
37c42c3665 Relation-reference widget: load dependencies
Same behavior of value-relation widget.

Funded by: ARPA Piemonte
2019-11-27 17:54:16 +01:00
Nyall Dawson
a997ab8b85 Add more labeling tests covering different label/obstacle combinations 2019-11-27 13:16:52 +10:00
Nyall Dawson
175a075bd8 Use geojson files instead of sqlite for PAL test suite
It's much more git friendly...
2019-11-27 11:07:52 +10:00
Nyall Dawson
2bccde39cd Tweak test qml for test consistency 2019-11-27 11:07:52 +10:00
Nyall Dawson
078f8451e0 [layouts] Ensure overview frames are correctly exporting during layer
based exports when the stacking position is set not set to above labels

Fixes #32763
2019-11-27 05:06:37 +10:00
Nyall Dawson
42d6c3941f Hide coordinate operations which utilise a LAS/LOS grid shift file,
which are unsupported by proj 6

E.g. some candidate operations between EPSG:3035 and EPSG:5514

Since these can NEVER (as of now) be instantiated by proj, even if
the grid shift files are present, it's misleading to present them
as options to users.

Refs #30569
2019-11-26 03:59:39 +10:00
Vincent Cloarec
938aa58df8 [FEATURE] Streamlines Renderer for vector dataset on mesh layer. (#32996)
* [FEATURE] Mesh streamlines

fix #29534

The vector field data set in a mesh layer can currently be only rendered with arrows. This PR adds a new feature to render vector field in mesh layers with streamlines. 
The streamlines are seeded from start points. The seeding points can start from the vertices of the mesh, from a used grid or randomly. Streamlines could be coloured or width can be selected.
2019-11-25 08:54:11 +01:00
Jorge Gustavo Rocha
529aea6f4e Fix WMTS Capabilities document and related tests 2019-11-25 10:12:09 +10:00
Nyall Dawson
e8ec0042f4 [FEATURE][diagrams] Paint effect support for diagram renderer
Allows for diagrams to use paint effects, including drop shadows,
outer glows, etc...

Sponsored by SLYR
2019-11-25 06:20:43 +10:00
Nyall Dawson
204bd47b19 [FEATURE][diagrams] New diagram type "stacked bars"
Stacks bars of varying colors for each attribute on top of each other
vertically or horizontally.

Sponsored by SLYR
2019-11-24 19:11:21 +10:00
Nyall Dawson
9a23e1b209 [FEATURE][diagrams] Add option to show diagram axis for histogram diagram symbols
Where the axis line symbol can be set using a standard QGIS line symbol.

Sponsored by SLYR
2019-11-23 18:06:18 +10:00
Nyall Dawson
bfd925dc31 [diagrams] Fix placement of histogram diagrams with bar spacing set 2019-11-23 18:06:18 +10:00
Nyall Dawson
abb643825c [diagrams] Fix bars drawn outside of registered diagram extent for some orientations 2019-11-23 18:06:18 +10:00
Even Rouault
ed7d13da7c QgsCoordinateTransform::transformCoords(): with PROJ 6, do no raise on partial failure of multiple point transformation
Fixes #32973 or at least improve it significantly

Currently with PROJ 6 transformCoords() will raise an exception as soon
as a single point fails to transform. With PROJ < 6, this (generally)
did not occur. Exceptions were raised only (mostly) on failures on
single point.
Imitate that
2019-11-23 14:02:21 +10:00
Even Rouault
e75ff1b592
QgsVectorFileWriter: fix axis order issue with GDAL 3 (fixes #33014) 2019-11-22 20:18:50 +01:00
Alessandro Pasotti
22a72bef6b
Merge pull request #33012 from elpaso/bugfix-gh-33000-time-support
Fix time (and date) fields editing in forms
2019-11-22 17:04:32 +01:00
Alessandro Pasotti
2c61eb39a0 Address comments 2019-11-22 16:00:01 +01:00
Alessandro Pasotti
17a700b34b Fix time (and date) fields editing in forms
Fixes #33000
2019-11-22 11:33:52 +01:00
Matthias Kuhn
63911c1d01
Merge pull request #32551 from rduivenvoorde/from_epoch
[FEATURE] Add datetime_from_epoch (MSec from epoch) expression function
2019-11-22 11:09:37 +01:00
Nyall Dawson
baf38199e0 [FEATURE][diagrams] Add option to control pie diagram angular direction
I.e. control whether the sections are rendered in a clockwise or
anticlockwise direction

Sponsored by SLYR
2019-11-22 09:01:49 +10:00
Nyall Dawson
701ea057b1 Fix broken QMap<QVariantList,...> finding, which causes case-insensitive
comparisons to be made when resolving primary keys in the Oracle and
Postgres providers

qt's built in qMapLessThanKey for QVariantList is broken and does a
case-insensitive operation, so we replace it with a working version instead...
2019-11-22 04:09:50 +10:00
rldhont
b14d7a8d0e
Merge pull request #32800 from rldhont/fix-server-round-precision-extent
[Bugfix][Server] Correctly round extent coordinates in services capabilities
2019-11-21 19:02:29 +01:00
Alessandro Pasotti
8913fb34e6
Merge pull request #32114 from troopa81/fix_feature_count_estimated_metadata
Fix featureCount on postgres view when flag estimatedmetadata is set
2019-11-21 18:21:51 +01:00
rldhont
a60ea5d78e [Server] Update WMS GetProjectSettings tests for round extent in GetCapabilities 2019-11-21 18:08:33 +01:00