[Qgis-user] python plugin on windows
I am trying to follow the manual, Section 12, Subsection 7 to get started writing Python Plugins I am getting stuck at step 3 because I am using Windows (XP) To turn the resource file into something the plugin can use, it must be compiled using the PyQt resource compiler: pyrcc4 -o resources.py resources.qrc Can anyone tell me how to perform this step on the Windows platform? Thanks, Tara -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species [EMAIL PROTECTED] 707-485-1198 PO Box 415 Redwood Valley, CA 95470 ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] python plugin on windows
Hi Tara I'm guessing you are probably going to need PyQt installed on your computer (and by extension Qt too). Martin or Aaron will probably be able to better confirm this. There are notes on how to do this here: http://wiki.qgis.org/qgiswiki/BuildingFromSource (section 3) Hope that helps! Regards Tim 2008/1/30, Tara Athan [EMAIL PROTECTED]: I am trying to follow the manual, Section 12, Subsection 7 to get started writing Python Plugins I am getting stuck at step 3 because I am using Windows (XP) To turn the resource file into something the plugin can use, it must be compiled using the PyQt resource compiler: pyrcc4 -o resources.py resources.qrc Can anyone tell me how to perform this step on the Windows platform? Thanks, Tara -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species [EMAIL PROTECTED] 707-485-1198 PO Box 415 Redwood Valley, CA 95470 ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user -- Tim Sutton QGIS Project Steering Committee Member - Release Manager Visit http://qgis.org for a great open source GIS openModeller Desktop Developer Visit http://openModeller.sf.net for a great open source ecological niche modelling tool Home Page: http://tim.linfiniti.com Skype: timlinux Irc: timlinux on #qgis at freenode.net ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] Qgis can not open more than 1012 files
Am Donnerstag 31 Januar 2008 14:09:50 schrieb Jean-Claude Repetto: The first 1012 files are opened, but for the others QGIS gives this error message : Critical: Data source is invalid You have a limit of 1024 file descriptors per process (ulimit -n) ? Oleg. ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
[Qgis-user] Qgis can not open more than 1012 files
Hi, I am trying to open a large amount of ECW files (more than 1000) with QGIS 0.9.1 The first 1012 files are opened, but for the others QGIS gives this error message : Critical: Data source is invalid The last files are correct, QGIS can open them. Is it a known limitation ? Is there a way to open more files ? Regards, Jean-Claude ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] Qgis can not open more than 1012 files
Oleg Gusev a écrit : Am Donnerstag 31 Januar 2008 14:09:50 schrieb Jean-Claude Repetto: The first 1012 files are opened, but for the others QGIS gives this error message : Critical: Data source is invalid You have a limit of 1024 file descriptors per process (ulimit -n) ? Oleg. Exactly ! I have changed the limit to 2048, and the problem has gone. Thank you, Jean-Claude ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
[Qgis-user] closing bugs
Hi all. I had a look to the bug list, and I think many of them are no longer valid. I would urge all those who reported a bug to check whether it is still valid, and if not, to close them. This is important, both for users (who do not get lost in a swamp of would-be bugs) and for developers, who can concentrate on the real ones. Having 200 open bugs is no good for anyone. Please make a little effort. All the best. pc -- Paolo Cavallini, see: http://www.faunalia.it/pc ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] python plugin on windows
I have PyQt GPL v4.3.3 installed, but I don't know how to make it perform this task (of compiling the resource file). The QGIS 0.9 manual does not describe anything so complicated as building from source. Tim, I appreciate the help, but this URL is way beyond my level at present. Tara Tim Sutton wrote: Hi Tara I'm guessing you are probably going to need PyQt installed on your computer (and by extension Qt too). Martin or Aaron will probably be able to better confirm this. There are notes on how to do this here: http://wiki.qgis.org/qgiswiki/BuildingFromSource (section 3) Hope that helps! Regards Tim 2008/1/30, Tara Athan [EMAIL PROTECTED]: I am trying to follow the manual, Section 12, Subsection 7 to get started writing Python Plugins I am getting stuck at step 3 because I am using Windows (XP) To turn the resource file into something the plugin can use, it must be compiled using the PyQt resource compiler: pyrcc4 -o resources.py resources.qrc Can anyone tell me how to perform this step on the Windows platform? Thanks, Tara -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species [EMAIL PROTECTED] 707-485-1198 PO Box 415 Redwood Valley, CA 95470 ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species [EMAIL PROTECTED] 707-485-1198 PO Box 415 Redwood Valley, CA 95470 ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] python plugin on windows
Hi Where you installed pyqt, did it not put a pyrcc file somewhere in your path? If so then you use the line from your original message: pyrcc4 -o resources.py resources.qrc Regards Tim 2008/1/31, Tara Athan [EMAIL PROTECTED]: I have PyQt GPL v4.3.3 installed, but I don't know how to make it perform this task (of compiling the resource file). The QGIS 0.9 manual does not describe anything so complicated as building from source. Tim, I appreciate the help, but this URL is way beyond my level at present. Tara Tim Sutton wrote: Hi Tara I'm guessing you are probably going to need PyQt installed on your computer (and by extension Qt too). Martin or Aaron will probably be able to better confirm this. There are notes on how to do this here: http://wiki.qgis.org/qgiswiki/BuildingFromSource (section 3) Hope that helps! Regards Tim 2008/1/30, Tara Athan [EMAIL PROTECTED]: I am trying to follow the manual, Section 12, Subsection 7 to get started writing Python Plugins I am getting stuck at step 3 because I am using Windows (XP) To turn the resource file into something the plugin can use, it must be compiled using the PyQt resource compiler: pyrcc4 -o resources.py resources.qrc Can anyone tell me how to perform this step on the Windows platform? Thanks, Tara -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species [EMAIL PROTECTED] 707-485-1198 PO Box 415 Redwood Valley, CA 95470 ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species [EMAIL PROTECTED] 707-485-1198 PO Box 415 Redwood Valley, CA 95470 -- Tim Sutton QGIS Project Steering Committee Member - Release Manager Visit http://qgis.org for a great open source GIS openModeller Desktop Developer Visit http://openModeller.sf.net for a great open source ecological niche modelling tool Home Page: http://tim.linfiniti.com Skype: timlinux Irc: timlinux on #qgis at freenode.net ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] python plugin on windows
Hi Tara, don't know if I can make it more clear, but on Linux this command 'pyrcc4' is in you PATH when you installed PyQt. On windows, it's possible that these binaries are not in your path. With me they were found here: C:\program files\Python25\pyrcc4.exe after installing. So you either call it by using the full path to it, or you add the path to python binaries to your PATH environment variable (I would do that...). The bigger picture: # QtDesigner4 will give you an '.ui' file # This .ui file is compiled using pyuic4 to a python source file containing the gui python class definition # You'll need pyrcc4 for generating a python resource file (will hold your images/icons etc) # You can then define your own class (inheriting from the gui class file above AND QDialog and add event/signal handlers to it No need to build stuff from source. Docs for PyQt4 (handy for some code examples...): http://www.riverbankcomputing.com/Docs/PyQt4/pyqt4ref.html other resources: http://wiki.qgis.org/qgiswiki/DevelopingPluginsWithPython http://wiki.qgis.org/qgiswiki/PythonPluginCodeSnippets and qgis wiki and blog or download some plugins from: http://spatialserver.net:3001/ and look into the source code for example: http://spatialserver.net/pyqgis/plugins/imagemap_plugin_v0.2.zip this is a python plugin with gui and resources (there is also some docs in the zip). http://spatialserver.net/pyqgis/plugins/rasterinfo.zip is an ever simpler example. Hope this helps you something Regards, Richard Duivenvoorde Tara Athan wrote: I have PyQt GPL v4.3.3 installed, but I don't know how to make it perform this task (of compiling the resource file). The QGIS 0.9 manual does not describe anything so complicated as building from source. Tim, I appreciate the help, but this URL is way beyond my level at present. Tara Tim Sutton wrote: Hi Tara I'm guessing you are probably going to need PyQt installed on your computer (and by extension Qt too). Martin or Aaron will probably be able to better confirm this. There are notes on how to do this here: http://wiki.qgis.org/qgiswiki/BuildingFromSource (section 3) Hope that helps! Regards Tim 2008/1/30, Tara Athan [EMAIL PROTECTED]: I am trying to follow the manual, Section 12, Subsection 7 to get started writing Python Plugins I am getting stuck at step 3 because I am using Windows (XP) To turn the resource file into something the plugin can use, it must be compiled using the PyQt resource compiler: pyrcc4 -o resources.py resources.qrc Can anyone tell me how to perform this step on the Windows platform? Thanks, Tara -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species [EMAIL PROTECTED] 707-485-1198 PO Box 415 Redwood Valley, CA 95470 ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species [EMAIL PROTECTED] 707-485-1198 PO Box 415 Redwood Valley, CA 95470 ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] python plugin on windows
Use pyrcc4 from the command line. Sent from my BlackBerry® -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- Gary Sherman Chair, QGIS Project Steering Committee Micro Resources: http://mrcc.com *Geospatial Hosting *Web Site Hosting We work virtually everywhere -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- -Original Message- From: Tara Athan [EMAIL PROTECTED] Date: Thu, 31 Jan 2008 10:20:24 To:Tim Sutton [EMAIL PROTECTED] Cc:qgis-user@lists.qgis.org Subject: Re: [Qgis-user] python plugin on windows ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
[Qgis-user] Short Training Initiative 'Free and Open Source Software Tools for Geomatics', 18 to 29-august-2008, Leuven, Belgium
Dear Members, I would like to announce the short training on Free and Open Source Geomatics tools for Land evaluation and Land use planning with emphasis on the Quantum-GIS and GRASS-software 18 to 29 August 2008 in Leuven, Belgium The short training is meant to help participants to: • Obtain an up-to-date overview of available FOSS4G-solutions and evaluate their potential; • Acquire hands-on experience with two WINDOWS-based packages of FOSS4G: Quantum-GIS and GRASS; • Identify strong and weak points of these FOSS4G-packages and ways to handle them; • Explore the possibilities to extend the Quantum-GIS-functionalities by means of plug-in programming using the Python language. The training programme comprises four modules and is conceived in a ‘Self and group exploration’ and ‘Train the Trainer’ spirit. • 12 scholarships are available via VLIR-UOS. These scholarships are dedicated to people from the south who have no links with VLIR-programmes nor with other development cooperation initiatives. • 8 places are reserved for people involved in active VLIR-projects. • The remaining seats are reserved for participants from the north with variety of fees according to the preferred module. Subscription is possible until 31-march-2008. The full announcement is available at (http://www.sadl.kuleuven.be/sadl/VLIR_KOI_en.htm). You can also find some impressions of last year’s issue of the training. If you require more information about this initiative, you can contact [EMAIL PROTECTED] Kind regards, Course coordinator ir. Ahmed Abuelnasr K.U.Leuven, RD Division SADL (Spatial Application Division Leuven) Celestijnenlaan 200 E 3001 Leuven, Belgium Tel: +32 (0) 16 32 97 39 Fax: +32 (0) 16 32 97 24 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] http://www.sadl.kuleuven.be http://www.sadl.kuleuven.be ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] python plugin on windows
Hi all 2008/1/31, Richard Duivenvoorde [EMAIL PROTECTED]: # You'll need pyrcc4 for generating a python resource file (will hold your images/icons etc) Just a small ammendment - as far as I know this is resource file is not python specific but rather Qt specific - which means for example Qt/C++ and Qt/python should be able to read icons etc from it. Probably I'm just being pedantic as Richard certainly had the most succinct answer so far. Regards -- Tim Sutton QGIS Project Steering Committee Member - Release Manager Visit http://qgis.org for a great open source GIS openModeller Desktop Developer Visit http://openModeller.sf.net for a great open source ecological niche modelling tool Home Page: http://tim.linfiniti.com Skype: timlinux Irc: timlinux on #qgis at freenode.net ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] error using the stand alone app Oceanmap
On Jan 29, 2008 11:53 PM, Tim Michelsen [EMAIL PROTECTED] wrote: 2. try to find QGIS in some default paths (/usr, /usr/local on linux or ${PROGRAM_FILES}/Quantum GIS on windows etc.) or try to use a previously saved path to QGIS installation from QSettings 3. if no installation has been found, fire up a simple UI in PyQt and let the user select the installation directory. I would like to come up with something in the same direction: In both apps presented in this thread everything seems to be relying on the path that is hardcoded into qgislite.py and mainwindow.py repectivly. The variable used is qgis_prefix = /usr/local/qgis_svn (line 55). I do not use a svn version of qgis. Instead I use the Ubuntu packages: whereis qgis qgis: /usr/bin/qgis /usr/lib/qgis /usr/share/qgis Due to some to me unknown reason, the standalone apps and python tutorials only work on my Ubuntu box when I set the path as follows: qgis_prefix = /usr I would recommend to use the where command for linux systems to get the install folder. Some pseudocode: test if on linux execute in bash `whereis qgis` whereis_output = read output from that command qgis_prefix = whereis_output if on windows use the approach Martin pointed out: (${PROGRAM_FILES}/Quantum GIS note that some users like to change the default install folder to something like c:\programms\qgis else (installation folder can't be found open a gui folder selection dialog and let the user select it. Maybe I haven't explained it well, but this is what I meant, just without running whereis utility. Since it just looks to /usr and /usr/local directories we don't have to run it and look there by ourselves. As a workaround we could use a configuration.py file. There we set the paths and the parameters for the app: cat configuration.py qgis_prefix = /usr startup_project = ./data/mycustomproject.qgs So if you deliver the app and your users have problems to start the program they'd only need to modify this configuration file and wouldn't need to mess up with the rest. Yes, script with just configuration is a simpler variant of a bootstrap script. In fact we should be able to support also gui-less configuration (since qgis libraries can be used also without gui). I think what the maximum would be to achieve real stand alone apps: ship a directory with these resources in the app. |-- LICENSE.TXT |-- Makefile |-- README.TXT |-- core |-- data |-- qgis_common |-- qgislite.py `-- tools Then every needed file could be put into the common directory (qgis_common). And we are totally independant of a QGIS install. Right, this is suitable for windows. But I would say that e.g. for linux it's more appropriate to ship standalone apps and let the user install the libraries with package manager. In case of using many stand alone apps one would put the qgis_common somewhere else and refernce it with the qgis_prefix variable. Well, this are just some ideas. They only based on brainstorming and didn't undergo testing here ;-) Hope you like them. Of course thanks for ideas! Regards Martin ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] closing bugs
Paolo Cavallini wrote: Hi all. I had a look to the bug list, and I think many of them are no longer valid. I would urge all those who reported a bug to check whether it is still valid, and if not, to close them. This is important, both for users (who do not get lost in a swamp of would-be bugs) and for developers, who can concentrate on the real ones. Having 200 open bugs is no good for anyone. Please make a little effort. I re-state my wish for auto-using bugs where we are waiting for user to report back for some length of time. I hope Tim can find the time to implement the server-side logic? Magnus ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] closing bugs
Hi We are going to be hopefully moving various qgis facilities onto different servers in the near future so I would prefer to do this afterwards, though I support the idea of closing aging bugs. The people I rent the server from auto close issues after 48 hours if waiting response from the reporter - wouldnt that be (unreaslistically) nice :-) Regards Tim 2008/1/31, Magnus Homann [EMAIL PROTECTED]: Paolo Cavallini wrote: Hi all. I had a look to the bug list, and I think many of them are no longer valid. I would urge all those who reported a bug to check whether it is still valid, and if not, to close them. This is important, both for users (who do not get lost in a swamp of would-be bugs) and for developers, who can concentrate on the real ones. Having 200 open bugs is no good for anyone. Please make a little effort. I re-state my wish for auto-using bugs where we are waiting for user to report back for some length of time. I hope Tim can find the time to implement the server-side logic? Magnus ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user -- Tim Sutton QGIS Project Steering Committee Member - Release Manager Visit http://qgis.org for a great open source GIS openModeller Desktop Developer Visit http://openModeller.sf.net for a great open source ecological niche modelling tool Home Page: http://tim.linfiniti.com Skype: timlinux Irc: timlinux on #qgis at freenode.net ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
[Qgis-user] new python plugin does not show up
I have now made it through all the steps in the manual (Section 11, subsection 7) for Using the Python Plugin. However the NewLayer plugin does not appear in the PlugIn Manager. I see a similar post on the Plugin forum (DeveloperPlugins August, 2007) but there were no replies. Version 0.9.0, 0.9.1 (I tried it in both) Platform WIndows XP SP2 Thanks, Tara ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user