1418 Commits

Author SHA1 Message Date
Alessandro Pasotti
24307f9e5f
Merge pull request #32992 from elpaso/rasterize-c-plus-plus
Port Processing Rasterize to C++
2019-11-21 17:33:31 +01:00
Alessandro Pasotti
797af951c4 Processing rasterize: add extent buffer 2019-11-21 09:58:18 +01:00
javicasnov
742c7b95d7 Tiles XYZ fixed scale-dependant styles 2019-11-21 08:24:37 +10:00
javicasnov
20736b9ac1 Update TilesXYZ.py
Solve issue #30524. Now tiles are drawn correctly if there are layers with scale-dependant styles
2019-11-21 08:24:37 +10:00
Juergen E. Fischer
d401c84008 another translation string fix 2019-11-18 18:21:06 +01:00
Juergen E. Fischer
74a6871d9e translation string fixes 2019-11-18 13:19:25 +01:00
Nyall Dawson
3b8565115a Also lazy load numpy 2019-11-17 17:08:12 +10:00
Nyall Dawson
2d83fb2e1d Remove unused code 2019-11-17 17:08:12 +10:00
Nyall Dawson
a27db3533c [processing] Only load plotly library on demand (i.e. at time of algorithm
execution)

Because:
1. It's nicer to show all algorithms on all installs, and give a descriptive
error message to users when they try to run algorithms which depend on Plotly
if the library is missing. Otherwise on some installs these algorithms are
just missing for no apparent reason.

2. The plotly library takes a long time to load on windows (3-4 seconds),
so by moving this load to an on-demand load at time of algorithm execution
we can shave a few seconds off the QGIS startup time for ALL users.
2019-11-17 17:08:12 +10:00
Nyall Dawson
2a5ee9b563 [processing] Warn when we know for certain that no spatial index
exists on a source used for the Join by Location algorithm

Advise users that performance will be severely degraded as a result.
2019-11-17 04:54:41 +10:00
Alessandro Pasotti
25edd83b0a Processing raster calc: add missing btns and validate
Validate expression
2019-11-15 15:49:18 +01:00
Håvard Tveite
b0c1827b78 Update python/plugins/processing/algs/qgis/Rasterize.py
Don't know how the A ended up here - sorry.
2019-11-14 12:36:00 +10:00
Håvard Tveite
904d1d6c2d The "Convert map to raster" algorithm does not handle extent CRS correctly
Fixes: #32829
2019-11-14 12:36:00 +10:00
Håvard Tveite
59292b47c7 Update CreateConstantRaster.py
Cast cols (and rows) to int to fix the error.
Fixes: #32827
2019-11-14 03:07:30 +10:00
Alexander Bruy
0799e3b58f cleanup Python remainings 2019-11-08 12:13:31 +02:00
Alexander Bruy
9995e07e74 remove Python versions of algorithms 2019-11-06 08:30:01 +02:00
Alexander Bruy
26c90c8ece [processing] port service area (from layer) alg to c++ 2019-11-06 08:12:18 +02:00
Alexander Bruy
5970d1c267 [processing] port service area (from point) alg to c++ 2019-11-06 08:12:18 +02:00
Nyall Dawson
7bfac70c9c [processing] Raise an exception when interpolation break/structure lines
are set without an attribute source set

Refs #27048
2019-11-05 16:57:33 +10:00
Nyall Dawson
64b52bf31b Fix handling of interpolation layers with differing input coordinate reference systems
Fixes #27048
2019-11-05 16:57:33 +10:00
Juergen E. Fischer
b81d306047 spelling fixes (closes #32408) 2019-10-26 10:50:30 +10:00
root676
2221bcad6a remove old python algorithm and helpstrings 2019-10-26 06:43:32 +10:00
root676
ccc7566bf1 Port of Densify Geometries by Count algorithm to C++ 2019-10-26 06:43:32 +10:00
Clemens Raffler
9e9ade3903 [processing] Port of Create Grid algorithm to C++
MUCH faster grid creation vs the Python implementation
2019-10-10 09:33:59 +10:00
Nyall Dawson
196e15a0ff [processing] Avoid confusing use of expression parameter type in
Random Points in Polygon algorithm

Instead, use a standard numeric parameter which accepts data-defined
expression values

Fixes #27640
2019-09-30 16:58:15 +10:00
Nyall Dawson
a49edf1f25 [processing] Make minimum distance between points in "Random Points in polygon"
algorithm optional

And don't do any unnecessary index work when it's not set. Shaves roughly 1/3rd
off the time of algorithm execution.
2019-09-30 16:58:15 +10:00
Alexander Bruy
4df50691bc
Merge pull request #31901 from alexbruy/fix-29336
[processing] correctly handle case when layer source is not a plain path (fix #29336)
2019-09-24 15:03:43 +03:00
Nyall Dawson
90bac82f12 [needs-docs][processing] Respect user set default vector output format
in vector split algorithm

The created outputs will now be created using the format specified from
the Processing setting default vector format setting.
2019-09-24 16:50:22 +10:00
Alexander Bruy
78a289348a use html.escape to escape strings 2019-09-24 09:27:29 +03:00
Alexander Bruy
20583a8004 use GDAL connection string to support not only file-based layer but also
database and WFS
2019-09-23 11:53:19 +03:00
Alexander Bruy
3c13fbfeb5 [processing] correctly handle case when layer source is not a plain path
in the virtual vector algorithm (fix #29336)
2019-09-23 11:53:19 +03:00
Harrissou Sant-anna
58cc42a747 [needs-docs]Set the service area algorithms speed to 50km/h
using the same value as the "Shortest Path" algorithms
2019-08-28 03:53:54 +10:00
Isghj5
9fd93a1013 ProcessingConfig: added multithread max thread setting, TilesXYZ: max thread now inherrrits from ProcessingConfig 2019-08-12 08:41:26 +10:00
Isghj5
ba17f3b81e TilesXYZ: removed try/except/print from atypical exception, regular raise chosen instead 2019-08-12 08:41:26 +10:00
Isghj5
6b519195da TilesXYZ: converted feedback notifications to translate 2019-08-12 08:41:26 +10:00
Isghj5
9baa6b7e51 TilesXYZ.py: core limit defined in general settings is applied to multicore render 2019-08-12 08:41:26 +10:00
Isghj5
0e48e45d21 prepare-commit changes 2019-08-12 08:41:26 +10:00
Isghj5
e6963cb6dd Processing(TilesXYZ): Added Multithreading with ThreadPoolExecutor, multicore optimization 2019-08-12 08:41:26 +10:00
Julien Cabieces
2cc6775354 Use context.project() instead of QgsProject.instance() and
QgsProcessingUtils generateTempFileName method
2019-08-07 21:17:05 +10:00
Julien Cabieces
36fe8e64e3 Get supported extension to avoid unavailable driver 2019-08-07 21:17:05 +10:00
Julien Cabieces
4232e67c3d fixes #24041 : Write intermediate memory layer to disk in Execute SQL
algorithm so they can be referenced by the virtual layer provider
2019-08-07 21:17:05 +10:00
Nyall Dawson
da1b5637af Fix deprecated gdal import warnings 2019-07-25 11:25:51 +10:00
Alexander Bruy
d3091e7d64 [processing][needs-docs] allow to set tiles background (fix #30490) 2019-07-03 12:15:47 +03:00
Martin Dobias
0a7386e6da [TilesXYZ] Add metatile size parameter
Larger values may speed up the rendering and provide better labelling (fewer gaps without labels)
at the expense of using more memory.

Ported from XYZ Tiles plugin - originally contributed by @nurenda
2019-06-27 13:37:50 +02:00
Alessandro Pasotti
7761f5f0fe
Merge pull request #30391 from troopa81/executesql_raise_unknown_geom
Raise an exception when geometry field autodetection has failed
2019-06-27 09:22:36 +02:00
Julien Cabieces
e63a94606d Raise an exception when geometry field autodetection has failed 2019-06-25 15:39:11 +02:00
Alexander Bruy
94ec2dc72c
Merge pull request #30333 from alexbruy/postgis-layer
[processing] remove trailing semicolon from SQL before creating a layer (fix #30239)
2019-06-23 09:42:10 +03:00
Alexander Bruy
017f41f96c [processing] remove trailing semicolon from SQL before creating
layer (fix #30239)
2019-06-22 18:57:36 +03:00
Alexander Bruy
71fac3bbd2 [processing] assign correct ids to features in the random points in
polygons algorithm (fix #26321)
2019-06-22 16:58:56 +03:00
Matthias Kuhn
0640e51e48
Merge pull request #10005 from ghtmtt/processing_climb
[Processing] climb along line algorithm
2019-06-21 16:13:15 +02:00