[QGIS-Developer] core.QgsProcessingException: An error occurred while performing the calculation

2023-05-25 Thread Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
I am trying to run a rastercalculator through a call to its python method and I get the error message core.QgsProcessingException: An error occurred while performing the calculation. Not a very intuitive message. The variable _cutfill_nodata_file used in the code below is a path to a result

Re: [QGIS-Developer] Non-cartesian buffering

2023-05-25 Thread Alexis R.L. via QGIS-Developer
Greetings, I've reached out to the author and it seems doable for a point by using this method ( https://geographiclib.sourceforge.io/Python/doc/code.html#geographiclib.geodesic.Geodesic.Direct ) and using the azimuth to generate the vertices. My guess would be that for more complex geometries

[QGIS-Developer] Problem with copying layout's items from a printlayout template to another printlayout template in python

2023-05-25 Thread patrycja.ta...@wp.pl via QGIS-Developer
Hi, Im trying to create a qgis plugin in python. And I have a problem with coping layouts items from one printlayout template to another printlayout template. When I execute this code:   composition.loadFromTemplate(doc, QgsReadWriteContext(), True)     composition.setName(layoutName)