Alessandro Pasotti
98bd6d651b
Fix path resolver with extra URL-like stuff
...
Like for CSVs: see #21150
2019-02-25 15:23:18 +01:00
Blottiere Paul
9f576b678e
Merge pull request #9204 from troopa81/wms_filters
...
Add possbility to define one filter for several layers
2019-02-25 09:05:08 +01:00
Víctor Olaya
13bff9620c
[processing] do not allow using unsupported file formats
...
Show warning message if user selects incompatible output file format
fixes #21089
2019-02-23 05:24:56 +10:00
Nyall Dawson
e31fb920e7
[processing] Add API to allow custom expression variables to be set
...
for a model
2019-02-23 05:23:23 +10:00
lbartoletti
fbc22e2005
[feature] Add an option to cartesian measurement
...
Adds an option force Cartesian measurements to the measure distance/area dialogue
Fixes #19902
2019-02-23 05:22:54 +10:00
Nyall Dawson
db1a1929a4
[FEATURE][expressions] Simplified variant of "attribute" function
...
This adds a second variant for the existing "attribute" function.
The current function requires both a target feature and attribute
name to be specified, while the NEW variant just uses the current
feature.
E.g.
NEW:
attribute( 'name' ) -> returns the value stored in 'name' attribute
for the current feature
EXISTING:
attribute( @atlas_feature, 'name' ) -> returns value stored in 'name'
attribute for the current atlas feature
It's just a faster shorthand version!
2019-02-23 05:20:52 +10:00
Mathieu Pellerin
3433c9cc88
[FEATURE][3d] Add camera lens field of view settings
2019-02-23 05:20:38 +10:00
Julien Cabieces
9aa00230a7
Correct code formatting
2019-02-22 11:02:03 +01:00
Julien Cabieces
b01239449f
Update mask
2019-02-22 10:53:23 +01:00
Juergen E. Fischer
130f3edde9
fix build warning with msvc
2019-02-22 10:13:11 +01:00
Mathieu Pellerin
78e8c34200
[legend] Fix alignment and chopped off text of collapsed data-defined size legend symbol ( #9228 )
2019-02-22 15:18:06 +07:00
Even Rouault
df295a801a
Merge pull request #9234 from rouault/fix_21335
...
QgsGmlStreamingParser: fix parsing of GML geometries with srsDimension='3' set on posList element (fixes #21335 )
2019-02-21 19:15:03 +01:00
Even Rouault
466dc359d7
QgsGmlStreamingParser: fix parsing of GML geometries with srsDimension='3' set on posList element ( fixes #21335 )
2019-02-21 17:39:27 +01:00
Julien Cabieces
a2bc1fff7d
Add getmap with error on filter
2019-02-21 16:44:36 +01:00
Alessandro Pasotti
17280c3e4d
Merge pull request #9203 from elpaso/bugfix-21305-paste-slow-no-provider
...
Cache unique values when creating features
2019-02-21 08:31:41 +01:00
Julien Cabieces
1c34329234
Allow expression widget to be empty so expression could be removed ( #9032 )
...
* fixes #20516 : Allow Constraint widget in attribute type form to be empty so expression could be removed
per widget modification
* correct tests
* Add the clear button on field expression widget when widget is allowed to be empty
* Change API since version to 3.6
2019-02-20 14:41:38 -05:00
Nyall Dawson
2609d9f057
Update test
2019-02-21 02:49:49 +10:00
Nyall Dawson
33aa63b855
Fix feature request containing a filter expression which needs
...
both geometry and the magic all attributes flag
2019-02-21 02:49:49 +10:00
Alessandro Pasotti
2604fc70c5
Test for regression #21304 "default value" is not applied when pasting features
2019-02-20 10:17:09 +01:00
Nyall Dawson
f3cb3488ec
Fix loss of precision when converting fields to uri in memory provider
...
Fixes #21316
2019-02-20 17:42:07 +10:00
Alessandro Pasotti
ff9a65c1b4
Merge pull request #9193 from elpaso/bugfix-21270-processing-algrunner-crash
...
Processing: fix crash in alg runner task with bad scripts
2019-02-20 07:43:50 +01:00
Matthias Kuhn
9c888bb30e
Update tests/src/python/qgis_wrapped_server.py
...
Co-Authored-By: elpaso <elpaso@itopen.it>
2019-02-20 13:38:40 +10:00
Alessandro Pasotti
cf5533e06e
Revert "remove 'multithreading is not supp in server text'"
...
This reverts commit 6c1036c5c0634a0381b17b03472ab012faefec58.
2019-02-20 13:38:40 +10:00
Nyall Dawson
979adbbabf
Indicate exception types to sip
...
Exposes the full Python exception when an error occurs in createInstance()
2019-02-20 13:05:09 +10:00
Julien Cabieces
627230c10a
fixes #18421 : Keep options AUTO_REPACK=OFF when reloading data in ogr provider
2019-02-20 11:48:11 +10:00
Mathieu Pellerin
7599d4f8d5
[expression] Add try() function to provide a way to detect and handle
...
expressions which can intermittently fail.
2019-02-20 06:27:43 +07:00
Nyall Dawson
c8a4dff475
Add maximum search distance parameter to QgsSpatialIndex::nearestNeighbor
2019-02-20 05:40:02 +10:00
Nyall Dawson
362ba02ade
When a QgsSpatialIndex is storing feature geometry, then
...
nearestNeighbor search performs an EXACT nearest neighbour search,
instead of just a nearest-neighbour-by-bounding-box search
2019-02-20 05:40:02 +10:00
Nyall Dawson
26555358f9
Add API for QgsSpatialIndex to optionally store feature geometries
...
This potentially avoids a second expensive feature request after
building a spatial index and later needing to re-request features
which match spatial index search.
It's non-default, as it requires the index to store all feature
geometries, so it's more memory expensive.
2019-02-20 05:40:02 +10:00
Nyall Dawson
68b460277e
layer_property expression function should use proper layer metadata
...
for return values where available
...instead of the older, server-specific properties
This affects:
- layer_property(...,'title')
- layer_property(...,'abstract')
- layer_property(...,'keywords')
- layer_property(...,'attribution')
2019-02-20 05:39:30 +10:00
Nyall Dawson
69c703141e
Auto set algorithm linked to newly created QgsProcessingAlgorithmConfigurationWidget instances
2019-02-20 05:39:04 +10:00
Alessandro Pasotti
d239ea2df9
Fix unique values when generating a set of features
2019-02-19 19:04:48 +01:00
Alessandro Pasotti
03cc355f8e
Catch exception from script and pipe it into feedback
2019-02-19 16:57:58 +01:00
Alessandro Pasotti
5d7a7ac973
Fix unique values on SQLite (OGR) pk
2019-02-19 14:56:10 +01:00
Alessandro Pasotti
818611cc79
Fix renamed QgsVectorLayerUtils.QgsFeatureData
2019-02-19 14:55:55 +01:00
Alessandro Pasotti
1689c9364b
Fix unique values on GPKG pk
...
Fixes #21311
2019-02-19 14:48:10 +01:00
Julien Cabieces
21bfcfcca8
[FEATURE][needs-docs] Add possbility to define one filter for several layers
2019-02-19 11:07:49 +01:00
Alessandro Pasotti
ba3d9ed066
Cache unique values when creating features
...
Fixes #21305 - pasting features is very slow
Aggressively optimize createFeature for speed
and introduces createFeatures for bulk creation.
2019-02-19 10:02:17 +01:00
Alessandro Pasotti
e735d9fc75
spellcheck
2019-02-18 16:06:16 +01:00
Alessandro Pasotti
8db38afb86
Processing: fix crash in alg runner task with bad scripts
...
Fixes #21270
With test
2019-02-18 15:21:10 +01:00
Nyall Dawson
5ced04e400
[ogr] Read Geopackage layer identifier and description into QGIS
...
layer metadata automatically
Fixes #21293
2019-02-18 17:56:01 +10:00
Alessandro Pasotti
091eeb2cf4
Rule based renderer: check for scale in rulesForFeature
...
... when context is not nullptr, also don't crash if it is
With tests
Fixes #21287
2019-02-15 17:12:51 +01:00
Nyall Dawson
71bdc3192d
Fix pasting linestring into polygon layer should auto convert to polygon
...
(And polygon->lines, lines->points, polygon->points, etc)
Fixes #21213
2019-02-15 16:24:56 +10:00
Hugo Mercier
9ed5b3f874
Merge pull request #9063 from mhugo/fix_19355
...
Fix $length in labels
2019-02-14 14:34:13 +01:00
Hugo Mercier
809196693c
Fix $length in labels ( fixes #19355 )
...
Use the project expression scope to access project
parameters (ellipsoid and distance/area units)
2019-02-14 13:40:12 +01:00
Alessandro Pasotti
24c09d1673
Merge pull request #9170 from elpaso/bugfix-21254-load-style-from-db
...
[ogr] Show style description instead of name in other styles
2019-02-14 08:25:40 +01:00
Nyall Dawson
7418c189d0
[processing] Also generate friendly names for outputs when converting models to scripts
2019-02-14 15:36:55 +10:00
Nyall Dawson
d342ce939b
[processing] When converting models to Python, use friendlier (more
...
descriptive) names when storing child algorithm results
Makes for much easier to understand scripts
2019-02-14 15:36:55 +10:00
Nyall Dawson
3ceea2a050
[processing] Add alg descriptions as comments when converting models to python
...
Makes for easier to understand scripts
2019-02-14 15:36:55 +10:00
Alessandro Pasotti
62111b9993
Fix test
2019-02-13 18:28:46 +01:00