Re: [QGIS-Developer] QgsProcessingFeedback setProgressText method

2021-05-27 Thread Nyall Dawson
On Wed, 26 May 2021 at 19:43, matteo wrote: > > Hi all, > > while developing a Processing plugin, within a loop I'm using the 2 > "standard" methods to set the % of progress bar (feedback.setProgress()) > and to update accordingly the progress text (feedback.setProgressText()). > > In the latter c

Re: [QGIS-Developer] Build issue and SIP_CONCAT_PARTS

2021-05-27 Thread Nyall Dawson
On Wed, 26 May 2021 at 23:49, Julien Cabieces wrote: > > > Hi devs, > > I'm working on a new QGIS feature and wanted to add a new API in core module. > I get a strange error when building, on a class not related to what I am > adding. > > /home/julien/work/QGIS/build_debug/python/core/sip_corepa

Re: [QGIS-Developer] Reg: QgsCoordinateTransform not working on Linux

2021-05-27 Thread Nyall Dawson
On Thu, 27 May 2021 at 22:58, Prem Kumar wrote: > > Hi Team, > > Just wondering whether I'm missing something or a genuine bug, please advise > below. > > All I am trying is, to take the geometry object in json format whose CRS is > in WGS84 (EPSG:4326) and transform the geometry to EPSG:3857 CR

Re: [QGIS-Developer] Reg: QgsCoordinateTransform not working on Linux (Prem Kumar)

2021-05-27 Thread Prem Kumar
Hi Jean, Thanks a lot for the reply, as an alternative solution I had taken the similar help from pyproj after several attempts to resolve the issue with QgsCoordinateTransform. But, curious to see what made the code to ignore the transformation. -Prem On Thu, May 27, 2021 at 9:30 PM Jean Hemmi

Re: [QGIS-Developer] Reg: QgsCoordinateTransform not working on Linux

2021-05-27 Thread Prem Kumar
the OperationResult value is 0 - zero in both windows and linux cases. Although I could not verify in QGIS Python console from Linux as it is on a server machine, I have verified the same on my personal macbook pro where the same code works perfectly fine from QGIS Console but not from pycharm - si

[QGIS-Developer] Reg: QgsCoordinateTransform not working on Linux (Prem Kumar)

2021-05-27 Thread Jean Hemmi
Hello Prem I've experienced the same problem running qgis standalone. QgsCoordinateTransform works fine inside QGIS. Perhaps the project instance misses something... I've choose a bypass using pyproj from pyproj import Proj, transform PYPROJ_SOURCE_CRS = Proj(init='epsg:4326') PYPROJ_DESTINAT

Re: [QGIS-Developer] Reg: QgsCoordinateTransform not working on Linux

2021-05-27 Thread Ujaval Gandhi
OK. Test the code in QGIS Python Console. If that works, you have a problem with initialization. If that also doesn't work, print the result of the transform which will give you the OperationResult (Explanation at https://qgis.org/api/classQgsGeometry.html#a8baf383b737d73cafeabe09f5b0d7ef7) that m

Re: [QGIS-Developer] Reg: QgsCoordinateTransform not working on Linux

2021-05-27 Thread Prem Kumar
Hi Ujaval, Thanks for your reply. I have made the suitable code changes as you have suggested but I still see the same behaviour. In fact, the given code snippet in the email is an extract from my overall code where proper initialisation and disposing of qgis application object is followed. The o

Re: [QGIS-Developer] Reg: QgsCoordinateTransform not working on Linux

2021-05-27 Thread Ujaval Gandhi
You are not initializing QGIS in your script. Try adding this at the beginning of your script from qgis.core import QgsApplication qgs = QgsApplication([], False) qgs.initQgis() [image: Logo] Ujaval Gandhi Spatial Thoughts mobile: +91-8095684687 email: uja...@spati

[QGIS-Developer] Reg: QgsCoordinateTransform not working on Linux

2021-05-27 Thread Prem Kumar
Hi Team, Just wondering whether I'm missing something or a genuine bug, please advise below. All I am trying is, to take the geometry object in json format whose CRS is in WGS84 (EPSG:4326) and transform the geometry to EPSG:3857 CRS and eventually use it in further processing because rest of the