17239 Commits

Author SHA1 Message Date
Denis Rouzaud
0119bb52e1 add setting for fetch limit 2020-04-29 15:54:16 +02:00
Denis Rouzaud
3090824cbf add a property to determine if geometry is fetched 2020-04-29 15:54:15 +02:00
Denis Rouzaud
ae5988cbb1 do not use template since they cannot be mixed with Q_OBJECT 2020-04-29 15:54:15 +02:00
Denis Rouzaud
780b581f03 use a template approach 2020-04-29 15:54:15 +02:00
Denis Rouzaud
01516d75e2 reintroduce reload current feature 2020-04-29 15:54:15 +02:00
Denis Rouzaud
82da0fd962 rename QgsFeatureChooser to QgsFeaturePicker 2020-04-29 15:54:15 +02:00
Denis Rouzaud
3cd237eca7 more work 2020-04-29 15:54:15 +02:00
Denis Rouzaud
97dafe1fe9 move the expression preview to a dedicated class 2020-04-29 15:54:15 +02:00
obrix
44fec550d5 Invert th meaning of min scale and max scale to be coherent with other qgis feature. Minimum scale is the most zoomed out scale, maximum scale the most zoomed in. Enrich the tooltip to be more explicit. Should fix issue #35786. 2020-04-29 13:00:39 +02:00
Nyall Dawson
69e841a256 Allow specifying hidden parameter values when setting initial parameter values for an algorithm dialog 2020-04-29 17:10:52 +10:00
vcloarec
d28e3013f9 fix sip doc 2020-04-29 08:53:26 +10:00
vcloarec
56916581e1 fix sip 2020-04-29 08:53:26 +10:00
rldhont
19d2dc5b96
Merge pull request #35939 from Gustry/project_title
check project root name in the server validator
2020-04-28 18:51:46 +02:00
Nyall Dawson
e89b7283fe Fix exception when editing certain model algorithms
Fixes #36036
2020-04-28 19:21:24 +10:00
Nyall Dawson
40db7f9efd [processing] Fix subset string is ignored for vector layers when
running GDAL algorithms

If a subset string is set, we must export the subset of the layer
for use by the GDAL command*

Fixes #35981

* well, we probably **should** just build the gdal command to include
the SQL definition of the subset filter, but that's non-trivial, so
this fix is a good simple solution for now
2020-04-28 19:21:00 +10:00
Nyall Dawson
38dfcdfc46 Deprecate QgsLegendRenderer methods which use raw QPainter and force use of QgsRenderContext 2020-04-28 18:19:59 +10:00
Nyall Dawson
0c64fd7907 [FEATURE] Allow overriding the legend patch size on a per-item basis
Allows users to override the symbol patch size for individual legend
nodes, by double clicking the node

Width and height can be individually overridden, with the node falling
back to the default width or height when the override isn't set.

Sponsored by SLYR
2020-04-28 11:31:43 +10:00
Martin Dobias
c2a7f25829 Improvements to the vector tile writer
- filtering of input layers by expressions and min/max zoom level
- custom layer names in the output
- writing of custom metadata for MBTiles output
- auto-calculate output extent (instead of defaulting to the whole world's extent)
- passing transform context to the encoder
2020-04-27 12:09:25 +02:00
Vincent Cloarec
c2bc0f63e3
[MESH] fix mesh calculator saving for windows (#35963)
fix mesh calculator saving for windows (fix #35549)
2020-04-27 11:18:19 +02:00
Matthias Kuhn
d62c982b6f
Merge pull request #35983 from espinafre/dbmanager_pgsql_constraint_trigger
Handle CONSTRAINT TRIGGER on DB Manager/PostgreSQL.
2020-04-27 08:01:22 +02:00
uclaros
f2353ec934 Make progress count from 0 to 100 2020-04-27 13:41:58 +10:00
Mathieu Pellerin
5843fc4e34 Follow up commit ff2b2e8 : safer approach + test case 2020-04-27 06:28:47 +10:00
José de Paula Rodrigues Neto Assis
304a3d9509 Comment clarifying query against pg_catalog 2020-04-26 15:02:43 -03:00
Martin Dobias
6f746b557e Add writing of vector tiles to MBTiles container 2020-04-25 14:31:10 +02:00
Etienne Trimaille
051e949f68
check project root name in the server validator 2020-04-25 09:28:35 +02:00
Alexander Bruy
81911c1afc remove server search URL from settings
remove server search tab from OWS dialog
2020-04-25 04:52:01 +10:00
Juergen E. Fischer
2e7bebcf20 add code_layout test to verify that UIs either have a non-default window title or are not marked for translation 2020-04-24 16:30:45 +02:00
Juergen E. Fischer
067e9254e7 translation string fixes 2020-04-24 16:30:45 +02:00
José de Paula Rodrigues Neto Assis
689bcc6020 Handle CONSTRAINT TRIGGER on DB Manager/PostgreSQL.
Fixes #35967
2020-04-24 11:27:43 -03:00
Vincent Cloarec
f8fae3cf39
[FEATURE][MESH] 1D mesh width/color varying (#35926)
Introduce a renderer for 1D mesh edges that can vary width over the line. The line can also have different color based on the actual dataset value on the line's point.

Co-authored-by: Peter Petrik <zilolv@gmail.com>
2020-04-24 10:49:24 +02:00
Long Huan
f3c8a27743 Update CMakeLists.txt 2020-04-24 14:46:06 +10:00
Long Huan
70eccf30ac SET CMAKE_AUTORCC ON 2020-04-24 14:46:06 +10:00
Alessandro Pasotti
6bab957c89
Merge pull request #35946 from elpaso/server-wfs3-little-cleanup
Server little cleanup (class documentation)
2020-04-23 21:42:20 +02:00
Nyall Dawson
1af8b8178b Add some helpful scoped RAII classes for use with QgsRenderContext
QgsScopedRenderContextPainterSwap: allows for temporarily swapping
the destination painter object for a QgsRenderContext for the lifetime
of the object

QgsScopedRenderContextScaleToMm: temporarily rescales a render context
destination painter device to use millimeter based units for the lifetime
of the object

QgsScopedRenderContextScaleToPixels: temporarily rescales a render
context (which has been scaled to millimeter based units) back
to pixel based units, for the lifetime of the object
2020-04-24 04:07:33 +10:00
olivierdalang
2d6b939225
Fix QgsAbstractGeometry->segmentize() not returning correct WkbType for multi-geometries 2020-04-24 04:03:55 +10:00
Nyall Dawson
5b6589f6dc Cleanup QgsCoordinateReferenceSystem WKT enum
- alias WKT_2018* to new WKT_2019* values, since the spec is actually
2019, not 2018
- add WKT_PREFERRED value which currently aliases to WKT2_2019, but
can be changed if/when future bumps to the WKT spec happen
- add WKT_PREFERRED_GDAL which should be used whenever a CRS is
exported to WKT for use with GDAL API. Aliases to WKT2_2019 currently,
but can be changed if/when a new spec is released and GDAL supports it
2020-04-24 03:59:28 +10:00
Matthias Kuhn
5d45b71421
Merge pull request #33950 from DelazJ/renameMapTheme
[feature] Allow renaming of the current map theme
2020-04-23 16:55:17 +02:00
Alessandro Pasotti
860fb23e36 Server little cleanup (class documentation)
Plus removed sql injection protection from
sanitize because:

1. it was not required: the value goes into a QgsExpression and it's
never sent to a provider directly
2. it could have been misused with the wrong assumption that
it was robust implementation (it wasn't)
2020-04-23 12:17:09 +02:00
Etienne Trimaille
4e7018db79
update english after PR review in the project validator 2020-04-22 11:22:45 +02:00
Etienne Trimaille
471979aa50
move the QGIS Server validator from the project properties to its own class 2020-04-22 09:33:08 +02:00
Alexander Bruy
f5691e175e
Merge pull request #35869 from alexbruy/python-deprecated
fix deprecation warning in qgis.utils (fix #32786)
2020-04-22 08:43:47 +03:00
Nyall Dawson
ec2894ea32 Show favorited legend patches in legend patch button menu 2020-04-22 12:43:01 +10:00
Nyall Dawson
8a0e007ba5 [FEATURE] Support legend patch shapes in style manager databases
And clean up a lot of duplicate code which makes adding new types
to QgsStyle painful
2020-04-22 12:43:01 +10:00
Alexander Bruy
b524929d20 remove condition 2020-04-21 14:47:56 +03:00
Alexander Bruy
0e59d13af5 fix deprecation warning in qgis.utils caused by deprecating
imp.new_module() call in Python 3.4 (fix #32786)
2020-04-21 14:47:56 +03:00
Martin Dobias
0973da69b1 Nyall's review suggestions, test fixes, windows build fix 2020-04-21 13:28:56 +02:00
Martin Dobias
da4764472e sip fix 2020-04-21 13:28:56 +02:00
Martin Dobias
41db54aa16 [FEATURE] Vector tiles writer API
Initial work... Currently supporting output to a directory based on XYZ template, using Mapbox vector tiles encoding.

New classes:
- QgsVectorTileMVTEncoder - low-level class that operates on a single tile, converts vector features to raw tile byte array, for internal use
- QgsVectorTileWriter - higher level class that manages generation of multiple tiles, for use by clients
- QgsVectorTileMVTUtils - assorted helper functions for MVT encoding/decoding
2020-04-21 13:28:56 +02:00
Nyall Dawson
5f834d66df Spelling 2020-04-21 10:40:50 +10:00
Nyall Dawson
ddbcb1f478 [FEATURE][layouts] Allow configuring legend patch shapes by
double-clicking on legend items

Allows users to set custom legend patch shapes for items by
entering a WKT string representing the patch geometry
2020-04-21 10:40:50 +10:00