[QGIS-Developer] Course credits
Hi Guys, I'm trying to top-up credits for QGIS training course. It doesn't seem to update the €0 to correspond with the amount of credits you'd like to update with and the pay with stipe seems to be disabled also. Not sure is this happening for others but just flagging it in case it is. Cheers Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] Change Plugin Icon
Hi, When using "*pb_tool deploy*", my icon does not update to a customised icon that I have saved - does anyone know how to correctly deploy a plugin with pb_tool with a customised icon?? Thanks in advance ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] Ignore previous post
Hi, I figured it out - had the wrong string :) Thanks Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] QGIS disappeared and now wont install
Hi, I am ubuntu 18.04 and everything was working fine but QGIS then just disappeared on me. I tried to reinstall using the following tutorial: https://www.gis-blog.com/how-to-install-qgis-3-on-ubuntu/ and updated the key to 2019. Everything seemed to install correctly but QGIS is still not installed? I'm completely lost as to where to go from here? Any help would be appreciated. Thanks Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] Multiprocessing qgis console
Ok cool - thanks On Céad 11 Noll 2019 at 09:07, Luigi Pirelli wrote: > Not yet... but consider that GUI works in the main thread => if you need > to post messages in the console you should need to create producer/consumer > queues (see use of Queue module). > I would suggest to simplify everything using QgsTask. > > cheers > > Luigi Pirelli > > > ** > * LinkedIn: https://www.linkedin.com/in/luigipirelli > * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli > * GitHub: https://github.com/luipir > * Book: Mastering QGIS3 - 3rd Edition > <https://www.packtpub.com/eu/application-development/mastering-geospatial-development-qgis-3x-third-edition> > * Hire a team: http://www.qcooperative.net > > ****** > > > On Wed, 11 Dec 2019 at 08:33, Shane Carey wrote: > >> Hi, >> >> Has anyone to successfully setup multiprocessing through the the qgis >> console? >> Thanks >> -- >> Le gach dea ghui, >> *Shane Carey* >> *GIS and Data Solutions Consultant* >> > ___ >> QGIS-Developer mailing list >> QGIS-Developer@lists.osgeo.org >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > > -- Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] Multiprocessing qgis console
Hi, Has anyone to successfully setup multiprocessing through the the qgis console? Thanks -- Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] [gdal-dev] ERROR: Too many connections: max 64
Or is it better to do the processing on shapefiles? Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* On Thu, Nov 28, 2019 at 8:40 PM Shane Carey wrote: > After processing, is there a way to release the wal and shm files? I'm on > qgis3.4. > Thanks Even > Le gach dea ghui, > *Shane Carey* > *GIS and Data Solutions Consultant* > > > On Thu, Nov 28, 2019 at 8:37 PM Even Rouault > wrote: > >> On jeudi 28 novembre 2019 20:19:10 CET Shane Carey wrote: >> > Hi, >> > >> > I'm doing some processing with Pyqgis and after processing, the file >> > remains locked and eventually I get: >> > ERROR: Too many connections: max 64 >> >> All I can say is that this error messages comes from Spatialite that can >> only >> handle 64 connections in a process at most. I did a fix (don't remember >> when, >> but must be included in QGIS 3.4) in the QGIS OGR provider to be able to >> open >> GeoPackage datasets (since the OGR GeoPackage driver enables Spatialite >> on >> them) that has many layers (so that they share the same connection). Not >> sure >> about the specificities of your use case. >> >> Even >> >> -- >> Spatialys - Geospatial professional services >> http://www.spatialys.com >> > ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] [gdal-dev] ERROR: Too many connections: max 64
After processing, is there a way to release the wal and shm files? I'm on qgis3.4. Thanks Even Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* On Thu, Nov 28, 2019 at 8:37 PM Even Rouault wrote: > On jeudi 28 novembre 2019 20:19:10 CET Shane Carey wrote: > > Hi, > > > > I'm doing some processing with Pyqgis and after processing, the file > > remains locked and eventually I get: > > ERROR: Too many connections: max 64 > > All I can say is that this error messages comes from Spatialite that can > only > handle 64 connections in a process at most. I did a fix (don't remember > when, > but must be included in QGIS 3.4) in the QGIS OGR provider to be able to > open > GeoPackage datasets (since the OGR GeoPackage driver enables Spatialite on > them) that has many layers (so that they share the same connection). Not > sure > about the specificities of your use case. > > Even > > -- > Spatialys - Geospatial professional services > http://www.spatialys.com > ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] ERROR: Too many connections: max 64
Hi, I'm doing some processing with Pyqgis and after processing, the file remains locked and eventually I get: ERROR: Too many connections: max 64 How do I handle this? Thanks Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] what does geos geoprocessing error difference failed mean?
Hi Jeff, It turns out it is a memory issue. I'm running a loop with pyqgis and after doing the union, it doesn't release the shm or wal gpkg files on the original union inputs. Anyway of releasing these after running each union? Thanks Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* On Tue, Nov 26, 2019 at 2:33 PM Jeff McKenna wrote: > Not sure. My next step would be to upgrade to QGIS 3.10.0 and retry. > > -jeff > > > > On 2019-11-26 10:20 AM, Shane Carey wrote: > > Thanks Jeff, > > > > Yep, I've tried running this and still makes no difference I'm afraid. I > > thought it may have been a memory issue but its not that either. > > So I'm lost as to what is causing it. > > Cheers > > Le gach dea ghui, > > */Shane Carey/* > > */GIS and Data Solutions Consultant/* > > > > > > On Tue, Nov 26, 2019 at 2:19 PM Jeff McKenna > > mailto:jmcke...@gatewaygeomatics.com>> > > wrote: > > > > Hi Shane, > > > > Likely it means that there is a problem with your > geometry/topology. I > > don't have your version locally, but look for a QGIS menu item of > > "Check > > Validity" or "Fix Geometries". > > > > -jeff > > > > > > > > -- > > Jeff McKenna > > MapServer Consulting and Training Services > > https://gatewaygeomatics.com/ > > > > > > On 2019-11-26 9:48 AM, Shane Carey wrote: > > > Hi, > > > > > > I'm running a union process in qgis 3.4 and I keep getting the > > following > > > error: > > > *geos geoprocessing error difference failed* > > > What does this error mean? > > > Thanks > > > Le gach dea ghui, > > > */Shane Carey/* > > > */GIS and Data Solutions Consultant/* > > > > > ___ > > QGIS-Developer mailing list > > QGIS-Developer@lists.osgeo.org QGIS-Developer@lists.osgeo.org> > > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > https://gatewaygeomatics.com/ > ___ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] what does geos geoprocessing error difference failed mean?
Thanks Jeff, Yep, I've tried running this and still makes no difference I'm afraid. I thought it may have been a memory issue but its not that either. So I'm lost as to what is causing it. Cheers Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* On Tue, Nov 26, 2019 at 2:19 PM Jeff McKenna wrote: > Hi Shane, > > Likely it means that there is a problem with your geometry/topology. I > don't have your version locally, but look for a QGIS menu item of "Check > Validity" or "Fix Geometries". > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > https://gatewaygeomatics.com/ > > > On 2019-11-26 9:48 AM, Shane Carey wrote: > > Hi, > > > > I'm running a union process in qgis 3.4 and I keep getting the following > > error: > > *geos geoprocessing error difference failed* > > What does this error mean? > > Thanks > > Le gach dea ghui, > > */Shane Carey/* > > */GIS and Data Solutions Consultant/* > > > ___ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] what does geos geoprocessing error difference failed mean?
Hi, I'm running a union process in qgis 3.4 and I keep getting the following error: *geos geoprocessing error difference failed* What does this error mean? Thanks Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] Porting Create Grid algorithm to C++
Hi, Are there any good C++ courses for QGIS that you would recommend? Thanks On Luan 30 MFómh 2019 at 20:01, Clemens Raffler wrote: > Thank you Nyall for your feedback and for mentoring me in this process! > I will definitely have a look at other Python algorithms. > > I managed to open a pull request > (https://github.com/qgis/QGIS/pull/32070) containing the new algorithm > sources and the integration into cmake. > I ran into some problems when applying the prepare_commit.sh script > (output: nothing was modified) but everything else went smoothly. > > Please have a look at the code and feel free to contact me! > > Best regards, > Clemens > > > On 30.09.19 02:08, Nyall Dawson wrote: > > On Mon, 30 Sep 2019 at 03:06, Clemens Raffler > wrote: > >> Dear QGIS Developers, > >> > >> lately I have been using the 'Create Grid' algorithm a lot on huge areas > >> and with a rather fine grid resolution. I was not surprised that > >> creating a very fine grid took a very long time as the algorithm is > >> currently implemented in python. > >> > >> In order to speed up my work I decided to experiment a little with C++ > >> (coming from a python background) development in QGIS and ported the > >> algorithm to C++ based on other native algorithms. The code is working > >> very well, the grid creation process has been sped up significantly. I > >> would now like to contribute the code to the QGIS project so that other > >> users can benefit from the speedup. > > Sounds fantastic, and a very valuable (and desired) contribution! Nice > work! > > > >> - Is there any reason why certain algorithms (eg. the Create Grid alg) > >> should not be available in C++? > > No. In fact, the opposite! The long-term goal is to port all these > > algorithms away from Python and to c++. Python is GREAT for plugin > > based algorithms and for quickly developing new algorithms, but it's > > just not competitive in speed vs the c++ algorithms. We've also had a > > LOT of issues in the past where Python algorithms break due to lack of > > compile time checks when QGIS API (or other Processing Python code) is > > revised. In contrast, I'm not aware of a single regression of this > > nature in any of the ported c++ algorithms. > > > > (My advice for readers out there: don't write big, complex > > applications in Python. full stop.) > > > >> - As I am not familiar with the processes how native processing > >> algorithms get committed to the main repository (pull requests, > >> prepare-commit.sh, sip, etc.), would anybody like to help/mentor/guide > >> me through this process and review the code? > > **raises hand** > > > >> - Are there any special requirements on testing infrastructure for C++ > >> algs which should be implemented too (I have not worked with tests so > far)? > > Looks like there's already good test coverage with the existing Python > > algorithm. These existing tests will carry over to the c++ port, so > > it's likely that nothing extra is required here. > > > > In general, there's some "desirable changes" which we are encouraging > > when porting an existing algorithm to c++, but none of them apply in > > this particular case. Specifically: > > > > - use the QgsProcessingFeatureBasedAlgorithm subclass wherever possible. > > - add support for dynamic parameters where desirable. > > > > > >> So far, my experience with porting python algs to C++ has been very good > >> with Create Grid and I would like to work on other ports if everything > >> goes well. > > That's great to hear! I'd suggest having a look at a really simple > > feature based algorithm like DensifyGeometries as a great candidate > > for learning. There's almost no logic in the Python code for this one, > > so it would be a great one to learn the overall process of porting to > > c++ without the complexities of having to port a lot of > > python-specific logic. > > > > Nyall > ___ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer -- Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] PyQt and QGIS
Thanks all - I think I am in business. Thats super - thanks Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* On Wed, Sep 4, 2019 at 9:03 AM Etienne Trimaille < etienne.trimai...@gmail.com> wrote: > Hi, > > You should try: > from qgis.gui import QgsFileWidget > It's in the GUI library: https://qgis.org/api/classQgsFileWidget.html > > For PyCharm on Ubuntu, I used the normal launcher. Then I have setup a > venv called "QGIS3" that I can use in all my plugins and project related to > QGIS. In the venv, I added > /home/etienne/dev/qgis/build/master/output/python > to my interpreter paths. It works well for autocompletation. You may need > to restart pycharm and/or to force PyCharm to scan these libraries. > > Le mar. 3 sept. 2019 à 18:04, Shane Carey a écrit : > >> Thanks Mario, >> >> I'm on Ubuntu. >> Cheers >> Le gach dea ghui, >> *Shane Carey* >> *GIS and Data Solutions Consultant* >> >> >> On Tue, Sep 3, 2019 at 4:21 PM Mario Baranzini wrote: >> >>> Hi Shane, >>> are you using Linux or other systems? >>> >>> Here there are my notes on how to configure PyCharm for pyqgis >>> development from when I used PyCharm and Gnome: >>> https://marioba.gitlab.io/blog/post/2018-04-12-pyqgis-autocompletion-pycharm/ >>> >>> I Hope that helps. >>> >>> Cheers >>> Mario >>> >>> >>> >>> >>> *03 September 2019 16:53 Shane Carey >> > wrote:* >>> >>> Hi all, >>> For a few days now, I have been trying to setup PyQt and QGIS without >>> much success. So I have tried to create a ui using QT designer and from >>> there create my python file using pyuic5: >>> When I go to run it in PyCharm, I get the following: >>> No module named 'qgsfilewidget' >>> >>> And the error is coming from: >>> from qgsfilewidget import QgsFileWidget >>> >>> Could some please tell me how to setup PyCharm with QGIS please as I am >>> unable to find anything useful on google. >>> >>> Thanks >>> Le gach dea ghui, >>> *Shane Carey* >>> *GIS and Data Solutions Consultant* >>> <> >>> >>> >>> ___ >> QGIS-Developer mailing list >> QGIS-Developer@lists.osgeo.org >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > > ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] PyQt and QGIS
Thanks Mario, I'm on Ubuntu. Cheers Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* On Tue, Sep 3, 2019 at 4:21 PM Mario Baranzini wrote: > Hi Shane, > are you using Linux or other systems? > > Here there are my notes on how to configure PyCharm for pyqgis development > from when I used PyCharm and Gnome: > https://marioba.gitlab.io/blog/post/2018-04-12-pyqgis-autocompletion-pycharm/ > > I Hope that helps. > > Cheers > Mario > > > > > *03 September 2019 16:53 Shane Carey > wrote:* > > Hi all, > For a few days now, I have been trying to setup PyQt and QGIS without much > success. So I have tried to create a ui using QT designer and from there > create my python file using pyuic5: > When I go to run it in PyCharm, I get the following: > No module named 'qgsfilewidget' > > And the error is coming from: > from qgsfilewidget import QgsFileWidget > > Could some please tell me how to setup PyCharm with QGIS please as I am > unable to find anything useful on google. > > Thanks > Le gach dea ghui, > *Shane Carey* > *GIS and Data Solutions Consultant* > <> > > > ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] PyQt and QGIS
Hi all, For a few days now, I have been trying to setup PyQt and QGIS without much success. So I have tried to create a ui using QT designer and from there create my python file using pyuic5: When I go to run it in PyCharm, I get the following: No module named 'qgsfilewidget' And the error is coming from: from qgsfilewidget import QgsFileWidget Could some please tell me how to setup PyCharm with QGIS please as I am unable to find anything useful on google. Thanks Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] C++ for QGIS
Hey Guys, Does anyone know of any good tutorials on how to get started with C++ for QGIS applications? Thanks in advance Le gach dea ghui, *Shane Carey* ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] Qgis has just vanished
Hi, Qgis has just vanished from my machine and I've no idea why? I tried to do a re-install and I keep getting: E: Unable to correct problems, you have held broken packages. Any ideas on what is going on here? I am on ubuntu 18.04 Thanks Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] Convert arcgis style file to qgis style file
Hi, Just wondering is there anything in the pipeline (plugin) to convert arcgis style file to qgis style file? Thanks -- Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer