a vector layer
If set, then that symbol will be used for selected features. Allows
eg selected lines to be rendered in a thicker line style vs
non-selected lines for improved visibility.
datasources which support editing comments
This support is currently limited to the postgres provider,
so exposing the comment field for all other vector layer types
is just misleading to users. The comment will be completed discarded
without any warning!
operation to the vector layer edit buffer
Eg Instead of emitting layerModified for every individual feature
in a call to QgsVectorLayer::addFeatures, we defer the signal
and emit it only once after adding all the features.
This avoids a lot of expensive, unnecessary work which is triggered
by the signal
The `QgsMapToolAddRing` adds a ring through the `addRing` method of
`QgsVectorLayerEditUtils` called by this of `QgsVectorLayer`.
The bug described in #23113 indicates that only one of the entities receives the
ring addition when using the map tool.
This is consistent with the documentation of the `addRing` methods.
So, it is by design that the tool works like this.
However, as stated in the ticket, it is best to add the ring to all entities.
In order to avoid an api break, I added a new addMultiRing method that adds the ring on all entities.
Fixes#23113
To be able to open vector layer in a read-only mode, a new vector layer option has been defined to do it.
This option is used to open world_map.gpkg and fixes#35383
In most cases of use of QGIS Server, it is not necessary to access the layers in write mode.
The read-only mode is sufficient.
We would like to introduce a new flag Qgis::ProjectReadFlag::ForceLayerReadOnly to
open layers in a read-only mode.
Choices are "individual features" (the default behavior) or "continuous
surface". The new Continuous Surface option is designed for vector
layers which represent a continuous elevation surface, e.g contour
lines or surveyed elevation points. When selected, the elevation
chart will be rendered as a surface instead of separate features
by joining the sampled elevation results into a continuous line.
There's also the same option exposed as for raster and mesh layers
where the appearance can be toggled from a single line to a "fill
below" symbol.
Fixes#48341