17250 Commits

Author SHA1 Message Date
Denis Rouzaud
dd560f49b3
move the logic to save line edit state to QgsLineEdit (#36117) 2020-05-01 14:17:58 +02:00
Alexander Bruy
dc023e6cdb
Merge pull request #36032 from alexbruy/service-area-units
[processing] use hours as cost units for service area algorithms (fix #30464)
2020-04-30 21:07:58 +03:00
Alexander Bruy
5d7871fa0c fix tests 2020-04-30 18:52:35 +03:00
Denis Rouzaud
578ab8596d
Merge pull request #36089 from 3nids/expression-preview
Feature browser for preview in expression builder
2020-04-30 17:50:10 +02:00
Denis Rouzaud
3fd45ecaff add browsing buttons 2020-04-30 09:41:05 +02:00
Denis Rouzaud
9488f06025 code layout 2020-04-30 06:52:22 +02:00
Alexander Bruy
9a53837946 add new parameter and hide old one 2020-04-30 07:46:05 +03:00
uclaros
b6f890ec11 fix typo 2020-04-30 09:03:18 +10:00
Nyall Dawson
17c8a59e4e Refactor QgsLineString::interpolatePoint to extract segment traversal
to a separate visitor function

This allows other code paths to utilise this same logic in an efficient
way
2020-04-30 08:23:43 +10:00
Alessandro Pasotti
909dd31108
Merge pull request #36087 from Samweli/provider_metadata_bool_params
Functions for adding a variant of bool params in provider metadata
2020-04-29 18:47:22 +02:00
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
Samweli
0cbb4dbb5b add setting of bool params in provider metadata 2020-04-29 14:05:08 +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