Nyall Dawson
8d6e3dc911
[FEATURE][API] Add method to QgsSpatialIndex to perform
...
nearest neighbor search based on QgsGeometry to QgsGeometries
Previously only point - geometry was possible. But with this
change, you can safely and accurately use QgsSpatialIndex
to determine the nearest neighbours between any types of
geometries.
2019-04-03 02:31:03 +10:00
Nyall Dawson
6248bb8eea
Fix failing TestQgsJsonUtils
2019-04-02 14:34:46 +10:00
Alessandro Pasotti
5b586e8139
Merge pull request #9671 from elpaso/bugfix-server-locale-override
...
[server] Allow locale and group separator override
2019-04-01 22:50:55 +02:00
Matthias Kuhn
1bb3f99f0e
Properly convert to QgsVectorLayerEditpassTrough subclass
2019-04-02 06:18:45 +10:00
Nyall Dawson
39a255c1b9
[processing] Use null instead of nan for invalid stat values in join by location summary
2019-04-02 06:17:56 +10:00
Nyall Dawson
7bf9279a53
[processing] Fix invalid reprojection in join by location (summary)
2019-04-02 06:17:56 +10:00
Nyall Dawson
7674e1657b
[processing] Include version information at start of log
...
Start the log text with QGIS/Qt/GEOS/GDAL version information strings.
This is helpful for debugging and accountability.
2019-04-02 06:16:45 +10:00
Alessandro Pasotti
0355611b60
Added \since QGIS 3.8
2019-04-01 17:25:36 +02:00
Alessandro Pasotti
120ae773b6
[server][feature][needs-docs] Add env vars to override locale ...
...
...and group separator:
QGIS_SERVER_OVERRIDE_SYSTEM_LOCALE (default '')
QGIS_SERVER_SHOW_GROUP_SEPARATOR (default false)
2019-04-01 16:22:37 +02:00
Juergen E. Fischer
88513284d4
fix removal of temporary directories ( fixes #21292 )
2019-04-01 14:18:30 +02:00
Alessandro Pasotti
62895d1f42
Merge pull request #9619 from elpaso/plugin-dependencies
...
Plugin dependencies optional support
2019-04-01 09:43:28 +02:00
Nyall Dawson
9820e6b222
Revert "fix removal of temporary directories"
...
This reverts commit b141349c90be91f191f612b7e2a349adde3c6349, which
causes crashes in almost every unit test.
2019-04-01 09:30:50 +10:00
Andrea Giudiceandrea
70f3bd7f60
deleteShapeFile(): delete also ".cpg", ".sbn", ".sbx", ".idm", ".ind" files
...
Make QgsVectorFileWriter::deleteShapeFile() delete ".cpg" (and ".sbn", ".sbx", ".idm", ".ind") files along with ".shp", ".shx", ".dbf", ".prj", ".qix", ".qpj" ones.
2019-04-01 08:37:36 +10:00
Juergen E. Fischer
b141349c90
fix removal of temporary directories
2019-04-01 00:02:12 +02:00
volaya
165ab8b25f
[processing] do not export input sdat files
2019-03-30 11:02:25 +10:00
Alessandro Pasotti
5b5cc50b9e
Merge pull request #9620 from elpaso/bugfix-badlayers-storage
...
Bugfix badlayers storage
2019-03-28 08:14:53 +01:00
Nyall Dawson
f5a3485eae
Fix some Python warnings, avoid accidently hiding all deprecation warnings
2019-03-28 11:47:23 +10:00
Nyall Dawson
234c1718c4
Mark some Processing methods as deprecated
2019-03-28 11:47:23 +10:00
Nyall Dawson
7aca208522
Update processing script template
2019-03-28 11:47:23 +10:00
Nyall Dawson
f758d8b282
Ensure all public, stable API methods for Processing have nice docstrings
2019-03-28 11:47:23 +10:00
Nyall Dawson
7e80fc8391
Drop isWindows/isMac from stable Processing API
2019-03-28 11:47:23 +10:00
Nyall Dawson
64387a2254
[needs-docs][processing] Monkey patch stable external Processing API into qgis.processing
...
Instead of encouraging use of the internal Processing modules
(e.g. from processing.tools.general import run , import processing, ...)
instead expose all Python specific STABLE processing additions
to the qgis.processing module.
Instead, scripts and plugins should now use
from qgis.processing import run, algorithmHelp,...
This makes a clear distinction between internal Processing python
modules (i.e., everything else!) and the parts of Processing
which are stable and designed to be used by plugins and scripts.
TODO: QGIS 4.0 -- move the internal Processing plugin modules
to __processing, to clearer indicate that this is all internal
stuff.
2019-03-28 11:47:23 +10:00
Nyall Dawson
bf7d9cb6f8
Don't use copyright license as a module docstring
2019-03-28 11:47:23 +10:00
Denis Rouzaud
631c7016db
scope enum for QgsProcessing::LayerHint ( #9639 )
2019-03-27 17:23:36 -05:00
Nyall Dawson
858e5d0209
Sipify
2019-03-27 12:53:15 +10:00
Nyall Dawson
545e8bcf2c
Add utility class for proj to Python bindings
2019-03-27 12:53:15 +10:00
Nyall Dawson
ef8d893393
More QgsMapLayer python fixes
2019-03-27 09:11:15 +10:00
Nyall Dawson
ac651ee0d9
Followup 8d51a693, fix broken plugins
2019-03-27 07:20:43 +10:00
Denis Rouzaud
8d51a693a1
missing changes of QgsMapLayer::Type => QgsMapLayerType
2019-03-26 14:09:19 -05:00
Denis Rouzaud
60682885c0
Small tweak to enum Python docs ( #9631 )
...
original credits to @nyalldawson
2019-03-26 14:00:37 -05:00
Denis Rouzaud
f000956e86
Merge pull request #9437 from 3nids/maplayertype_enum
...
create scope based enum for QgsMapLayer::LayerType >> QgsMapLayerType
2019-03-26 10:28:34 -05:00
henrik
cf63e00500
Added tests for PointDisplacementRenderer labels.
2019-03-26 18:17:12 +10:00
henrik
6fb06738ec
[FEATURE] [needs-docs] Point Displacement label distance factor
...
Adds label distance factor spinbox to Point Displacement symbology
window. Calculates label distance based on the current symbology
diagonal instead of a general maximum diagonal.
Replaces the hard coded distance "symbolDiagonal/2.0" with
"symbolDiagonal*mLabelDistanceFactor", where mLabelDistanceFactor is set
to the spinbox value.
It's an old feature request (Point displacement labels adjustable
offsets "https://issues.qgis.org/issues/5945 ").
2019-03-26 18:17:12 +10:00
Alessandro Pasotti
09fe865094
Merge pull request #9616 from elpaso/html-widget
...
HTML form widget
2019-03-26 08:04:50 +01:00
Alessandro Pasotti
0aa326b9f9
Enable webview tools and fix some minor dox issues
2019-03-25 18:09:13 +01:00
Denis Rouzaud
e232817e5b
add missing doc
2019-03-25 11:00:17 -05:00
Alessandro Pasotti
e75308e700
Add test case for the layer store when re-adding a fixed layer
2019-03-25 15:03:46 +01:00
Alessandro Pasotti
eb3e18ddaa
Added note in the documentation about the new behavior
2019-03-25 12:39:44 +01:00
Blottiere Paul
daf53a1e08
Merge pull request #9611 from pblottiere/server_log_exceptions
...
[server] log exceptions
2019-03-25 11:00:25 +01:00
Alessandro Pasotti
2a10c3fcef
Add missing lib plugindependencies.py
2019-03-25 10:38:16 +01:00
Alessandro Pasotti
c6c3d0971a
Fix typo and do not spellcheck the json plugins testdata
2019-03-25 10:04:31 +01:00
Alessandro Pasotti
8e40481284
Minor changes in file header, stretch last column in deps table
2019-03-25 09:01:13 +01:00
Denis Rouzaud
9a6ddbd5c1
also monkey patch the former enum type
2019-03-24 21:40:33 -05:00
Denis Rouzaud
38c2d4a03d
fix dox for unnested enums
2019-03-24 21:40:33 -05:00
Denis Rouzaud
f45314245c
run sipify
2019-03-24 21:40:33 -05:00
Denis Rouzaud
375a0aa253
create scope based enum for QgsMapLayer::LayerType >> QgsMapLayerType
...
the enum is moved out of the class
this will allow forward declaration more easily since the enum is not nested in the class
2019-03-24 21:40:33 -05:00
Juergen E. Fischer
0c23e94a29
fix translation string
2019-03-23 20:53:31 +01:00
Alessandro Pasotti
b06103f140
Added missing SIP files and headers
...
Also fixes context evaluation before html is updated
2019-03-23 17:24:02 +01:00
Alessandro Pasotti
b165258e6d
[feature][needs-docs] HTML form widget
...
Shameless clone of QML widget, with some webview quirks.
Funded by ARPA Piemonte
2019-03-23 16:41:16 +01:00
Juergen E. Fischer
2af3535216
[needsbackport] apply an alternative fix for #20826
...
Partly reverts c9e761649, which removed the synchronizatiion of
credential requests (eg. in a project that has multiple layers from the
same postgresql database without credentials) and led to multiple
concurrent requests for the same credentials.
Some of which were silently discarded, when events processed in the
dialogs exec() event loop tried to reinvoke the dialog and caused
invalid layers.
Authentications caused by network requests can still cause this.
The credential cache is now guarded by a separate mutex.
2019-03-23 16:08:25 +01:00