73230 Commits

Author SHA1 Message Date
nirvn
b6d6707512 [ui] Relocate 'traditional' annotation toolbar actions into the new annotations toolbar 2021-09-13 04:18:55 +07:00
nirvn
b46854adf6 [qgsquick][annotations] Render projects' main annotation layer 2021-09-11 21:52:16 +07:00
Matthias Kuhn
6d5d8e807e
Merge pull request #45025 from gacarrillor/patch-2
Set wait cursor while installing plugin from ZIP
2021-09-11 07:38:42 +02:00
Germap
a0b7f14d58
Use 'with OverrideCursor(Qt.WaitCursor)' block in installer.py 2021-09-10 19:17:17 -05:00
Nyall Dawson
eef9176822 Fix build 2021-09-11 07:59:51 +10:00
Nyall Dawson
b12d163c47 Translate 2021-09-11 07:59:51 +10:00
Nyall Dawson
45b886727b Improve docs 2021-09-11 07:59:51 +10:00
Nyall Dawson
24a9509363 Shorten class name 2021-09-11 07:59:51 +10:00
Nyall Dawson
5234442295 [processing] Add an algorithm which transfers all items from the
main annotation layer in a project to a secondary annotation layer

Useful for moving items created in the main layer to a secondary
layer, so that the item placement can be adjusted within the
layer stack
2021-09-11 07:59:51 +10:00
Nyall Dawson
c2c0f2574d [processing] Add parameter type for annotation layers 2021-09-11 07:59:51 +10:00
Germap
d8f02f98c6
Set wait cursor while installing plugin from ZIP 2021-09-10 16:52:29 -05:00
Andrea Giudiceandrea
1b1e80de86 Fix test for gdal_merge with nodata value 2021-09-11 06:15:47 +10:00
Andrea Giudiceandrea
44744e2679 [processing] Fix NODATA parameters in GDAL Merge alg
Set NODATA_INPUT and NODATA_OUTPUT as QgsProcessingParameterNumber.Double parameters, instead of QgsProcessingParameterNumber.Integer
2021-09-11 06:15:47 +10:00
Nyall Dawson
ae4c1b0d2a Add missing transfer annotation 2021-09-11 06:14:45 +10:00
nirvn
804bf021cc Adjust control image 2021-09-11 06:14:13 +10:00
nirvn
3b07f3b948 [ui][annotations] Add insert expression button in the point text widget 2021-09-11 06:14:13 +10:00
nirvn
b111f518d7 [annotations] Support expression-based text items 2021-09-11 06:14:13 +10:00
rldhont
922b8fffc5
Merge pull request #44826 from rldhont/vector-tiles-custom-def
[API] Encode and write vector tiles in different CRS than EPSG:3857
2021-09-10 12:44:36 +02:00
rldhont
da4240449d Encode and write vector tiles in different CRS than EPSG:3857
The Mapbox Vector Tile specification provides these definition for projection and bounds.

A Vector Tile represents data based on a square extent within a projection. A Vector Tile SHOULD NOT contain information about its bounds and projection. The file format assumes that the decoder knows the bounds and projection of a Vector Tile before decoding it.

Web Mercator is the projection of reference, and the Google tile scheme is the tile extent convention of reference. Together, they provide a 1-to-1 relationship between a specific geographical area, at a specific level of detail, and a path such as https://example.com/17/65535/43602.mvt.

Vector Tiles MAY be used to represent data with any projection and tile extent scheme.

It is possible to encode and write vector tiles in different CRS than EPSG:3857.

The implementation used the CRS bounds to defined the tile 0 top left coordinates and the scale denominator for 0 zoom level.
2021-09-10 11:44:34 +02:00
rldhont
95328eea99 Tile Matrix in different CRS
Add a new static method to QgsTileMatrix to get tile matrix in different CRS with top left point and scale denominator for 0 zoom level.
2021-09-10 11:44:34 +02:00
Nyall Dawson
9adc3aa274 Update src/app/annotations/qgsannotationlayerproperties.cpp
Co-authored-by: Mathieu Pellerin <nirvn.asia@gmail.com>
2021-09-10 18:26:39 +10:00
Nyall Dawson
555dce58a5 Update src/app/annotations/qgsannotationlayerproperties.cpp
Co-authored-by: Mathieu Pellerin <nirvn.asia@gmail.com>
2021-09-10 18:26:39 +10:00
Nyall Dawson
9772e04100 Make layer renderer properties collapsible 2021-09-10 18:26:39 +10:00
Nyall Dawson
5295bf4ef9 [feature] Add "Main Annotation Layer Properties" option in the
annotation toolbar

This gives users access to setting properties for the main
annotation layer (the hidden one which always sits above all
other map layers), e.g. if they want to set the blend mode/opacity/
effect for this layer.
2021-09-10 18:26:39 +10:00
Nyall Dawson
ac66a8ffd5 Fix incorrect styling widget dock page is selected after opening layer properties for an annotation layer 2021-09-10 18:26:39 +10:00
Nyall Dawson
0f1cbd2b07 Also show annotation layer opacity, blend mode and paint effect widget
in the layer styling dock, so that live changes can be made
2021-09-10 18:26:39 +10:00
Nyall Dawson
5e150f9262 Allow paint effects to be applied to an annotation layer 2021-09-10 18:26:39 +10:00
Nyall Dawson
94051ebb47 Annotation layer opacity and blend modes can be set through the layer
properties dialog
2021-09-10 18:26:39 +10:00
Nyall Dawson
7d10778379 Show item counts in annotation layer metadata 2021-09-10 18:26:39 +10:00
Nyall Dawson
fbce5ad864 Implement html metadata for annotation layers 2021-09-10 18:26:39 +10:00
Nyall Dawson
985b989276 Initial starting point for annotation layer properties page 2021-09-10 18:26:39 +10:00
Vincent Cloarec
4e0d0f6692
Select by existing geometries (#45006)
[mesh] [feature] mesh select  element by existing selected polygon
2021-09-10 08:00:55 +02:00
Nyall Dawson
87d42afb31 Add explanatory comment 2021-09-10 15:01:26 +10:00
Nyall Dawson
5262bcb9f3 Remove remnant 2021-09-10 15:01:26 +10:00
Nyall Dawson
f66eeebd60 Add snap indicator 2021-09-10 15:01:26 +10:00
Nyall Dawson
e0c5cceeca Fix crash when using interpolated line symbol layer with non-vector
layer symbols
2021-09-10 15:01:26 +10:00
Nyall Dawson
3f3e891f8d Double clicking a segment adds a vertex to an annotation 2021-09-10 15:01:26 +10:00
Nyall Dawson
4cb06c0ae2 Add an annotation item edit operation for adding nodes 2021-09-10 15:01:26 +10:00
Nyall Dawson
a7d299df92 Use an edit operation for annotation item translation, instead of
transform

Will make it easier to add undo/redo support in future
2021-09-10 15:01:26 +10:00
Nyall Dawson
f76b262ac0 [feature] Pressing delete/backspace will delete the current node
when editing an annotation item
2021-09-10 15:01:26 +10:00
Nyall Dawson
1228f59bff Make annotation item edit API a bit more flexible 2021-09-10 15:01:26 +10:00
Nyall Dawson
4b245f59e0 Add new annotation edit operation for deleting a vertex 2021-09-10 15:01:26 +10:00
Nyall Dawson
8cf4903204 Don't expose QgsMapToolModifyAnnotation to python
We want to leave this private for now, to give flexibility to change
api if/when needed
2021-09-10 15:01:26 +10:00
Nyall Dawson
c1260f2a4e Add unit tests for moving annotation item nodes 2021-09-10 15:01:26 +10:00
Nyall Dawson
a85c8cb91e [feature] Modify annotation tool can now be used to move nodes in
an annotation item

Left clicking over a node will start moving it, a second left
click will confirm the move. Right click cancels the move.
2021-09-10 15:01:26 +10:00
Nyall Dawson
5ea9c633cd Fix spatial index resolution in rendered item results 2021-09-10 15:01:26 +10:00
Nyall Dawson
1537d393e3 Add framework for retrieving the temporary results of a in-progress
edit operation on an annotation item

This is used for the item to return a representative geometry
of what the item would look like if the operation were to be
applied. It's used to generate a rubber band showing a preview
of the modification during interactive editing operations on
an annotation item.
2021-09-10 15:01:26 +10:00
Nyall Dawson
1fe874315a Add method to apply a annotation item edit operation directly
onto a QgsAnnotationLayer
2021-09-10 15:01:26 +10:00
Nyall Dawson
631343265d Allow QgsAnnotationItemEditOperationMoveNode operations to be
applied to annotation items to move nodes in the item
2021-09-10 15:01:26 +10:00
Nyall Dawson
a87206dbdf Create QgsAbstractAnnotationItemEditOperation as base class for
edit operations on annotation layers, with initial implementation
as QgsAnnotationItemEditOperationMoveNode

This class encapsulates edit operations which apply to annotation
layers/items
2021-09-10 15:01:26 +10:00