In OGC WMS standard, the empty string represents the default style.
QGIS Server when it parses the parameters, QGIS Server when it parses parameters it removes empty parts.
When all requested styles are default ones it's equal to an empty parameter STYLE, as defined in the standard.
When only one layer is requested, there is no issue with custom or default style.
When multiple layers are requested and some with custom styles, because QGIS Server does not retain empty strings, it loses the layer / style match.
To fix it, keeps empty parts for not empty styles parameters.
and thus we cannot change it's settings once it is created
Signed-off-by: Marco Bernasocchi <marco@opengis.ch>
Signed-off-by: Marco Bernasocchi <marco@opengis.ch>
Signed-off-by: Marco Bernasocchi <marco@opengis.ch>
add init_server method
Signed-off-by: Marco Bernasocchi <marco@opengis.ch>
Use own qgs application so we can change the env settings
Signed-off-by: Marco Bernasocchi <marco@opengis.ch>
Signed-off-by: Marco Bernasocchi <marco@opengis.ch>
remove unused mServerSettings
Signed-off-by: Marco Bernasocchi <marco@opengis.ch>
Fix typo and code style
Signed-off-by: Marco Bernasocchi <marco@opengis.ch>
Fix test
Fix test
Previously, when marker or hash lines were rendered using interval
or center point place placement, the symbol angles were determined
by taking the exact line orientation at the position of the symbol.
This often leads to undesirable rendering effects, where little
jaggies or corners in lines which occur at the position of the
symbol cause the marker or hash line to be oriented at a very
different angle to what the eye expects to see.
With this new option, the angle is instead calculated by averaging
the line over a specified distance either side of the symbol. E.g.
averaging the line angle over 4mm means we take the points along
the line 2mm from either side of the symbol placement, and use these
instead to calculate the line angle for that symbol. This has the
effect of smoothing (or removing) any tiny local deviations from
the overall line direction, resulting in much nicer visual
orientation of marker or hash lines.
Like all symbol settings, the average angle smoothing distance
can be set using mm/pixels/map units/etc, and supports data-defined
values.
Closed rings also correctly consider wrapping around these average
angles from the start/end vertex.
(Sponsored by an anonymous corporate backer)
This logic is too complex and fragile -- we should drop support for proj 6.0
as soon as we can, so that we can the inbuilt handling which
is enabled for proj >= 6.1 only.
* [theme] fix invisile text in field expression widget in dark themes
only on MacOS at the moment
* switch back to original palette
* remove useless includes
* don't use pointer
This hack was introduced when Qt had poor support of Mac Dark Theme so that the combination of the default QGIS theme and Dark Theme on the OS was forcing to use QGIS Night Mapping theme.
Since Qt 5.12, it does look good and it's the last Qt LTS version.
If the group (or the root) has any queryable child, it is flagged as queryable
Also fixes an issue with json enconding with rasters.
Fixes#21697
Funded by: Kanton Zug