Re: [QGIS-Developer] Preview job and slow datasources

2017-11-16 Thread Patrick Dunford
Most of them are geoJpeg, there are a smaller number of geoTiff On 17/11/17 20:10, Matthias Kuhn wrote: Thanks, that's an interesting information. What datatype are your rasters? On 11/17/2017 03:53 AM, Patrick Dunford wrote: With the second command

Re: [QGIS-Developer] Preview job and slow datasources

2017-11-16 Thread Matthias Kuhn
Thanks, that's an interesting information. What datatype are your rasters? On 11/17/2017 03:53 AM, Patrick Dunford wrote: > > With the second command > > iface.mapCanvas().setPreviewJobsEnabled(False) > > when I run that command it drops back to 16 GB > > > On 16/11/17 23:15, Matthias Kuhn

Re: [QGIS-Developer] Deploy plugin by setting QGIS_PLUGINPATH

2017-11-16 Thread Zhang Qun
Hi Borys, I found your symbolic method is quite neat and useful. In this way I could directly start QGIS even from clicking the icon in launch bar without worrying about setting the env variables. Thanks. Best regards, Zhang Qun On Fri, Nov 17, 2017 at 11:15 AM, Zhang Qun

Re: [QGIS-Developer] Deploy plugin by setting QGIS_PLUGINPATH

2017-11-16 Thread Zhang Qun
Hi Patrick, thanks for the replay. It worked now if I set the env variable to the parent folder of my plugin. Thanks. Best regards, Zhang Qun On Thu, Nov 16, 2017 at 6:47 PM, Patrick Dunford wrote: > There are sometimes reasons why this method may not work (I think

Re: [QGIS-Developer] Deploy plugin by setting QGIS_PLUGINPATH

2017-11-16 Thread Zhang Qun
Thanks Luiz for the alternative solution. I will try that later. Best regards, Zhang Qun On Thu, Nov 16, 2017 at 7:53 PM, Luiz Motta wrote: > Hi Zhang, > > In my plugins, I use the '__file__' for get the path of my plugin. > > Example in '__ini__.py': > > import os >

Re: [QGIS-Developer] Deploy plugin by setting QGIS_PLUGINPATH

2017-11-16 Thread Zhang Qun
Hi Richard, Thank you for the detailed explanation. I can check the variable value in Option/System tab and now it worked. I found I need to set the variable to the parent folder of my plugin and check the plugin manager list as you suggested. Thank you. Best regards, Zhang Qun On Thu, Nov

Re: [QGIS-Developer] Deploy plugin by setting QGIS_PLUGINPATH

2017-11-16 Thread Zhang Qun
Hi Borys, thanks for your kind reply and your advice setting the variable pointing to its parent folder of the plugin worked. I also found I need to check the plugin manager list before my plugin can show in the menu. The plugin manager somehow loaded the plugin while I check the list. Thank you

Re: [QGIS-Developer] Preview job and slow datasources

2017-11-16 Thread Patrick Dunford
With the second command iface.mapCanvas().setPreviewJobsEnabled(False) when I run that command it drops back to 16 GB On 16/11/17 23:15, Matthias Kuhn wrote: Hi Patrick, Would be interesting to do this test with previews enabled and disabled. Then we'll see if it's actually the previews

Re: [QGIS-Developer] Preview job and slow datasources

2017-11-16 Thread Matthias Kuhn
Hi they are triggered by QgsMapCanvas (in the gui library), so I would be very surprised if they were triggered on the server. Matthias On 11/16/2017 02:29 PM, kimaidou wrote: > Hi, > > I was wondering if these preview jobs are enabled in QGIS Server > context, when requesting a GetMap from

Re: [QGIS-Developer] using plugins from home directory

2017-11-16 Thread Richard Duivenvoorde
On 16-11-17 16:15, Tom Kralidis wrote: > Hi devs: using master (from OSGeo4W) I have a local copy of MetaSearch in > ~/.qgis3/python/plugins/MetaSearch, however MetaSearch is only recognized > from the qgis-dev install of OSGeo4W in > /OSGeo4W/apps/qgis-dev/python/plugins/MetaSearch. > > Any idea

[QGIS-Developer] Qt4 Designer - custom widgets - Manjaro

2017-11-16 Thread Anjo Weichbrodt
Hi everyone, I am trying to work with the Qgs custom-widgets in Qt4 Designer. I am running Manjaro on kernel 4.14. So far I tried to install QGIS 2.18 from the AUR compiling it with the option -WITH_CUSTOM_WIDGETS=TRUE. No custom widgets appeared after that in QT4 designer. Thanks for your

[QGIS-Developer] using plugins from home directory

2017-11-16 Thread Tom Kralidis
Hi devs: using master (from OSGeo4W) I have a local copy of MetaSearch in ~/.qgis3/python/plugins/MetaSearch, however MetaSearch is only recognized from the qgis-dev install of OSGeo4W in /OSGeo4W/apps/qgis-dev/python/plugins/MetaSearch. Any idea what I'm doing wrong here? I'd like to be able

Re: [QGIS-Developer] Deploy plugin by setting QGIS_PLUGINPATH

2017-11-16 Thread Borys Jurgiel
I'm sorry for the messy reply made by my wonderful kmail5 ;p The first paragraph is outdated - I checked and it works. The second is an alternative solution, and the direct response to your question is on the end. Regards, Borys ___ QGIS-Developer

Re: [QGIS-Developer] Windows QGIS Installer builds

2017-11-16 Thread Stefan Blumentrath
Hi Richard, We/I have done so earlier from OSGeo4W binaries, using creatnsis.pl (meaning without compiling stuff ourselfs) while injecting use of --configpath option in the startup batch scripts). That was a quite OK solution until the number of relevant packages grew beyond the size limit of

Re: [QGIS-Developer] Deploy plugin by setting QGIS_PLUGINPATH

2017-11-16 Thread Borys Jurgiel
Please niote I don't remember whether the Plugin Installer (the part of Plugin Manager's backend responsible for e.g. listing installed and available Python plugins) is able to look for multiple directories. First of all, do you really need to extend QGIS_PLUGINPATH ? Maybe it's enough to put

Re: [QGIS-Developer] Preview job and slow datasources

2017-11-16 Thread kimaidou
Hi, I was wondering if these preview jobs are enabled in QGIS Server context, when requesting a GetMap from any client. I am pretty sure the context of the preview jobs execution is related to Desktop, but I would like to be sure. Any hint on this ? Regards, Michaƫl 2017-11-16 11:15 GMT+01:00

Re: [QGIS-Developer] Deploy plugin by setting QGIS_PLUGINPATH

2017-11-16 Thread Richard Duivenvoorde
I think what Zhang Qun is asking if he can use a custom directory to store his plugin in. If I grep in the source dir of QGIS I see a lot of references to QGIS_PLUGINPATH, so it should work. I also see in the changelog that is there since 2010 (and a lot of fixes for windows environments) Do

[QGIS-Developer] Windows QGIS Installer builds

2017-11-16 Thread Richard Duivenvoorde
Hi Devs, I see (and personally get) more and more questions about individuals or businesses who want to create their own QGIS windows installers. Sometimes to do some branding, sometimes to create a 'suite' with some plugins etc etc. Myself I do not do this, but I see people struggling. I

Re: [QGIS-Developer] Deploy plugin by setting QGIS_PLUGINPATH

2017-11-16 Thread Luiz Motta
Hi Zhang, In my plugins, I use the '__file__' for get the path of my plugin. Example in '__ini__.py': import os dirPlugin = os.path.dirname(__file__) 2017-11-16 8:47 GMT-02:00 Patrick Dunford : > There are sometimes reasons why this method may not work (I think

Re: [QGIS-Developer] Deploy plugin by setting QGIS_PLUGINPATH

2017-11-16 Thread Patrick Dunford
There are sometimes reasons why this method may not work (I think Ubuntu does have a particular limitation in this regard) One option is you can create a shortcut on the menu and pass the variable value in that shortcut. For example one of the Qgis shortcuts on the Whiskers menu in XFCE on

[QGIS-Developer] Deploy plugin by setting QGIS_PLUGINPATH

2017-11-16 Thread Zhang Qun
Dear all, I want to use the QGIS_PLUGINPATH environment variable to point to the directory where my plugin are located but did not manage to get it work. I'm on Ubuntu16.04 and running QGIS 2.18. I set the variable in terminal by: $ export QGIS_PLUGINPATH=~/QGIS_Plugins/rndf-editor/RNDFEditor/

Re: [QGIS-Developer] Preview job and slow datasources

2017-11-16 Thread Matthias Kuhn
Hi Patrick, Would be interesting to do this test with previews enabled and disabled. Then we'll see if it's actually the previews or some other mechanism that is causing this. IIRC only a composite image is saved in the preview jobs and not each layer separately, but that's just what I remember

[QGIS-Developer] Parse project grid LineSymbol properties

2017-11-16 Thread Tom Chadwin
I'm retrieving the project grid line symbol properties in Python: stroke = project.readEntry("Grid", "/LineSymbol", "")[0] This gives me what I presume is a string of serialized XML: I already have a function which reads through the properties