Re: [Qgis-developer] Remove QgsTextAnnotationItem from canvas with Python
Hi Stefan If the text annotation is selected, you could do this: selectedItems = qgis.utils.iface.mapCanvas().scene().selectedItems() for i in range (len(selectedItems)): item=qgis.utils.iface.mapCanvas().scene().removeItem(selectedItems[i]) Regards, Marco Am Dienstag, 25. Januar 2011, um 08.46:47 schrieb Ziegler Stefan: Hi is there a way to remove text annotations from the map canvas with Python? regards Stefan Mit freundlichem Gruss Stefan Ziegler Leiter amtliche Vermessung Amt für Geoinformation Rötistrasse 4 4501 Solothurn 032 627 75 96 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Dr. Marco Hugentobler Sourcepole - Linux Open Source Solutions Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] polygoins from dxf2shp crash qgis
Hi all. qgis crashes when loading polygon generated by d2s plugin: GDAL Error 1: IllegalArgumentException: Points of LinearRing do not form a closed linestring I have a sample file if anyone is interested. All the best. -- Paolo Cavallini: http://www.faunalia.it/pc ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] polygoins from dxf2shp crash qgis
On Tue, Jan 25, 2011 at 10:46:50AM +0100, Paolo Cavallini wrote: Hi all. qgis crashes when loading polygon generated by d2s plugin: GDAL Error 1: IllegalArgumentException: Points of LinearRing do not form a closed linestring I have a sample file if anyone is interested. I recognize that message as coming from GEOS... someone must be trying to create a LinearRing with a CoordinateSequence not forming a ring. --strk; () Free GIS Flash consultant/developer /\ http://strk.keybit.net/services.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Remove QgsTextAnnotationItem from canvas with Python
Am Dienstag, 25. Januar 2011, um 10.05:36 schrieb luca_mangane...@comune.trento.it: qgis-developer-boun...@lists.osgeo.org scritti il 25/01/2011 09.40.24 Hi Stefan If the text annotation is selected, you could do this: And what if I have a pointer of that textannotation stored in a variable? In this case you feed the pointer directly to removeItem: qgis.utils.iface.mapCanvas().scene().removeItem( pointer ) ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Dr. Marco Hugentobler Sourcepole - Linux Open Source Solutions Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] error in georeferencer
Hi al. I keep on getting: std::bad_alloc when opening the georeferencer (Debian unstable, qgis trunk). After that, it seems to work fine. Can anyone confirm? All the best. -- Paolo Cavallini: http://www.faunalia.it/pc ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] dxf read
Hi all. I checked today, and I saw that reading DXF through gdal 1.7 works reasonably well. Wouldn't it be better then to drop the dxf2shape plugin, who has no maintainer and a few bugs? All the best. -- http://www.faunalia.it/pc ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] dxf read
On 01/25/2011 08:14 PM, Paolo Cavallini wrote: Hi all. I checked today, and I saw that reading DXF through gdal 1.7 works reasonably well. Wouldn't it be better then to drop the dxf2shape plugin, who has no maintainer and a few bugs? All the best. +1 from me ... I think its always better to have only ONE good working function than several approaches that do not work well at all .. if gdal works well in reading and writing(!!!) dxf i would drop dxf2shp in favor of gdal ... BUT that can happen only at that time when every distribution or ships gdal in a reasonable version (1.7 in this case) which IMHO is not at this time .. so please postpone that as long as (for my purposes debian) does not have gdal 1.7 in the main distribution (current stable ships 1.5.2-3). kind regards Werner ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] dxf read
Il giorno mar, 25/01/2011 alle 20.24 +0100, Werner Macho ha scritto: BUT that can happen only at that time when every distribution or ships gdal in a reasonable version (1.7 in this case) which IMHO is not at this time .. so please postpone that as long as (for my purposes debian) does not have gdal 1.7 in the main distribution (current stable ships 1.5.2-3). In deb stable we only have qgis 1.4, so no problem in changing 1.6. Now gdal 1.8 is out, I do not think we can afford maintaining support for more than 2 version of all the dependencies. All the best. -- http://www.faunalia.it/pc ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] mirror map lugin broken with trunk?
Hi Paolo I had the same problem with all Python plug-ins that used their own QgsMapCanvas. There were some changes to the map canvas class and the appropriate SIP files weren't updated. Here is a link to the ticket I've created, it also contains a patch: https://trac.osgeo.org/qgis/ticket/3420 I think Tim applied the patch in the last revision. Basically only the following changes: Add void paintEvent(QPaintEvent *); to python-gui-qgsmapcanvas.sip It fixed things for me, but it would be nice if you could confirm that it works. Thanks. Christoph On 2011/01/25 09:16 PM, Paolo Cavallini wrote: Hi all. The handy Mirror map plugin seems to be broken with current trunk: only a small mirror window is opened, and I cannot display data on it. Anyone confirms? All the best. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Plugins repository
Hi 2011/1/25 Václav Řehák rehak...@gmail.com: 2011/1/24 Tim Sutton li...@linfiniti.com: Hi I am busy traveling at the moment but will sort our terms and debug mode issues tomorrow night. Regards. Debug mode disabled, Gary seems to have set perms for static dir correctly already. Thanks. One more source of confusing is when I upload my plugin and click edit I am not listed as owner in the many to many field. If I add myself, save it and go back to edit, I am clear from the list of owners. Is this intended behaviour? Thats a question for Alessandro who worked on the plugin manager. Regards Tim Vaclav -- Tim Sutton - QGIS Project Steering Committee Member (Release Manager) == Please do not email me off-list with technical support questions. Using the lists will gain more exposure for your issues and the knowledge surrounding your issue will be shared with all. Visit http://linfiniti.com to find out about: * QGIS programming and support services * Mapserver and PostGIS based hosting plans * FOSS Consulting Services Skype: timlinux Irc: timlinux on #qgis at freenode.net == ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: Re[2]: [Qgis-developer] A roadmap to QGIS 2.0
Ah an inadvertant click of the send button - please see below for full message... 2011/1/25 Tim Sutton li...@linfiniti.com: Hi All To summarise the opinions (toungue in cheek here): - we should wait a long time for 2.0 - like maybe in ten years - lets release it tomorrow - september sounds fine I would like to suggest we head along the path I described, nothing is cast in stone and come september if everything is not 100% good to go we obviously won't release until we feel ready to do so. Personally I am excited about the idea of having another major release and starting towards making QGIS a mature analytical GIS in the 2.x series culminating in 3.0, rather than primarily a GIS data browser. Regarding the idea of long term supported releases, we have tried to do this before, and variations of stable and unstable release cycles etc. From past experience my opinion is that we will only be able to realise that kind of release process when there are a team of QGIS developers whose time is wholely devoted to maintaining stable releases and backporting bugfixes from upstream to them. The reality is that developers (or their sponsors) work on what they need or feel like and we have no leverage to dictate how they should ...continued spend their time. As such I suggest we continue as we are until such time that E$RI gives up on that toy GIS of theirs and throws all their resources into stabilising QGIS LTS releases. Best regards Tim 2011/1/24 Sergey Yakushev yakush...@list.ru: Mon, 24 Jan 2011 17:14:29 +0100 письмо от Marco Hugentobler marco.hugentob...@sourcepole.ch: Hi Sergey C++ plugin developer can use boost graph library The role of the boost library is not clear to me. Do you mean that plugin developers may use it or do you plan to implement parts of the analysis/vector code on top of boost? Plugin developers may use boost graph library. -- С уважением Якушев Сергей yakush...@list.ru ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Tim Sutton - QGIS Project Steering Committee Member (Release Manager) == Please do not email me off-list with technical support questions. Using the lists will gain more exposure for your issues and the knowledge surrounding your issue will be shared with all. Visit http://linfiniti.com to find out about: * QGIS programming and support services * Mapserver and PostGIS based hosting plans * FOSS Consulting Services Skype: timlinux Irc: timlinux on #qgis at freenode.net == -- Tim Sutton - QGIS Project Steering Committee Member (Release Manager) == Please do not email me off-list with technical support questions. Using the lists will gain more exposure for your issues and the knowledge surrounding your issue will be shared with all. Visit http://linfiniti.com to find out about: * QGIS programming and support services * Mapserver and PostGIS based hosting plans * FOSS Consulting Services Skype: timlinux Irc: timlinux on #qgis at freenode.net == ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] error in georeferencer
And under Ubuntu today we seemed to find no situation in which it would actually allow the transform to be carried out... Regards Tim On Tue, Jan 25, 2011 at 2:18 PM, Giovanni Manghi giovanni.man...@gmail.com wrote: Hi, Can anyone confirm? not under Ubuntu/qgis trunk. Here no error message. cheers -- Giovanni -- ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Tim Sutton - QGIS Project Steering Committee Member (Release Manager) == Please do not email me off-list with technical support questions. Using the lists will gain more exposure for your issues and the knowledge surrounding your issue will be shared with all. Visit http://linfiniti.com to find out about: * QGIS programming and support services * Mapserver and PostGIS based hosting plans * FOSS Consulting Services Skype: timlinux Irc: timlinux on #qgis at freenode.net == ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Plugins repository
Can we publish yet? It would be good to see what the site looks like when there is something to display :) -Gary GeoApt LLC Chair, Quantum GIS PSC On Jan 25, 2011, at 11:56, Tim Sutton li...@linfiniti.com wrote: Hi 2011/1/25 Václav Řehák rehak...@gmail.com: 2011/1/24 Tim Sutton li...@linfiniti.com: Hi I am busy traveling at the moment but will sort our terms and debug mode issues tomorrow night. Regards. Debug mode disabled, Gary seems to have set perms for static dir correctly already. Thanks. One more source of confusing is when I upload my plugin and click edit I am not listed as owner in the many to many field. If I add myself, save it and go back to edit, I am clear from the list of owners. Is this intended behaviour? Thats a question for Alessandro who worked on the plugin manager. Regards Tim Vaclav -- Tim Sutton - QGIS Project Steering Committee Member (Release Manager) == Please do not email me off-list with technical support questions. Using the lists will gain more exposure for your issues and the knowledge surrounding your issue will be shared with all. Visit http://linfiniti.com to find out about: * QGIS programming and support services * Mapserver and PostGIS based hosting plans * FOSS Consulting Services Skype: timlinux Irc: timlinux on #qgis at freenode.net == ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: Re[2]: [Qgis-developer] A roadmap to QGIS 2.0
Il giorno mar, 25/01/2011 alle 23.07 +0200, Tim Sutton ha scritto: spend their time. As such I suggest we continue as we are until such time that E$RI gives up on that toy GIS of theirs and throws all their resources into stabilising QGIS LTS releases. +1 ;) -- http://www.faunalia.it/pc ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] error in georeferencer
Hi, And under Ubuntu today we seemed to find no situation in which it would actually allow the transform to be carried out... I can't reproduce either of the bugs (not the bad_alloc() nor the transform failure). Do you have any specifics? cheers, Manuel ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Plugins repository
On 1/25/11 7:30 PM, Tim Sutton wrote: Hi On Tue, Jan 25, 2011 at 11:27 PM, Gary Shermangsher...@geoapt.com wrote: Can we publish yet? It would be good to see what the site looks like when there is something to display :) I don't see why not - just bear in mind that different parts of the site are in various stages of betaness - someonet with somce time to knock up some nice css for the new planet would be appreciated! Well you need 'staff' permissions to publish---so I snuck in and gave it to myself. Also committed a couple of changes to the github repo but didn't deploy them to the server. @gary - at the risk of overtaking your domain registration patience, can you register planet.qgis.org too (if it isnt on you list already?). Will do. users.qgis.org was already registered... -gary Thanks Regards Tim -Gary GeoApt LLC Chair, Quantum GIS PSC On Jan 25, 2011, at 11:56, Tim Suttonli...@linfiniti.com wrote: Hi 2011/1/25 Václav Řehákrehak...@gmail.com: 2011/1/24 Tim Suttonli...@linfiniti.com: Hi I am busy traveling at the moment but will sort our terms and debug mode issues tomorrow night. Regards. Debug mode disabled, Gary seems to have set perms for static dir correctly already. Thanks. One more source of confusing is when I upload my plugin and click edit I am not listed as owner in the many to many field. If I add myself, save it and go back to edit, I am clear from the list of owners. Is this intended behaviour? Thats a question for Alessandro who worked on the plugin manager. Regards Tim Vaclav -- Tim Sutton - QGIS Project Steering Committee Member (Release Manager) == Please do not email me off-list with technical support questions. Using the lists will gain more exposure for your issues and the knowledge surrounding your issue will be shared with all. Visit http://linfiniti.com to find out about: * QGIS programming and support services * Mapserver and PostGIS based hosting plans * FOSS Consulting Services Skype: timlinux Irc: timlinux on #qgis at freenode.net == ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- Gary Sherman Chair, QGIS Project Steering Committee -Desktop GIS Book: *http://desktopgisbook.com -Geospatial Consulting Hosting *http://geoapt.com We work virtually everywhere -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QgsMapCanvas with Dimap data
Hi John On Mon, Jan 24, 2011 at 6:01 PM, John de Muller john.de.mul...@gmail.com wrote: Good day I currently have some QgsRasterLayers without any metadata stored in the image file itself. All the metadata (eg: coordinates, rows, columns, crs, etc) is stored in an external Dimap (.dim) file. How can a pass these coordinates (like the top-left corner of the layer) to QgsRasterLayer or QgsMapCanvas so that the work with the real coordinates and not the pixel values. For instance: When I currently load the image, the coordinates QGIS uses is the width and height (in pixels) of the image (eg: 800*600). I want to adjust these values so that they represent real world coordinates (with the metadata from the dim file). I've found the the QgsRasterViewPort, but it seems like it is not possible to set these values through QgsRasterLayer. Any kind of help would be appreciated. I guess most people would use gdalwarp or similar to assign this info directly to the image. On the premise that you don't wish to do that, I suspect that the upcoming merge of the raster projection branch may be useful to you since it includes support to create new raster provider types. In the provider definition you should be able to deal with parsing the dimap file and registering the image internally. Note I havent tested this so perhaps Radim can comment more usefully. Regards Tim Thank you. John ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Tim Sutton - QGIS Project Steering Committee Member (Release Manager) == Please do not email me off-list with technical support questions. Using the lists will gain more exposure for your issues and the knowledge surrounding your issue will be shared with all. Visit http://linfiniti.com to find out about: * QGIS programming and support services * Mapserver and PostGIS based hosting plans * FOSS Consulting Services Skype: timlinux Irc: timlinux on #qgis at freenode.net == ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer