qgis_process: impossible to execute some algorithms for lack of project context #37988
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
Describe the bug
Some algorithms need information stored in the project properties, like ellipsoid to use, or crs of the project, area and length measurement units, in order to properly execute the job.
It seems impossible to run those algs using qgis_process because it is not possible to specify a project containing the needed information nor to provide the necessary information directly passing them as additional parameters.
A probably not comprehensive list of algorithms that use context.project() follows:
qgis:exportaddgeometrycolumns (only methods 1 e 2)
qgis:fieldcalculator
qgis:distancetonearesthublinetohub
qgis:distancetonearesthubpoints
qgis:distancematrix
qgis:pointstopath
qgis:randompointsalongline
qgis:randompointsinsidepolygons
qgis:executesql
qgis:rastercalculator
qgis:postgisexecuteandloadsql
qgis:tilesxyzdirectory
native:antimeridiansplit
native:sumlinelengths
native:calculatevectoroverlaps
native:nearestneighbouranalysis
native:refactorfields
native:linedensity
native:aggregate
native:hublines
native:categorizeusingstyle
native:networkanalysis
native:rasterize
native:loadlayer
native:setprojectvariable
native:stylefromproject
native:bookmarkstolayer
How to Reproduce
QGIS and OS versions
QGIS 3.14.1
Additional context
Ref: #34617
The text was updated successfully, but these errors were encountered: