Re: [QGIS-Developer] Sharing QGIS processing tools via repository

2022-02-03 Thread Prem Kumar
Just FYI… Finally I made it to get through this , worth investigating. Thanks. -Prem On Mon, 31 Jan 2022 at 11:30 PM, Prem Kumar wrote: > Hi Team, > > I have developed a bunch of custom processing tools which will eventually > import custom python modules from QGIS site-packages.

[QGIS-Developer] Sharing QGIS processing tools via repository

2022-01-31 Thread Prem Kumar
Hi Team, I have developed a bunch of custom processing tools which will eventually import custom python modules from QGIS site-packages. So far I had to copy the processing tool python files to default profile folder and custom modules to QGIS site-packages manually. However, I'm looking for an

Re: [QGIS-Developer] Reusing network graph

2022-01-03 Thread Prem Kumar
qgis-developer-requ...@lists.osgeo.org >> >> You can reach the person managing the list at >> qgis-developer-ow...@lists.osgeo.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of QGIS-Developer digest

[QGIS-Developer] Reusing network graph

2021-12-30 Thread Prem Kumar
Hi Team, I have been trying to get the shortest path for a lot of pairs of start and end points for a given road layer. Although I'm able to achieve this by creating the *QgsVectorLayerDirector *and Graph object for every pair of start and end points. However, I could not reuse the graph object

Re: [QGIS-Developer] process bar in processing algs

2021-07-20 Thread Prem Kumar
Hi Mate, Every processing tool has to implement its business logic in processAlgorithm() function and it has below syntax. *def processAlgorithm(self, parameters, context, feedback):* One of the input parameters is feedback and this as a parameter variable should be given to the

Re: [QGIS-Developer] Reg: native:clip processing tool error with "Could not create memory layer"

2021-06-28 Thread Prem Kumar
. -Prem On Sat, Jun 26, 2021 at 12:20 PM Nyall Dawson wrote: > On Fri, 25 Jun 2021 at 21:56, Prem Kumar wrote: > > > > Hi Team, > > > > I am trying to run a script which initially clips certain data and then > outputs an in-memory clipped layer that wi

[QGIS-Developer] Reg: native:clip processing tool error with "Could not create memory layer"

2021-06-25 Thread Prem Kumar
Hi Team, I am trying to run a script which initially clips certain data and then outputs an in-memory clipped layer that will be used further in the code on the linux machine. The script used to work perfectly fine on both Windows and Linux machines, however, only linux machines below errors are

Re: [QGIS-Developer] Offset lines via qgis python

2021-06-09 Thread Prem Kumar
ialthoughts/> [image: > Twitter icon] <https://twitter.com/spatialthoughts> > > > > On Wed, Jun 9, 2021 at 1:31 PM Prem Kumar wrote: > >> Hi Team, >> >> Just wondering if there is a python api which gets an offset line or >> parallel line (to both le

[QGIS-Developer] Offset lines via qgis python

2021-06-09 Thread Prem Kumar
Hi Team, Just wondering if there is a python api which gets an offset line or parallel line (to both left and right sides) to a given line geometry in Qgis Python. I know there exists a processing tool called Offsetlines

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

2021-05-31 Thread Prem Kumar
_LIBRARY_PATH=/usr/share/qgis/python *Linux: * Kernel: Ubuntu 18.04.3 LTS QGIS: '3.16.3-Hannover' Python: Python 3.6.9 -Prem On Mon, May 31, 2021 at 7:14 AM Nyall Dawson wrote: > On Fri, 28 May 2021 at 18:15, Prem Kumar wrote: > > > > HI Nyall, > > > > Although

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

2021-05-28 Thread Prem Kumar
ot;/usr/share/qgis", True) sys.path.append('/usr/lib/qgis') sys.path.append(r'/usr/share/qgis/python/plugins') qgs = QgsApplication([], False) qgs.initQgis() ### Entire business logic qgs.quit() -Prem On Fri, May 28, 2021 at 3:51 AM Nyall Dawson wrote: > On Thu, 27 May 2021 at 22:58, P

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
ionResult (Explanation at > https://qgis.org/api/classQgsGeometry.html#a8baf383b737d73cafeabe09f5b0d7ef7) > that may give insight into the issue. > > Ujaval Gandhi > Spatial Thoughts > > On Thu, May 27, 2021, 7:42 PM Prem Kumar wrote: > >> Hi Ujaval, >> >> T

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

2021-05-27 Thread Prem Kumar
lthoughts.com > [image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/> [image: > Twitter icon] <https://twitter.com/spatialthoughts> > > > > On Thu, May 27, 2021 at 6:27 PM Prem Kumar wrote: > >> Hi Team, >> >> Just wondering whether I

[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

Re: [QGIS-Developer] Probably a stupid python question regarding QgsVectorlayer

2021-04-29 Thread Prem Kumar
Hi mate, If you still need further details of database uri, you may refer to the skeleton code below. obj_vl = QgsVectorLayer(in_fc,"new lyr","ogr") datapr=obj_vl.dataProvider() lyrUri=None if isinstance(obj_vl, QgsVectorLayer): lyrUri =

Re: [QGIS-Developer] REST API for QGIS processing tool

2021-03-23 Thread Prem Kumar
sserver *from command line as the terminal unable to recognize wpsserver command. *./runwps.sh: line 15: exec: wpsserver: not found* Please suggest. Thanks. -Prem On Mon, Mar 22, 2021 at 11:19 PM David Marteau wrote: > > Le 22/03/2021 à 18:26, Prem Kumar a écrit : > > Hi

Re: [QGIS-Developer] REST API for QGIS processing tool

2021-03-22 Thread Prem Kumar
between python version - qgis installation and the service. If it’s not more of an effort, can you please guide me to any installation instructions? Thanks -Prem On Thu, 25 Feb 2021 at 7:44 PM, Prem Kumar wrote: > HI Nyall and René-Luc, > > Thank you very much for the pointers, much ap

Re: [QGIS-Developer] REST API for QGIS processing tool

2021-02-25 Thread Prem Kumar
HI Nyall and René-Luc, Thank you very much for the pointers, much appreciated. Looks to me, a lot to learn some good stuff. Will let you know how it goes. -Prem On Thu, Feb 25, 2021 at 6:59 PM René-Luc Dhont wrote: > > Le 24/02/2021 à 23:27, Nyall Dawson a écrit : > > > > Look into the "WPS"

[QGIS-Developer] REST API for QGIS processing tool

2021-02-24 Thread Prem Kumar
Dear Community team, Off late, I have written a custom processing tool in QGIS which works perfectly fine in QGIS application. I am wondering if there is any better way to expose the qgis processing tool over REST API so that I can use it in my front end map? Kind of geoprocessing service REST