<div><font face="times new roman,serif">Hi</font></div>
<div><font face="times new roman,serif"></font> </div>
<div><font face="times new roman,serif">I am a user of Qgis 0.9.1 Ganymede... I tried to instal plugin such as profiletool with Python Plugin Installer but when i go to the plugin menu there are no such thing as </font> <font face="Arial" size="3"><font face="Arial" size="3">Plugins > Fetch Python Plugins... </font></font></div>
<div><font face="times new roman,serif" size="3">what should i do?</font></div>
<p align="left"><font face="times new roman,serif" size="3">Regards </font></p>
<p align="left"><font face="times new roman,serif" size="3">Makis</font></p>
<div><br><br></div>
<div class="gmail_quote">2009/4/25 <span dir="ltr"><<a href="mailto:qgis-developer-request@lists.osgeo.org">qgis-developer-request@lists.osgeo.org</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Send Qgis-developer mailing list submissions to<br> <a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a><br>
<br>To subscribe or unsubscribe via the World Wide Web, visit<br> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:qgis-developer-request@lists.osgeo.org">qgis-developer-request@lists.osgeo.org</a><br><br>You can reach the person managing the list at<br> <a href="mailto:qgis-developer-owner@lists.osgeo.org">qgis-developer-owner@lists.osgeo.org</a><br>
<br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Qgis-developer digest..."<br><br><br>Today's Topics:<br><br> 1. Re: QGIS GRASS shell patch (Paolo Cavallini)<br>
2. Re: Rendering Real-Time Data in QGIS (Florian El Ahdab)<br> 3. Re: Import error in the qgis.core, qgis.gui module, Help<br> needed (Ervin)<br> 4. Re: Import error in the qgis.core, qgis.gui module, Help<br>
needed (J?rgen E. Fischer)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Fri, 24 Apr 2009 18:10:22 +0200<br>From: Paolo Cavallini <<a href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a>><br>
Subject: Re: [Qgis-developer] QGIS GRASS shell patch<br>To: <a href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a><br>Cc: qgis-developer <<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>><br>
Message-ID: <<a href="mailto:49F1E46E.4010105@faunalia.it">49F1E46E.4010105@faunalia.it</a>><br>Content-Type: text/plain; charset=windows-1252<br><br>Paolo Cavallini ha scritto:<br><br>> OK, now it compiles and works. It solves bugs:<br>
<br>I forgot: Writing or pasting a command with all options, it executes it,<br>showing the messages. If only the command is written, the GRASS<br>interactive mode is started.<br>All the best.<br>--<br>Paolo Cavallini: <a href="http://www.faunalia.it/pc" target="_blank">http://www.faunalia.it/pc</a><br>
<br><br>------------------------------<br><br>Message: 2<br>Date: Sat, 25 Apr 2009 11:38:03 +0200<br>From: Florian El Ahdab <<a href="mailto:felahdab@gmail.com">felahdab@gmail.com</a>><br>Subject: Re: [Qgis-developer] Rendering Real-Time Data in QGIS<br>
To: <a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a><br>Message-ID:<br> <<a href="mailto:eb2cc3420904250238u7d0765f1p58961e6181dc2bb@mail.gmail.com">eb2cc3420904250238u7d0765f1p58961e6181dc2bb@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br><br>Hi.<br><br>I have been trying to use your tips to render dynamic data (AIS tracks,<br>probably the same objective as Chee Kiang Lim).<br><br>So as to do so, here is what I have done so far:<br>
In a plugin, I have subclassed the MapCanvasItem (in fact, I have used a<br>renamed VertexMarker class). This subclass is named CustomMapCanvasItem.<br>I have created a QThread subclass (CustomMapCanvasItemThread), which moves<br>
the CustomMapCanvasItem it received in reference every 500ms (that is, it<br>setCenter() on the item, then updatePosition()).<br><br>Here is my problem:<br>When I create 1 of those items, everything works fine. With a map loaded, I<br>
can see the Item moving around every 500ms.<br>But when I create 10 of those items (and consequently 10 threads), I can see<br>them moving but qgis crashes randomly (between 1 and 10 seconds max).<br>I suspect this is because there is no synchronization in the access to the<br>
Item data when the thread moves the item.<br>I have tried to freeze the MapCanvas before updating the position... but it<br>doesn't work either.<br><br>Wonder:<br>If my explanations are clear enough, can you help me?<br>
Can you detail a little bit further how you would do such a thing for a<br>large amount of tracks (let's say 5000...).<br>If there is a need for synchronization, how can I synchronize the access to<br>the items that I have to add to the MapCanvas (which doesn't synchronize<br>
before using the data apparently.)<br><br>Thanks a lot.<br>Florian<br><br>On Thu, Feb 5, 2009 at 7:24 PM, Martin Dobias <<a href="http://wonder.sk/" target="_blank">wonder.sk</a>@<a href="http://gmail.com/" target="_blank">gmail.com</a>> wrote:<br>
<br>> On Thu, Feb 5, 2009 at 1:47 PM, Chee Kiang Lim <<a href="mailto:cheekiang.lim@gmail.com">cheekiang.lim@gmail.com</a>><br>> wrote:<br>> > Hi,<br>> ><br>> > I'm new to the QGIS API and have explored it very briefly. I am trying to<br>
> > write a c++ plugin that will take in the locations of approximately<br>> > 100 vessels and render their current position (which varies with time)on<br>> top<br>> > of an underlying map. I used polygons to represent those vessels on a<br>
> vector<br>> > layer using the memory provider. Each update involves deleting old<br>> features<br>> > and adding new ones followed by refreshing of mapcanvas triggered when<br>> > changes are committed. As there is a need to render updates at a high<br>
> > frequency for real time display, with positional data coming in at about<br>> > 1-2Hz, the application was too occupied refreshing the canvas. This makes<br>> > the application unresponsive to subsequent user commands. I tried<br>
> > using update(Rect of changedExtent) for localized painting/canvas<br>> refreshing<br>> > but the rendering is still too taxing. Can you provide some advice on how<br>> i<br>> > can go about rendering this huge amount of data in real time?<br>
> ><br>> > I also tried using rubberbands and they work much better but i need to<br>> > display text attributes beside each vessel which i do not know how to<br>> > achieve without labels. Any alternative to rendering text at specific map<br>
> > location that i can update in real time?<br>><br>> Custom map canvas items are perfectly suited for this type of task.<br>> They don't require map to be re-rendered when the item gets updated.<br>> You can subclass your own class directly from QgsMapCanvasItem or you<br>
> can create specialized class from QgsRubberBand that will additionally<br>> draw text labels.<br>><br>> You can also take a look on some brief documentation for map canvas:<br>> <a href="http://wiki.qgis.org/qgiswiki/MapCanvas_API" target="_blank">http://wiki.qgis.org/qgiswiki/MapCanvas_API</a><br>
><br>> Martin<br>> _______________________________________________<br>> Qgis-developer mailing list<br>> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://lists.osgeo.org/pipermail/qgis-developer/attachments/20090425/6b6ccaf3/attachment-0001.html" target="_blank">http://lists.osgeo.org/pipermail/qgis-developer/attachments/20090425/6b6ccaf3/attachment-0001.html</a><br>
<br>------------------------------<br><br>Message: 3<br>Date: Sat, 25 Apr 2009 04:10:56 -0700 (PDT)<br>From: Ervin <<a href="mailto:ervinramonllari@gmail.com">ervinramonllari@gmail.com</a>><br>Subject: Re: [Qgis-developer] Import error in the qgis.core, qgis.gui<br>
module, Help needed<br>To: <a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a><br>Message-ID: <<a href="mailto:1240657856276-2706728.post@n2.nabble.com">1240657856276-2706728.post@n2.nabble.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br><br><br><br><br>Bishwarup Banerjee wrote:<br>><br>> Hi,<br>><br>> I am a newbie in this environment (python, QGIS). For last few days i<br>> have<br>> been trying hard to compile and execute the tutorial of TIM written in<br>
> python. But i am getting some error or other.<br>><br>> The code is as follows<br>><br>><br>><br>><br>> import sys<br>> import os<br>><br>><br>> from PyQt4.QtCore import *<br>> from PyQt4.QtGui import *<br>
> from qgis.core import *<br>> from qgis.gui import *<br>> #from F:\Python25\Lib\site-packages\qgis import core as QgsCore<br>> #from F:\Python25\Lib\site-packages\qgis import gui as QgsGui<br>><br>> # Import our GUI<br>
> from mainwindow_ui import Ui_MainWindow<br>> # Import our resources (icons)<br>> import resources<br>> # Environment variable QGISHOME must be set to the install directory<br>> # before running this application<br>
> qgis_prefix = os.getenv("QGISHOME")<br>> class MainWindow(QMainWindow, Ui_MainWindow):<br>><br>> def __init__(self):QMainWindow.__init__(self)<br>><br>> # Required by Qt4 to initialize the UI<br>
> self.setupUi(self)<br>><br>> # Set the title for the app<br>> self.setWindowTitle("BTC C-DAC v 1.0")<br>> # Create the map canvas<br>> self.canvas = QgsMapCanvas()<br>> # Set the background color to light blue something<br>
> self.canvas.setCanvasColor(QColor(200,200,255))<br>> self.canvas.enableAntiAliasing(True)<br>> self.canvas.useQImageToRender(False)<br>> self.canvas.show()<br>><br>> # Lay our widgets out in the main window using a<br>
> # vertical box layout<br>> self.layout = QVBoxLayout(self.frame)<br>> self.layout.addWidget(self.canvas)<br>><br>> # Create the actions for our tools and connect each to the appropriate<br>> # method<br>
> self.actionAddLayer = QAction(QIcon(":/foss4g2007/mActionAddLayer.png"),<br>> "Add Layer", self.frame)<br>><br>> self.connect(self.actionAddLayer, SIGNAL("activated()"), self.addLayer)<br>
> self.actionZoomIn = QAction(QIcon(":/foss4g2007/mActionZoomIn.png"),<br>> "Zoom<br>> In", self.frame)<br>> self.connect(self.actionZoomIn, SIGNAL("activated()"), self.zoomIn)<br>
> self.actionZoomOut = QAction(QIcon(":/foss4g2007/mActionZoomOut.png"),<br>> "Zoom Out", self.frame)<br>> self.connect(self.actionZoomOut, SIGNAL("activated()"), self.zoomOut)<br>> self.actionPan = QAction(QIcon(":/foss4g2007/mActionPan.png"), "Pan",<br>
> self.frame)<br>> self.connect(self.actionPan, SIGNAL("activated()"), self.pan)<br>> self.actionZoomFull =<br>> QAction(QIcon(":/foss4g2007/mActionZoomFullExtent.png"), "Zoom Full<br>
> Extent",<br>><br>> self.frame)<br>> self.connect(self.actionZoomFull, SIGNAL("activated()"),<br>> self.zoomFull)<br>><br>> # Create a toolbar<br>> self.toolbar = self.addToolBar("Map")<br>
> # Add the actions to the toolbar<br>> self.toolbar.addAction(self.actionAddLayer)<br>> self.toolbar.addAction(self.actionZoomIn)<br>> self.toolbar.addAction(self.actionZoomOut);<br>> self.toolbar.addAction(self.actionPan);<br>
> self.toolbar.addAction(self.actionZoomFull);<br>><br>> # Create the map tools<br>> self.toolPan = QgsMapToolPan(self.canvas)<br>> self.toolZoomIn = QgsMapToolZoom(self.canvas, False) # false = in<br>> self.toolZoomOut = QgsMapToolZoom(self.canvas, True) # true = out<br>
> # Set the map tool to zoom in<br>> def zoomIn(self):<br>> self.canvas.setMapTool(self.toolZoomIn)<br>><br>> # Set the map tool to zoom out<br>> def zoomOut(self):<br>> self.canvas.setMapTool(self.toolZoomOut)<br>
><br>> # Set the map tool to<br>> def pan(self):<br>> self.canvas.setMapTool(self.toolPan)<br>><br>> # Zoom to full extent of layer<br>> def zoomFull(self):<br>> self.canvas.zoomFullExtent()<br>
> # Add an OGR layer to the map<br>> def addLayer(self):<br>> file = QFileDialog.getOpenFileName(self, "Open Shapefile", ".",<br>> "Shapefiles(*.shp)")<br>><br>> fileInfo = QFileInfo(file)<br>
><br>> # Add the layer<br>> layer = QgsVectorLayer(file, fileInfo.fileName(), "ogr")<br>><br>> #if not layer.isValid():<br>> #return<br>><br>> # Change the color of the layer to gray<br>
> symbols = layer.renderer().symbols()<br>> symbol = symbols[0]<br>> symbol.setFillColor(QColor.fromRgb(192,192,192))<br>><br>> # Add layer to the registry<br>> QgsMapLayerRegistry.instance().addMapLayer(layer);<br>
><br>> # Set extent to the extent of our layer<br>> self.canvas.setExtent(layer.extent())<br>><br>> # Set up the map canvas layer set<br>> cl = QgsMapCanvasLayer(layer)<br>> layers = [cl]<br>> self.canvas.setLayerSet(layers)<br>
><br>> def main(argv):<br>> # create Qt application<br>> app = QApplication(argv)<br>><br>> # Initialize qgis libraries<br>> QgsApplication.setPrefixPath(qgis_prefix, True)<br>> QgsApplication.initQgis()<br>
><br>> # create main window<br>> wnd = MainWindow()<br>><br>> # Move the app window to upper left<br>> wnd.move(100,100)<br>> wnd.show()<br>><br>> # run!<br>> retval = app.exec_()<br>><br>
> # exit<br>> QgsApplication.exitQgis()<br>> sys.exit(retval)<br>><br>><br>> if __name__ == "__main__":<br>> main(sys.argv)<br>><br>><br>><br>> Previously i was getting the error<br>
><br>> No module named PyQt4.QtCore and PyQt4.QtGui<br>><br>> But after installing the PyQt inside the site package it is not<br>> showing any error now.<br>><br>><br>> Now i have started getting the error,<br>
> qgis. core module not found.<br>> qgis.gui module not found.<br>><br>> I have done whatever way possible from my side.<br>><br>> My system environment is as follows:<br>><br>> OS -- Windows 2000<br>
> Python 2.5<br>> PyQt 4.4.3.1<br>> QGIS 0.11.0.2<br>><br>> I dont know in which step i should be installing these one after other.<br>> and also where to install and how to compile<br>><br>> It will be very kind of you if you can help me out.<br>
><br>> Bye<br>> Sonai<br>><br>> _______________________________________________<br>> Qgis-developer mailing list<br>> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>><br>><br><br>Hi there,<br><br>I'm also having trouble with the example given above. The error message I<br>
got is:<br><br>Traceback (most recent call last):<br> File "<pyshell#3>", line 1, in <module><br> import qgis.core<br>ImportError: DLL load failed: The specified procedure could not be found.<br><br>
I have installed python 2.5.2 in C:\Python25 and Qgis 1.0 installed from the<br>package OSGeo4W in the default dir C:\OSGeo4W.<br><br>The environment variables are set as below:<br><br>PATH = C:\OSGeo4W\apps\qgis;%PATH%<br>
PYTHONPATH = C:\OSGeo4W\apps\python25\lib\site-packages<br>QGISHOME = C:\OSGeo4W\apps\qgis<br><br>I also tried to add to the path variable the following dirs:<br>C:\OSGeo4W\bin; C:\OSGeo4W\apps\qgis\bin<br><br>but still no result.<br>
<br>I would really appreciate any help!<br><br>Many thanks in advance,<br><br>Ervin<br><br>--<br>View this message in context: <a href="http://n2.nabble.com/Import-error-in-the-qgis.core%2C-qgis.gui-module%2C-Help-needed-tp2040109p2706728.html" target="_blank">http://n2.nabble.com/Import-error-in-the-qgis.core%2C-qgis.gui-module%2C-Help-needed-tp2040109p2706728.html</a><br>
Sent from the qgis-developer mailing list archive at Nabble.com.<br><br><br><br>------------------------------<br><br>Message: 4<br>Date: Sat, 25 Apr 2009 13:48:19 +0200<br>From: J?rgen E. Fischer <<a href="mailto:jef@norbit.de">jef@norbit.de</a>><br>
Subject: Re: [Qgis-developer] Import error in the qgis.core, qgis.gui<br> module, Help needed<br>To: <a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a><br>Message-ID: <<a href="mailto:20090425114818.GA9771@norbit.de">20090425114818.GA9771@norbit.de</a>><br>
Content-Type: text/plain; charset=iso-8859-1<br><br>Hi Ervin,<br><br>On Sat, 25. Apr 2009 at 04:10:56 -0700, Ervin wrote:<br>> I have installed python 2.5.2 in C:\Python25 and Qgis 1.0 installed<br>> from the package OSGeo4W in the default dir C:\OSGeo4W.<br>
<br>Double check that you're using OSGeo4W's python and nothing from the one<br>in C:\Python25.<br><br><br>Jürgen<br><br>--<br>Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-20<br>Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50<br>
Software Engineer D-26506 Norden <a href="http://www.norbit.de/" target="_blank">http://www.norbit.de</a><br><br>--<br>norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH<br>Rheinstrasse 13, 26506 Norden<br>
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502<br><br><br><br>------------------------------<br><br>_______________________________________________<br>Qgis-developer mailing list<br><a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br><br><br>End of Qgis-developer Digest, Vol 38, Issue 41<br>**********************************************<br>
</blockquote></div><br>