Nyall Dawson
c0640c67b0
[processing] Add flag for algorithms with known issues
2019-03-06 06:33:06 +10:00
Nyall Dawson
d84b70f04d
[processing] Add acceptable string values to parameter metadata
...
Returns a descriptive list of the possible string values acceptable
for the parameter.
E.g. for a QgsProcessingParameterVectorLayer this may include
"Path to a vector layer", for QgsProcessingParameterBoolean
"1 for true, 0 for false" etc.
2019-03-04 07:57:24 +10:00
nirvn
b5146db92e
Use the QgsSqliteUtils system tables list in DB Manager
2019-03-01 12:30:04 +07:00
Nyall Dawson
75697d77ed
Cache validity check results
...
For non-point geometry subclasses (points are always valid!) we
now cache the results of a geometry validity check. Subsequent
checks utilise the cached result wherever possible.
Because QgsGeometry/QgsFeature objects are implicitly shared, this
means that we avoid a *lot* of duplicate validity checks as
features and geometries are thrown around during processing model
execution.
2019-03-01 08:06:31 +10:00
Nyall Dawson
107b48a430
Add NULLPTR macro for use in doxygen comments
...
For the c++ api dox this expands to "\c nullptr" (the
\c directive indicates a code literal value), and for sipify/Python
it expands to ``None`` (`` is sphinx annotation for literal values)
Makes for nicer dox for both c++ and Python!
2019-02-27 09:41:11 +10:00
Nyall Dawson
a7ca08784c
Nullptr consistency in dox
2019-02-27 09:41:11 +10:00
Nyall Dawson
b6d66becab
Sipify
2019-02-27 09:41:11 +10:00
Nyall Dawson
eed9852fb9
Add TRUE and FALSE macros for use in doxygen comments
...
For the c++ api dox these expand to "\c true" and "\c false" (the
\c directive indicates a code literal value), and for sipify/Python
they expand to ``True`` and ``False`` (`` is sphinx annotation
for literal values)
Makes for nicer dox for both c++ and Python!
2019-02-27 09:41:11 +10:00
Nyall Dawson
4e04d02293
By default, validity check should treat ring self intersections as invalid
...
We use the OGC definition of validity to ensure consistent results
with PostGIS, GDAL, etc
Fixes #16418 , fixes #21336
2019-02-27 06:05:26 +10:00
Nyall Dawson
35f613d45e
Avoid firing up a thread for blocking GEOS based validity checks
...
It's an unnecessary expense. Also fix duplicate code.
2019-02-27 06:05:26 +10:00
Nyall Dawson
6dbe4ee5fb
Add QgsGeometry::isGeosValid option to ignore self-touching rings
2019-02-27 06:05:26 +10:00
Blottiere Paul
1e49bb1543
Merge pull request #9290 from pblottiere/fix_doc_2
...
Update doc
2019-02-26 14:38:30 +01:00
Blottiere Paul
3fbda69669
Update sip binding
2019-02-26 12:56:14 +00:00
Blottiere Paul
3e2af2aec1
Update sip
2019-02-26 10:12:55 +00:00
Blottiere Paul
0e8757b408
Merge pull request #9236 from signedav/scale_getlegendgraphic
...
On GetLegendGraphics take the scale context from map parameters
2019-02-26 10:19:56 +01:00
David Signer
6b09be7f32
update docu since 3.8
2019-02-26 09:28:03 +01:00
Alessandro Pasotti
a3e37420c8
Merge pull request #9273 from elpaso/bugfix-fix-path-resolver-urls
...
fix path resolver urls
2019-02-25 22:03:10 +01:00
Nyall Dawson
519a30f10c
Standardise dox for signals
2019-02-26 03:24:31 +10:00
Alessandro Pasotti
98bd6d651b
Fix path resolver with extra URL-like stuff
...
Like for CSVs: see #21150
2019-02-25 15:23:18 +01:00
Alessandro Pasotti
a615a3b3f5
Merge pull request #9260 from elpaso/form-background-color
...
Add bg color option to form containers
2019-02-25 15:13:36 +01:00
Nyall Dawson
4839740262
Spelling
2019-02-25 19:02:12 +10:00
Nyall Dawson
7eab74f803
Fix use of trailing */ in dox, which messes with sipify Python documentation output
2019-02-25 19:02:12 +10:00
David Signer
3e86163514
comments and comments since
2019-02-25 09:48:31 +01:00
uclaros
403a2e302e
Ran scripts/astyle-all.sh and scripts/sipify_all.sh
2019-02-25 09:26:11 +10:00
Bas Couwenberg
371176357b
Fix spelling errors.
...
* cancelation -> cancellation
* overal -> overall
2019-02-24 22:39:40 +01:00
Alessandro Pasotti
6bdabcfe88
Doc for the new backgroundColor argument
2019-02-24 13:29:25 +01:00
Alessandro Pasotti
8d3f73a62a
[feature][needs-docs] Add bg color option to form containers
...
Because gray is boring.
2019-02-24 13:18:29 +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
cdc622ef4c
Freackin Amurican sppelling
2019-02-23 05:23:23 +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
Matthias Kuhn
5b230ab820
Fix sip file too
2019-02-21 16:00:03 +01:00
Matthias Kuhn
5292efd082
Merge pull request #9221 from m-kuhn/relation-reference-field-formatter-cache
...
Add cache for relation reference field formatter
2019-02-21 09:52:54 +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
Matthias Kuhn
5fe225bb4d
Add cache for relation reference field formatter
...
this speeds up tables with relation reference fields massively
2019-02-20 18:58:17 +01:00
Matthias Kuhn
968e08c6c9
Geometry validator: do not report result summary as error
2019-02-20 18:14:41 +01:00
Matthias Kuhn
ddbd06f3f1
Merge pull request #9207 from mbernasocchi/master
...
Add safety guard when mDataProvider is not set
2019-02-20 14:02:16 +01:00
Matthias Kuhn
8ea09b61c8
Run sipify
2019-02-20 12:01:56 +01: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
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
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
Juergen E. Fischer
6090a932c2
dwg import: less noisy debugging
2019-02-19 19:56:40 +01:00
Alessandro Pasotti
d239ea2df9
Fix unique values when generating a set of features
2019-02-19 19:04:48 +01:00
Alessandro Pasotti
348e6837ac
Fix docs for createFeatures
2019-02-19 11:17:48 +01:00
Alessandro Pasotti
490c1fedfb
Rename QgsFeaturesData to QgsFeatureData and fix test case
2019-02-19 10:51:53 +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
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
e4288e5dea
QgsExpression: set setGeomCalculator precedence
...
setGeomCalculator, setDistanceUnits and setAreaUnits have now
precedence over expression scopes.
2019-02-14 13:40:12 +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