Re: [Qgis-developer] double handed RangeSlider (for TimeManager)?
Hi Richard, On Fri, Sep 9, 2016 at 3:28 PM, Richard Duivenvoorde <rdmaili...@duif.net> wrote: > I'm wondering if it is doable to create a custom QgsDoubleQtSlider which > more or less looks like something like this: > have a look at this [1]. I developed it years ago and used it in few plugins (e.g. see [2]). Best regards. Giuseppe [1] https://github.com/brushtyler/range_filter [2] https://plugins.qgis.org/plugins/gem_mt/ -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QGIS DB Manager - Execute SQL
Hi Spencer, I'm moving the thread to qgis-dev ML. Instead of using the postgis_utils.py module, just import db_manager/db_plugins/postgis/connector.py and create an instance of PostGisDBConnector. That class allows you to do everything you need, even run a sql query. Here's a code snippet acting on the active PostGIS layer: from db_manager.db_plugins.postgis.connector import PostGisDBConnector vl = iface.activeLayer() uri = QgsDataSourceURI( vl.source() ) conn = PostGisDBConnector( uri ) sql = u"SELECT * FROM mytable" cursor = conn._execute( None, sql ) for row in conn._fetchall( cursor ): print row conn._close_cursor( cursor ) sql = u"UPDATE mytable SET col1='5' " conn._execute_and_commit( sql ) For more usage examples, have a look at connector.py code, or just ask ;-) Cheers! Giuseppe On Thu, Oct 22, 2015 at 2:09 PM Spencer Gardner <spencergard...@gmail.com> wrote: > I have created a QGIS plugin that adds several tools to the QGIS > Processing framework. Many of the tools need to communicate with a PostGIS > database. Up to now, I have accomplished this using a helper utility > included in the Processing framework. (See this > <https://lists.osgeo.org/pipermail/qgis-developer/2015-October/039609.html> > mailing list discussion for more details.) > > I'm now investigating the possibility to switch to using the db_manager > plugin for all of the database work. I'm testing on my own tools right now, > although this could eventually replace the utility that is included within > Processing for all algorithms. > > I'm having some trouble figuring out how to execute a simple SQL query on > my database and I'm hoping that you can provide an example for me to refer > to. I can successfully create a layer from a sql query using > the toSqlLayer() function, but I don't see an easy way to just run a query. > > For example, some of my tools involve running an UPDATE operation on a > table. How could I accomplish that? > > Thanks for your help, > Spencer > -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] crash on deleting a column (virtual field)
Hi Salvatore, I'm unable to find the ticket no., I would like to know if the virtual field issue is fixed in current master (today I'm unable to build the master on Ubuntu 14.04 due to an error linking geos library, related to the following changes [1]). Did you have time to have a look at it? Otherwise, if you need help in crushing this bug, please just ask. Cheers! Giuseppe [1] https://github.com/qgis/QGIS/commit/e9e638f6f40baf22f4d0667a98fb8e034fefd78c On Wed, Sep 23, 2015 at 12:12 AM Salvatore Larosa <lrssv...@gmail.com> wrote: > Hi Giuseppe, > > On Tue, Sep 22, 2015 at 10:55 PM, Giuseppe Sucameli <brush.ty...@gmail.com> > wrote: > > Hi Salvatore, > > I can reproduce the issue you reported, I get segfault following those > > steps. > > thank you Giuseppe for having tried it, maybe I am managed to find a fix > for it. > > > Please, file a new ticket for it, AFAICS it's not related to the other > > issue. > > I will do. > > Saluti, > -SL > > > Ciao. > > Giuseppe > > > > > > On Tue, Sep 22, 2015 at 3:06 PM Salvatore Larosa <lrssv...@gmail.com> > wrote: > >> > >> Hi Tom, > >> > >> On Tue, Sep 22, 2015 at 10:02 AM, Tom Chadwin <tom.chad...@nnpa.org.uk> > >> wrote: > >> > Hi Salvatore > >> > > >> > Following the steps in Pedro's ticket does *not* crash for me. > However, > >> > I'll > >> > ask some questions to clarify: > >> > > >> > 1. I did not select "Virtual field", as that was not mentioned in the > >> > ticket > >> > >> I added a comment to the issue with the steps already mentioned in this > >> trhead. > >> > >> > 2. I only gave a static value for the contents o the field, rather > than > >> > an > >> > expression - does this only happen with more complex expressions? > >> > >> yes it occurs with any value, not needed a complex expression. > >> > >> > 3. I did not close the attribute table between creating the new field > >> > and > >> > deleting it > >> > >> correct, you have to keep attribute dialog open > >> > >> > Does anyone else *not* get a crash following the steps in > >> > https://hub.qgis.org/issues/13366? > >> > >> Actually there are two different issue apparently, the first one > >> (Pedro's issue) happens with native field, but it was already fixed > >> [0], > >> the second one (mine) happens when creating a virtual field by field > >> calculator and then deleting it. > >> > >> Maybe should I file a new ticket for it? > >> > >> Thanks for your feedback. > >> > >> -- > >> Salvatore Larosa > >> linkedIn: http://linkedin.com/in/larosasalvatore > >> twitter: @lrssvt > >> skype: s.larosa > >> IRC: lrssvt on freenode > >> ___ > >> Qgis-developer mailing list > >> Qgis-developer@lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/qgis-developer > > > > -- > > Giuseppe Sucameli > > -- > Salvatore Larosa > linkedIn: http://linkedin.com/in/larosasalvatore > twitter: @lrssvt > skype: s.larosa > IRC: lrssvt on freenode > -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] crash on deleting a column (virtual field)
Hi Salvatore, I can reproduce the issue you reported, I get segfault following those steps. Please, file a new ticket for it, AFAICS it's not related to the other issue. Ciao. Giuseppe On Tue, Sep 22, 2015 at 3:06 PM Salvatore Larosa <lrssv...@gmail.com> wrote: > Hi Tom, > > On Tue, Sep 22, 2015 at 10:02 AM, Tom Chadwin <tom.chad...@nnpa.org.uk> > wrote: > > Hi Salvatore > > > > Following the steps in Pedro's ticket does *not* crash for me. However, > I'll > > ask some questions to clarify: > > > > 1. I did not select "Virtual field", as that was not mentioned in the > ticket > > I added a comment to the issue with the steps already mentioned in this > trhead. > > > 2. I only gave a static value for the contents o the field, rather than > an > > expression - does this only happen with more complex expressions? > > yes it occurs with any value, not needed a complex expression. > > > 3. I did not close the attribute table between creating the new field and > > deleting it > > correct, you have to keep attribute dialog open > > > Does anyone else *not* get a crash following the steps in > > https://hub.qgis.org/issues/13366? > > Actually there are two different issue apparently, the first one > (Pedro's issue) happens with native field, but it was already fixed > [0], > the second one (mine) happens when creating a virtual field by field > calculator and then deleting it. > > Maybe should I file a new ticket for it? > > Thanks for your feedback. > > -- > Salvatore Larosa > linkedIn: http://linkedin.com/in/larosasalvatore > twitter: @lrssvt > skype: s.larosa > IRC: lrssvt on freenode > ___ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-developer > -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] DB Manager changing behaviour?
Ciao Paolo, On Fri, Aug 28, 2015 at 9:12 AM Paolo Cavallini cavall...@faunalia.it wrote: currently, DB Manager throws an error what's the error? Is the change really necessary? Wouldn't it be better to revert it? AFAIK DBManager doesn't check the query, so I suppose that the error comes from the underlying database. Cheers. Giuseppe -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] PR review about DB Manager
Ugh, there's something other than merge master into branch in that commit... Ok, I'll going to merge it as well. Regards. On Wed, May 27, 2015 at 9:39 AM, Etienne Trimaille etienne.trimai...@gmail.com wrote: Thanks Giuseppe for the merge. In the third commit, I changed the new feature 'createView' from Hugo to use the 'getSqlQuery'. But this commit hasn't been pushed. It would be nice to use always this function, if someone wants to create a view with the selected query. Regards, Etienne 2015-05-27 1:07 GMT+02:00 Giuseppe Sucameli brush.ty...@gmail.com: Merged and closed both PR. Best regards. Giuseppe On Tue, May 26, 2015 at 1:25 PM, Etienne Trimaille etienne.trimai...@gmail.com wrote: Sorry for the double merge. It comes after the work from Hugo. This feature was on the changelog for 2.8, but the selected query couldn't be loaded on the map canvas. We could only execute the selected part to see the table in the sql window. That's why there is a backport. 2015-05-26 10:54 GMT+02:00 Giuseppe Sucameli brush.ty...@gmail.com: Hi, I agree the changes are good, I don't know if the double merge on PR 1999 could break something, but we can just pick the right commit. On Tue, May 26, 2015 at 9:46 AM, René-Luc Dhont rldh...@gmail.com wrote: I looked at the code and it's pretty simple. If some code are selected, the selection has run otherwise all the code has run. Some one to agree this PR ? Le 25/05/2015 19:08, Paolo Cavallini a écrit : Am 25.05.2015 um 18:40 schrieb Etienne Trimaille: I opened two PR one month ago about to run only a selected query in the db manager. https://github.com/qgis/QGIS/pull/1999 https://github.com/qgis/QGIS/pull/2000 Could you please review them and merge ? Agreed, it would be good to have them. Anyone can review them? Thanks. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] PR review about DB Manager
Hi, I agree the changes are good, I don't know if the double merge on PR 1999 could break something, but we can just pick the right commit. On Tue, May 26, 2015 at 9:46 AM, René-Luc Dhont rldh...@gmail.com wrote: I looked at the code and it's pretty simple. If some code are selected, the selection has run otherwise all the code has run. Some one to agree this PR ? Le 25/05/2015 19:08, Paolo Cavallini a écrit : Am 25.05.2015 um 18:40 schrieb Etienne Trimaille: I opened two PR one month ago about to run only a selected query in the db manager. https://github.com/qgis/QGIS/pull/1999 https://github.com/qgis/QGIS/pull/2000 Could you please review them and merge ? Agreed, it would be good to have them. Anyone can review them? Thanks. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] PR review about DB Manager
Merged and closed both PR. Best regards. Giuseppe On Tue, May 26, 2015 at 1:25 PM, Etienne Trimaille etienne.trimai...@gmail.com wrote: Sorry for the double merge. It comes after the work from Hugo. This feature was on the changelog for 2.8, but the selected query couldn't be loaded on the map canvas. We could only execute the selected part to see the table in the sql window. That's why there is a backport. 2015-05-26 10:54 GMT+02:00 Giuseppe Sucameli brush.ty...@gmail.com: Hi, I agree the changes are good, I don't know if the double merge on PR 1999 could break something, but we can just pick the right commit. On Tue, May 26, 2015 at 9:46 AM, René-Luc Dhont rldh...@gmail.com wrote: I looked at the code and it's pretty simple. If some code are selected, the selection has run otherwise all the code has run. Some one to agree this PR ? Le 25/05/2015 19:08, Paolo Cavallini a écrit : Am 25.05.2015 um 18:40 schrieb Etienne Trimaille: I opened two PR one month ago about to run only a selected query in the db manager. https://github.com/qgis/QGIS/pull/1999 https://github.com/qgis/QGIS/pull/2000 Could you please review them and merge ? Agreed, it would be good to have them. Anyone can review them? Thanks. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Loading PostGIS Raster data via Add PostGIS Layer menu option
Hi Jorge, On Tue, Jul 22, 2014 at 4:57 PM, Jorge Arevalo jorgearev...@libregis.org wrote: I'm a developer of GDAL PostGIS Raster driver, and I'd like to know if it would be possible to modify the Add PostGIS Layer menu option to allow adding PostGIS Raster data, in addition to the PostGIS data. I don't know how much effort could require to change that dialog to list PG raster tables as well, but you may add a new option Add PostGIS Raster Layer with a new dialog. Opening the QgsPostgresProvider class definition [1], I see it inherits from QgsVectorDataProvider. I guess I could make the class also inherit from QgsRasterDataProvider, like GDAL does [2], but as I don't have any previous experience developing for QGIS core, I'm probably underestimating the difficulty (besides, I would also need GUI changes...). You should develop a new provider which extends the QgsRasterDataProvider, as the current one is for vectors only. I do have experience developing in C/C++, and developing for GDAL and PostGIS libraries. So, do you think this could be an affordable task, without changing a lot of existent code? I'd like this task to be my August project It shouldn't be hard too much, but I'm quite sure you must create new classes and not just change the existent ones. Anyway, I hope someone who worked on raster stuff can give you any hints, maybe it's easier than we can tell :) Regards. Many thanks in advance. Best regards, -- Jorge Arevalo http://about.me/jorgeas80 [1] https://github.com/qgis/QGIS/blob/master/src/providers/postgres/qgspostgresprovider.h [2] https://github.com/qgis/QGIS/blob/master/src/providers/gdal/qgsgdalprovider.h ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Please tell me how I can speed-up QGIS development on Android
Hi Giedrius, please fell free to clone the main repo and create pull requests, then someone will take care to check your commits and merge them to the main repo. Write access is not needed to do it, QGIS developers create pull requests as well. Thanks for your support. Regards. Sent from mobile. Sorry for being short. -- Giuseppe Sucameli Il 15/lug/2014 22:39 Giedrius Vaivilavičius gvaivilavic...@gmail.com ha scritto: Hi QGIS developers, I'm active QGIS user and bugreporter since 2010 and since 2013 I started to use QGIS on Android Linux tablets. QGIS is doing nice progress on Desktops, but no progress on tablets since October 02, 2013 (see https://github.com/qgis/QGIS-Android/commits/master ) QGIS Android version is still 2.0, while desktop version is 2.4 :-/ I've found and reported lots of bugs in QGIS (Desktop and Android versions), see for http://hub.qgis.org/projects/android-qgis/issues Some of these bugs can be resolved very simply - for example by changing default font to Droid Serif QGIS will be usable for most European countries (Czech, Lithuania, Latvia, and others). see http://hub.qgis.org/issues/10069 I can fix some of bugs, reported by me at http://hub.qgis.org/projects/android-qgis/issues , but I don't have write-access in QGIS Android repository (AFAIK https://github.com/qgis/QGIS-Android/ ) Please give me write-access in QGIS Android repo if you don't have time to fix QGIS for Android Linux bugs. Thanks, Giedrius -- Giedrius Vaivilavičius gvaivilavic...@gmail.com ___ 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: [Qgis-developer] Do we need a single select map tool?
On Wed, Jul 2, 2014 at 2:50 PM, Ramon Andiñach cust...@westnet.com.au wrote: If the default was changed to rectangle, I'd expect that most would change it the first time that they needed to do a single point select anyway. And if they try to change back to the single point selection but the tool is missing, what do you think they will do? I'm quite sure that after 20 seconds they will use the rectangle selection tool to click on the map. -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Failing tests consider blockers
Il 14/feb/2014 14:10 Radim Blazek radim.bla...@gmail.com ha scritto: I am suggesting to consider all failing tests as blockers. +1 Sent from mobile. Sorry for being short. -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Error in DB Manager reading toplogy.layer
Hi Paolo, what PG version? On Sat, Jan 25, 2014 at 11:22 AM, Gino Pirelli lui...@gmail.com wrote: no ... it works ciao Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com) On 24 January 2014 17:28, Paolo Cavallini cavall...@faunalia.it wrote: Hi all. Clicking on topology.layer of a postgis_topology DB consistently returns an error. Anyone confirms? All the best. === Errore durante l'esecuzione di codice Python: Traceback (most recent call last): File /usr/share/qgis/python/plugins/db_manager/db_manager.py, line 83, in itemChanged self.refreshTabs() File /usr/share/qgis/python/plugins/db_manager/db_manager.py, line 134, in refreshTabs self.info.showInfo( item ) File /usr/share/qgis/python/plugins/db_manager/info_viewer.py, line 75, in showInfo self._showTableInfo(item) File /usr/share/qgis/python/plugins/db_manager/info_viewer.py, line 132, in _showTableInfo html += table.info().toHtml() File /usr/share/qgis/python/plugins/db_manager/db_plugins/info_model.py, line 352, in toHtml ret = self.getTableInfo() File /usr/share/qgis/python/plugins/db_manager/db_plugins/postgis/info_model.py, line 194, in getTableInfo ret = TableInfo.getTableInfo(self) File /usr/share/qgis/python/plugins/db_manager/db_plugins/info_model.py, line 285, in getTableInfo general_info = self.generalInfo() File /usr/share/qgis/python/plugins/db_manager/db_plugins/postgis/info_model.py, line 95, in generalInfo if len( filter(lambda fld: fld.primaryKey, self.table.fields()) ) File /usr/share/qgis/python/plugins/db_manager/db_plugins/plugin.py, line 613, in fields self._fields = map(lambda x: self.tableFieldsFactory(x, self), fields) File /usr/share/qgis/python/plugins/db_manager/db_plugins/plugin.py, line 613, in self._fields = map(lambda x: self.tableFieldsFactory(x, self), fields) File /usr/share/qgis/python/plugins/db_manager/db_plugins/postgis/plugin.py, line 229, in tableFieldsFactory return PGTableField(row, table) File /usr/share/qgis/python/plugins/db_manager/db_plugins/postgis/plugin.py, line 311, in __init__ for con in self.table().constraints(): File /usr/share/qgis/python/plugins/db_manager/db_plugins/plugin.py, line 660, in constraints self._constraints = map(lambda x: self.tableConstraintsFactory(x, self), constraints) File /usr/share/qgis/python/plugins/db_manager/db_plugins/plugin.py, line 660, in self._constraints = map(lambda x: self.tableConstraintsFactory(x, self), constraints) File /usr/share/qgis/python/plugins/db_manager/db_plugins/postgis/plugin.py, line 232, in tableConstraintsFactory return PGTableConstraint(row, table) File /usr/share/qgis/python/plugins/db_manager/db_plugins/postgis/plugin.py, line 334, in __init__ self.foreignMatchType = TableConstraint.matchTypes[row[9]] KeyError: u's' Versione Python: 2.7.6 (default, Dec 30 2013, 14:39:47) [GCC 4.8.2] Versione di QGIS: 2.0.1-Dufour Dufour, 96dd172 Percorso Python: ['/home/paolo/.qgis2/python/plugins/processing', '/home/paolo/.qgis2/python/plugins/LecoS', '/home/paolo/.qgis2/python/plugins/processinglwgeomprovider', '/usr/share/qgis/python', '/home/paolo/.qgis2/python', '/home/paolo/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', '/home/paolo/.qgis2/python/plugins/DigitizingTools/tools', '.', '/usr/share/qgis/python/plugins/fTools/tools', '~/.qgis/python'] -- Paolo Cavallini - www.faunalia.eu QGIS PostGIS courses: http://www.faunalia.eu/training.html ___ 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 -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Make valid in master
Hi, including it into processing is better than putting it as a separated plugin, it depends on processing. If there are no objections, please open a new pull request. Regards. Sent from mobile. Sorry for being short. -- Giuseppe Sucameli Il 16/gen/2014 07:36 Paolo Cavallini cavall...@faunalia.it ha scritto: Hi all. To the best of my knowledge, our make clean command, available through the Processing subplugin: http://plugins.qgis.org/plugins/processinglwgeomprovider/ is the most effective method to clean up invalid geometries. I would therefore suggest to include it in master, in order to have it available straight away for everybody. This depends on lwgeom, available at least on Debian and Windows. Opinions? Any blockers? All the best. -- Paolo Cavallini - www.faunalia.eu QGIS PostGIS courses: http://www.faunalia.eu/training.html ___ 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
[Qgis-developer] Fwd: RT MapServer Exporter problem
Hi xsc, (sorry for sending it again, the images in the body exceeded the ML limit for attachments) the qgis-dev ML is in CC, that's the right place to discuss it as other with the same problem can find the answer. I guess you just miss the mapscript python module, you can install it from the OSGeo4W setup. Sent from mobile. Sorry for being short. -- Giuseppe Sucameli Il 07/gen/2014 08:19 x...@hexway.com.cn x...@hexway.com.cn ha scritto: hi, I want to export qgis map doucment to the format of mapserver map document. So, I'm used qgis's plugin - RT MapServer Exporter. But,every time using, it tracked the following error message. What shoud i do avoid this problem? 执行Python代码时发生错误: Traceback (most recent call last): File C:\Users\xsc/.qgis2/python/plugins\rt_mapserver_exporter\plugin.py, line 65, in run from .mapfileexportdlg import MapfileExportDlg File E:/osgis/QGIS/apps/qgis/./python\qgis\utils.py, line 453, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File C:\Users\xsc/.qgis2/python/plugins\rt_mapserver_exporter\mapfileexportdlg.py, line 30, in import mapscript File E:/osgis/QGIS/apps/qgis/./python\qgis\utils.py, line 453, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: No module named mapscript Python版本: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] QGIS版本: 2.0.1-Dufour Dufour, d94c044 Python路径: ['E:/osgis/QGIS/apps/qgis/./python/plugins\\processing', 'E:/osgis/QGIS/apps/qgis/./python', 'C:\\Users\\xsc/.qgis2/python', 'C:\\Users\\xsc/.qgis2/python/plugins', 'E:/osgis/QGIS/apps/qgis/./python/plugins', 'E:\\osgis\\QGIS\\bin\\python27.zip', 'E:\\osgis\\QGIS\\apps\\Python27\\DLLs', 'E:\\osgis\\QGIS\\apps\\Python27\\lib', 'E:\\osgis\\QGIS\\apps\\Python27\\lib\\plat-win', 'E:\\osgis\\QGIS\\apps\\Python27\\lib\\lib-tk', 'E:\\osgis\\QGIS\\bin', 'E:\\osgis\\QGIS\\apps\\Python27', 'E:\\osgis\\QGIS\\apps\\Python27\\lib\\site-packages', 'E:\\osgis\\QGIS\\apps\\Python27\\lib\\site-packages\\PIL', 'E:\\osgis\\QGIS\\apps\\Python27\\lib\\site-packages\\win32', 'E:\\osgis\\QGIS\\apps\\Python27\\lib\\site-packages\\win32\\lib', 'E:\\osgis\\QGIS\\apps\\Python27\\lib\\site-packages\\Pythonwin', 'E:\\osgis\\QGIS\\apps\\Python27\\lib\\site-packages\\Shapely-1.2.18-py2.7-win-amd64.egg', 'E:\\osgis\\QGIS\\apps\\Python27\\lib\\site-packages\\six-1.3.0-py2.7.egg', 'E:\\osgis\\QGIS\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode', 'E:\\osgis\\QGIS\\apps\\Python27\\lib\\site-packages\\xlrd-0.9.2-py2.7.egg', 'E:\\osgis\\QGIS\\apps\\Python27\\lib\\site-packages\\xlwt-0.7.5-py2.7.egg', 'E:\\osgis\\QGIS\\apps\\qgis\\python\\plugins\\fTools\\tools'] [snip] thank you! -- 谢顺朝 *广州汉微网络科技有限公司* *手 机:18520060543* *邮 箱:x...@hexway.com.cn x...@hexway.com.cn * *邮 编:510300 * *固 话:020-28373289 * *地 址:广州市海珠区广州大道南911号中智商务大厦721室 * ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] pyqgis QgsGeometry.convertToMultiType() fails
Hi Paolo, On Thu, Nov 28, 2013 at 10:03 PM, Paolo Corti pco...@gmail.com wrote: I have a strange behavior with the QgsGeometry.convertToMultiType() method here: it looks like the method is always failing the first time, but getting success the second time is run: I already got a similar behaviour and I tried to fix it anywhere in QgsGeometry class one year ago (see d8ca9193b1)... but maybe I miss some cases or something was changed from that date. GeosGeometry and WKBGeometry are not synced, that's it. Try to call polygon.convertToMultiType() multiple times without exportToWkt(). I'm quite sure you will get false all the times. File a ticket, please. Cheers. In [1]: from qgis.core import * In [2]: wkt = 'POLYGON((2283519.55884151300415397 4679066.13715541176497936,2283544.75336170010268688 4679033.60118563380092382,2283525.45749358925968409 4679011.6977636842632,2283506.92586500011384487 4679037.6594343015995,2283487.47002476220950484 4679065.54728745669126511,2283519.55884151300415397 4679066.13715541176497936))' In [3]: polygon = QgsGeometry.fromWkt(wkt) In [4]: polygon.convertToMultiType() Out[4]: False In [5]: print polygon.exportToWkt() POLYGON((2283519.55884151300415397 4679066.13715541176497936,2283544.75336170010268688 4679033.60118563380092382,2283525.45749358925968409 4679011.6977636842632,2283506.92586500011384487 4679037.6594343015995,2283487.47002476220950484 4679065.54728745669126511,2283519.55884151300415397 4679066.13715541176497936)) In [6]: polygon.convertToMultiType() Out[6]: True In [7]: print polygon.exportToWkt() MULTIPOLYGON(((2283519.55884151300415397 4679066.13715541176497936,2283544.75336170010268688 4679033.60118563380092382,2283525.45749358925968409 4679011.6977636842632,2283506.92586500011384487 4679037.6594343015995,2283487.47002476220950484 4679065.54728745669126511,2283519.55884151300415397 4679066.13715541176497936))) a possible bug? Should I file a ticket? thanks p -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Disable Syntax Highlighting in DB Manager
On Mon, Nov 25, 2013 at 4:13 AM, Lee Hachadoorian lee.hachadooria...@gmail.com wrote: If I may ask those who say they aren't experiencing it, is there really no latency, or is it just that waiting a few seconds here and there for the characters to catch up to your typing is not that big a deal? zero latency. The chars I type are displayed and highlighted immediately. -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Disable Syntax Highlighting in DB Manager
Hi Paolo, On Mon, Nov 25, 2013 at 7:34 AM, Paolo Cavallini cavall...@faunalia.itwrote: If something is slow (and I agree that sometimes it is), this must be speeded up, not removed. +1, btw I cannot do anything to speed it up until I reproduce it. Also, adding (yet another) optional switch is confusing, and should be avoided. It would be just a way to disable it when cause issues... instead of answering people they has to edit the source code... All the best. - -- Paolo Cavallini - www.faunalia.eu QGIS PostGIS courses: http://www.faunalia.eu/training.html -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlKS74UACgkQ/NedwLUzIr79WwCgksTO+MaNLOPahgxljBqix5Cb 0OYAoLmvrIgnM6D+C6P2wZ7VGEl687VI =MK6R -END PGP SIGNATURE- ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Disable Syntax Highlighting in DB Manager
Hi Lee, On Sun, Nov 24, 2013 at 10:24 PM, Lee Hachadoorian lee.hachadooria...@gmail.com wrote: I find the DB Manager SQL window to be unusable, and have confirmed that it is because of syntax highlighting [...]. [...] This is correct in that QGIS does not completely stop responding, but the latency is so high as to make the dialog unusable for anything other than pasting in an already tested query. A very long query (100.000 chars) takes a long time (10 secs) to be parsed... linearly. Try, for example, typing `SELECT 1;` into the window, and see how long it takes you. It highlights it quite immediately, I'm unable to see any latency. How many time does it take to run on your system? At the moment, I have altered my local version by commenting out lines 34 and 56 of /usr/share/qgis/python/plugins/db_manager/dlg_sql_window.py. I would like to suggest that until some time can be invested in making the syntax highlighting functionality usable (if there is even interest in doing so for a feature that is just eye candy), that this change be tested and incorporated in the official version. The syntax highlighting is already usable as it is, nobody else is experiencing any issue with it... Surely it can be improved, but definitely it's not just eye candy, as it helps in writing queries. We may add a check to skip syntax highlighting when the query is very long, but it won't help in your case. It's better to add a way to disable it when not needed or whether it cause any trouble. Regards. Giuseppe. --Lee -- Lee Hachadoorian Assistant Professor in Geography, Dartmouth College http://freecity.commons.gc.cuny.edu ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] [Qgis-user] Opening view or table using DBManager locks it in postgis
Hi Alexandre, On Tue, Oct 22, 2013 at 10:58 AM, Alexandre Neto senhor.n...@gmail.comwrote: Yes, I believe it is. At least the fact that only closing QGIS releases the locks. I've pushed a fix for this issue. Please, confirm if it works now. Cheers. Giuseppe You can even create several locks on the same table if you keep removing and adding the same table. But, is it expected that a QGIS client can lock a postgis view in such way that I can not even run a trigger on a related table? When I tried, QGIS just hangs until I close the process in Postgresql. The opposite happens when I try to delete a View via Pgadmin that is opened in QGIS, pgadmin hangs until I close QGIS. Thanks, Alexandre On Mon, Oct 21, 2013 at 8:56 PM, Nyall Dawson nyall.daw...@gmail.comwrote: Shared locks for select queries are ok (that's how postgres works) but they must be released once cursors are closed (or even deleted). Please, file a ticket on the QGIS trac [1]. There's already a report with some details regarding this: http://hub.qgis.org/issues/7679 I think it's related. Cheers, Nyall -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] [Qgis-user] Opening view or table using DBManager locks it in postgis
Hi Alexandre, On Mon, Oct 21, 2013 at 5:51 PM, Alexandre Neto senhor.n...@gmail.com wrote: Opening with DBManager creates lots of locks in postgres (see below), that are only released when QGIS is closed. During the lock, it seems impossible to alter specific tables or views. (...) Is this expected? no, that's not the intended behaviour. Shared locks for select queries are ok (that's how postgres works) but they must be released once cursors are closed (or even deleted). Please, file a ticket on the QGIS trac [1]. Regards. [1] http://hub.qgis.org/projects/quantum-gis/issues -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] [Qgis-user] Synergy of QGIS Enterprise and QGIS 2.0/Master branch
Hi all, On Fri, Jul 5, 2013 at 9:13 AM, Pirmin Kalberer pi...@sourcepole.comwrote: Pirmin what happens if / when QGIS project itself wants to release QGIS Enterprise version - or another company? Maybe it would be better to call it 'Sourcepole GIS' or something to make it clear that it is not an official QGIS product but an official Sourcepole product? I think a completely different name of a new GIS which is very similar to QGIS could be more confusion than one or many QGIS variants. I agree with Pirmin, a product with a completely different name sounds like a new GIS software. In addition, not keeping the relation with the QGIS project may damage the project itself in the long run. Why do not put the company name in the front, something like Sourcepole QGIS Cloud/Enterprise? This makes everything more clear and allows others companies, but mainly the QGIS project itself, to create its own version. Just my 2 cents. Also (out of curiosity) what is to stop one of your clients cloning the private source tree that you provide and then making that publicly available - or just pushing it back in to the mainstream QGIS tree? i.e. do you realise any real long term benefit from keeping the tree private in the first place? We didn't think a lot about publishing our source code branch, yet. So this could happen anytime. The question why clients do not publish sources of commercial FOSS software is hard to answer. Maybe it's a question of loality? Regards Pirmin [1] http://en.wikipedia.org/wiki/Commercial_open_source_applications On Mon, Jul 1, 2013 at 2:50 PM, Nathan Woodrow madman...@gmail.com wrote: On Mon, Jul 1, 2013 at 9:25 PM, Yves Jacolin (Free) yjaco...@free.frwrote: My understanding is that it is a commercial service, so you don't have any licence. No. It's still GPL. Any support docs, or training sourcepole provide however are not. Only the QGIS software bit part - Nathan ___ Qgis-user mailing list qgis-u...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user -- Pirmin Kalberer Sourcepole - Linux Open Source Solutions http://www.sourcepole.com ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] GDAL tools not working in latest nightly builds
Hi Etienne, On Thu, Jun 27, 2013 at 10:21 PM, Etienne Tourigny etourigny@gmail.comwrote: seems to me it only happens in OSX, it happens whether the user set paths into Settings dialog (so usually on OSX). because all tools have been updated. Can you fix it and send me a patch? I'm working on fixing it, I've already patched it and some other tools (i.e. FillNoData, Info, Translate) that doesn't work in this moment. Cheers. Etienne On Thu, Jun 27, 2013 at 11:22 AM, Cline, Royce L. rcl...@nd.gov wrote: They worked prior to the SIP changes. Now I am getting the following QString error no matter which raster tool I try. Is anybody else seeing this? An error has occured while executing Python code: Traceback (most recent call last): File /Applications/QGIS_2.0-devJun26.app/Contents/MacOS/../Resources/python/plugins/GdalTools/GdalTools.py, line 333, in doInfo d = Info( self.iface ) File /Applications/QGIS_2.0-devJun26.app/Contents/MacOS/../Resources/python/plugins/GdalTools/tools/doInfo.py, line 45, in __init__ BasePluginWidget.__init__( self, self.iface, gdalinfo ) File /Applications/QGIS_2.0-devJun26.app/Contents/MacOS/../Resources/python/plugins/GdalTools/tools/widgetPluginBase.py, line 39, in __init__ self.base = BaseDialog( iface.mainWindow(), iface, self, self.windowTitle(), commandName) File /Applications/QGIS_2.0-devJun26.app/Contents/MacOS/../Resources/python/plugins/GdalTools/tools/dialogBase.py, line 49, in __init__ Utils.setProcessEnvironment(self.process) File /Applications/QGIS_2.0-devJun26.app/Contents/MacOS/../Resources/python/plugins/GdalTools/tools/GdalTools_utils.py, line 827, in setProcessEnvironment elif not QString( envval ).split( sep ).contains( val, Qt.CaseInsensitive ): NameError: global name 'QString' is not defined Python version: 2.7.2 (default, Oct 11 2012, 20:14:37) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] QGIS version: 1.9.0-Master Master, a597823 Royce ___ 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 -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] SIP API Update merged. Attention plugin authors
Hi Luigi (Gino), On Fri, Jun 14, 2013 at 12:00 AM, Gino Pirelli lui...@gmail.com wrote: returnCheck = true try: returnValue = variable except ValueError: returnCheck = false the previous code doesn't raise any ValueError without an explicit cast. If conversion goes wrong you should get None (at least with the latest API changes), so the check just becomes: code returnCheck = returnValue is not None /code Another way is to add an explicit cast (e.g. to float): code try: returnValue = float(variable) except ValueError: returnCheck = false /code ps: I hope my is English is enough understandable it's surely better than mine ;) Cheers. On Sun, Jun 9, 2013 at 4:42 PM, Matthias Kuhn matthias.k...@gmx.chwrote: Just found another case which requires special attention: Given a feature with myInt=5 Old API: feat['myInt'].toFloat() / 10 0.5 New API: feat['myInt'] / 10 0 Better: float( feat['myInt'] ) / 10 0.5 Or: feat['myInt'] / 10.0 0.5 I guess that's not something we can fix in a generic way, but something to keep in mind when updating a plugin. On Son 09 Jun 2013 16:38:09 CEST, Victor Olaya wrote: I find that same behaviour that Matthias confirms. I guess it should be fixed, since it forces developers to add extra code to handle that case, and it can be very confusing (all other Qvariants are removed, except in this case...) Hopefully it will be easy to fix. Thanks in advance! Victor 2013/6/9 Nathan Woodrow madman...@gmail.com: Ok I'll check it out and see if it can be converted. -- Nathan On Mon, Jun 10, 2013 at 12:19 AM, Matthias Kuhn matthias.k...@gmx.ch wrote: On Son 09 Jun 2013 16:02:57 CEST, Nathan Woodrow wrote: Victor, Which code is returning a QVariant null? feat['myAttribute'] returns QPyNullVariant for all features which have a NULL value in the field myAttribute. None would work for me as well. But I'm not sure, why PyQt introduced this new type. Maybe there is a reason? Matthias - Nathan On Mon, Jun 10, 2013 at 12:01 AM, Victor Olaya vola...@gmail.com mailto:vola...@gmail.com wrote: I am checking the SEXTANTE adaptation to the new SIP API, and everything is fine. The only strange thing that I found is how null values are handled when they appear in a vector layer field. It seems that, in that case, a QVariant is still returned (particularly a QPyNullVariant object). Wouldn't it be better to return a Python None instead, so in all cases Python values are returned? Cheers 2013/6/9 Richard Duivenvoorde rdmaili...@duif.net mailto:rdmaili...@duif.net: On 09-06-13 10:47, Nathan Woodrow wrote: Technically this can be done for smaller plugins like Borys said. Something like: I think only for VERY small plugins. In the (not so very big plugins) I do it was already getting messy. And by the why, a big thank you for all the great work and decisions being done lately! I really think 2.0 will be great \o/ Richard ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org mailto:Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org mailto: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 ___ 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 -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] State of Spatialite 4.0 and GDAL 1.10 for QGIS 2.0?
Hi all, On Wed, May 22, 2013 at 12:22 PM, a.furi...@lqt.it wrote: On Tue, 21 May 2013 20:42:35 +, Cline, Royce L. wrote: The other issue I have had with SpatiaLite 4 is with DB Manager. DB Manager does not recognize geometry for a table in a Spatialite 4 created database (new spatial metadata). Displays the same as a table without geometry. If the database was created with Spatialite 3 or converted to a version 3 database with spatialite_convert, then it will show the table as having geometry. It would appear that DB Manager is not testing whether the database containing the table is using the new or old version of the spatial metadata. the second issue (DB Manager) requires few more considerations. [...] if the developer decided to completely skip using any appropriate abstract SQL function so to directly perform some INSERT or UPDATE statement affecting the Spatial Metadata tables, no insert nor update statements are performed to understand what's the layer's geometry type, and the db v4.0 wasn't created by DB Manager Surely the problem is a different one, I guess it could depend on the python connector DB Manager uses, aka the pyspatialite library. Cheers. bye Sandro -- Il messaggio e' stato analizzato alla ricerca di virus o contenuti pericolosi da MailScanner, ed e' risultato non infetto. __**_ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/**mailman/listinfo/qgis-**developerhttp://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Displacement and SLD's
Hi Andrea, sorry for the delay, I was abroad. On Wed, May 8, 2013 at 5:41 PM, Andrea Aime andrea.a...@geo-solutions.itwrote: we already have a graphic-margin option [...] The name seems suitable for the fill as well, since in the end we're talking about a graphic again. Is it something QGis could use? Otherwise I could have GeoServer interpret distance as an alias of graphic-margin. I guess QGIS could use graphic-margin as well. Let me have a look at the code, whether our distance option is ever worked (it doesn't work at the moment on QGIS 1.9, probably due to API breaks), to understand if we should handle both the options. Cheers. Cheers Andrea -- == GeoServer training in Milan, 6th 7th June 2013! Visit http://geoserver.geo-solutions.it for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it --- -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Displacement and SLD's
Hi Jonathan On Tue, May 7, 2013 at 7:42 PM, Jonathan Moules jonathanmou...@warwickshire.gov.uk wrote: So my question is - how should that style be created with SLD's? Does QGIS does it properly? no way in this moment, you could use Displacement tag with SVG images created ad-hoc, i.e. with some empty space around the original image. Andrea (who's implementing it), has noted that displacement alone can't do this, so has proposed a solution which would work, but would require an SLD file different from the one that QGIS 1.8 exported. His proposed solution is: https://jira.codehaus.org/browse/GEOS-5794?focusedCommentId=324800#comment-324800 IMHO the displacement shouldn't be used in that way, as empty space between graphics, though the SE1.1 specs doesn't define a proper tag to do that... In fact the Graphic-Displacement tag is already used in other contexts with the meaning of distance in pixels from the hot-spot, not as space around the graphic symbol neither as offset between neighbour graphics. What is the QGIS solution to this? Does it implement it at all from an SLD file? I would define 2 new tags as GraphicFill tag's children, like it's already done in the GraphicStroke tag. GraphicStroke has Gap and InitialGap, we should use the same approach. I ask because I think one common implementation concept would be better than multiple divergent incompatible ones as QGIS is used by some people to style SLD's for GeoServer. I agree, could you report my thoughts to the GeoServer ticket? Regards. Thanks, Jonathan This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Displacement and SLD's
Hi Andrea, On Wed, May 8, 2013 at 12:57 PM, Andrea Aime andrea.a...@geo-solutions.itwrote: On Wed, May 8, 2013 at 12:33 PM, Giuseppe Sucameli brush.ty...@gmail.comwrote: IMHO the displacement shouldn't be used in that way, as empty space between graphics, though the SE1.1 specs doesn't define a proper tag to do that... In fact the Graphic-Displacement tag is already used in other contexts with the meaning of distance in pixels from the hot-spot, not as space around the graphic symbol neither as offset between neighbour graphics. Right, but at the same time, the SE does not say how to use it in GraphicFill, so one is free to interpret. Not at all, it says: The GraphicFill element both indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic. [...] A “graphic” can be defined very informally as “a little picture”. The appearance of the graphic is defined with the embedded Graphic element, which is discussed in Subclause 11.3.2. so the meaning of Graphic elements is supposed to be the same for both GraphicFill and GraphicStroke. For example, GeoServer does not need SE 1.1 gap and InitialGap in graphic strokes because it uses the dasharray for that, another thing that is already in the SLD 1.0 spec and that had no proper definition of usage in combination with graphicstroke (moreover, it's more flexible than the simple gap syntax, one can create irregular symbol along lines, something like two circle, space, one circle, space, repeat). It's surely more flexible, but I've few inventiveness. For me a dash is a dash, so those dash-something elements should be used to render dashes, not graphic strokes. From my side I would draw both a graphic stroke and a dash line, BTW the XML schema allows to put GraphicStroke and SvgParameters toghether without explain how it must behave. I would define 2 new tags as GraphicFill tag's children, like it's already done in the GraphicStroke tag. GraphicStroke has Gap and InitialGap, we should use the same approach. Extending SLD is a minefield, what happens if OGC releases a corrigendum that adds the same tags, but with a slightly different semantic? The same that would happen if OGC defines what dasharray/dashoffset elements must be used for. I agree with you extending SLD should be avoided, additions to GraphicFill tag could happen soon: Additional parameters for the GraphicFill may be provided in the future to provide more control the exact style of filling. The way we handle extensions in GeoServer is to use a VendorOptions tag, which can accomodate key/value pairs, We do the same in QGIS, and even the tag name it's the same! ;) in this case we could have something like: PolygonSymbolizer ... VendorOption key=gapAbove10/VendorOption VendorOption key=gapBelow5/VendorOption VendorOption key=gapRight5/VendorOption VendorOption key=gapLeft15/VendorOption /PolygonSymbolizer s/key/name/ We already have a VendorOption name=distance20,15/VendorOption that handle the distance between graphics in fill, but we are open to a shared naming convention, as far as possible. Cheers. Cheers Andrea -- == GeoServer training in Milan, 6th 7th June 2013! Visit http://geoserver.geo-solutions.it for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it --- -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QGIS globe and mapserver export plugin
Hi Hugo, On Thu, Apr 11, 2013 at 2:42 PM, Hugo Mercier hugo.merc...@oslandia.comwrote: Le 02/04/2013 12:04, Giuseppe Sucameli a écrit : RT Mapserver Exporter plugin uses SLD as intermediary format for styles, but it needs mapscript v6.2 which is not available on OSGeo4W yet. Just to let you know we have been working on a fork of this plugin during a sprint with Thomas Bonfort (from the MapServer project) to replace the use of SLD for conversion by direct calls to the mapscript API. wow, I didn't notice you've forked it on GH and working on that! BTW, I see there's another fork [1] as well as some issues was fixed by both you and geonux (e.g. using the epsg vs proj string). What do you think about a brainstorming (even by email...) on how to improve it avoiding waste of time due effort on the same fixes? I really like your work as in this moment MapServer has a weak SLD1.1 support, BTW I hope you understand I've chosen SLD because this format is (or at least should become) the standard for style interchange, so unbound to different API implementations. Best regards. [1] https://github.com/faunalia/rt_mapserver_exporter/network The code can be found here : https://github.com/Oslandia/rt_mapserver_exporter/tree/nosld ... as well as a TODO list : https://github.com/Oslandia/rt_mapserver_exporter/wiki/Todo We mainly focused on the new symbology and most of the features are covered. There are still features that would be very hard to translate into mapserver terms. Let us know if you find this useful. -- Hugo Mercier Oslandia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QGIS globe and mapserver export plugin
Hi Luca, On Thu, Apr 11, 2013 at 3:25 PM, Luca Delucchi lucadel...@gmail.com wrote: On 11 April 2013 14:04, Luca Delucchi lucadel...@gmail.com wrote: Giuseppe I have no time to open the ticket, please can create it? done: [1] and [2]. BTW I cannot reproduce the second issue, I already tried with a PG layer and it worked fine. Please, at least try to find the time to improve the ticket. Thanks. [1] http://hub.qgis.org/issues/7575 [2] http://hub.qgis.org/issues/7576 thanks -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QGIS globe and mapserver export plugin
On Sun, Mar 31, 2013 at 7:07 PM, Anita Graser anitagra...@gmx.at wrote: Am 31.03.2013, 17:20 Uhr, schrieb Giovanni Manghi giovanni.man...@faunalia.pt: can be replaced by the RT Mapserver exporter one Does UMN Mapserver support SLD? If it does, do we even need a dedicated export plugin? RT Mapserver Exporter plugin uses SLD as intermediary format for styles, but it needs mapscript v6.2 which is not available on OSGeo4W yet. Cheers. -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Saving to a DBF
Save the table like you do for shapefiles (I suppose Sextante uses the QgsVectorFileWriter class with ESRI Shapefile as driver) but pass NoGeometry as geometry type (or maybe the wkbType for NoGeometry). It should create the DBF without the associated SHP. Cheers. Giuseppe ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Gdal clipper missing top line
On Fri, Feb 8, 2013 at 7:08 PM, Salvatore Larosa lrssv...@gmail.com wrote: it occurs also in sextante algs and I issued a pull request [1] to solve it! Merged. Thanks Salvatore! Ciao. Giuseppe. Saluti! -SL [1] - https://github.com/qgis/Quantum-GIS/pull/424 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Salvatore Larosa linkedIn: http://linkedin.com/in/larosasalvatore twitter: @lrssvt skype: s.larosa IRC: lrssvt on freenode ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Exporting a raster layer
On Wed, Jan 16, 2013 at 12:18 PM, Etienne Tourigny etourigny@gmail.com wrote: Regarding the integration of the save as dialog in gdaltools, I had some interaction with Giuseppe Sucameli but we got sidetracked, it would be nice to finish this before 2.0. I don't know whether (and where) we was stuck, but I agree it's time to bring it forward (let's open a new thread). Integration must be one of the QGIS 2.0's keywords. Cheers. Giuseppe. Etienne Radim AFAIK in Qgis 1.8 there's no mechanism to do that. giovanni [1] http://www.qgis.org/api/classQgsRasterFileWriter.html Sent from Nexus Il giorno 13/gen/2013 17:10, Victor Olaya vola...@gmail.com ha scritto: Hi all I have just implemented a new mechanism in SEXTANTE to make handling of file formats more clear and easy. Now, no matter what provider is creating a vector layer, all formats supported by QGIS can be selected, without requiring anything special added to the algorithm provider. SEXTANTE takes care of converting if needed. I want to implement the same thing for raster layers, but I do not know how to export a raster layer into a given format (except by calling GDAL translate), and I need it for that.. Can any one give me an idea or point me to some code to do that? Thanks in advance! Victor ___ 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 ___ 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 -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] API cleanup
Hi, On Thu, Dec 20, 2012 at 11:02 AM, Salvatore Larosa lrssv...@gmail.com wrote: 2012/12/20 kimaidou kimai...@gmail.com Ok for removing the deprecated methods, but we really need to have a documented wiki page with a list of deprecated methods and the appropriate replacement. there is already a wiki page [1] in this moment that page contains only methods no longer available in current master. We must to add deprecated methods and their replacement to it before removing them at all. Regards. Regards, -SL [1] - http://hub.qgis.org/wiki/quantum-gis/API_changes_for_version_20 Classic use case : you have developed a plugin. After the api break, you have several warning and error about this method does not exists - hop, you go to the dedicated web page and you can see which new method to use instead. Michael 2012/12/19 Nathan Woodrow madman...@gmail.com Hey Alex, I think we should be removing them as I think that is a overall goal for 2.0. I think we can just remove them. We should be able to diff the API docs once 2.0 is out to find out which methods have been added or removed. That is my thinking anyway. - Nathan On Wed, Dec 19, 2012 at 10:00 PM, Alexander Bruy alexander.b...@gmail.com wrote: Hi all, anyone works on API (both C++ and Python) cleanup? As I can see there are about 90 deprecated methods available (for example, look at QgsRasterLayer class), maybe we have even more, because not all methods may be marked as deprecated. Should we remove them? If yes which procedure is correct? Thanks -- Alexander Bruy ___ 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 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Salvatore Larosa linkedIn: http://linkedin.com/in/larosasalvatore twitter: @lrssvt skype: s.larosa IRC: lrssvt on freenode ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QgsMessageBar
Hi Matthias, On Mon, Dec 10, 2012 at 5:14 PM, Matthias Kuhn matthias.k...@gmx.ch wrote: Hi Giuseppe, I recently wanted to use QgsMessageBar, thank you for providing it, it's a great tool to provide non-obtrusive messages. please let's move this kind of discussion in ML, there're other people/devs could be interested in it. I wanted to create a message on the fly within a python plugin and then forget about it (createMessage / pushWidget ) But as soon, as the python method got out of scope, the object has been deleted by python. Do you have any plans on how to deal with such a situation? Sure, but not in the near future (see below). I would propose to put /Transfer/ to pushWidget (sip definition) and then delete the object from C++ (in case it's parent is the messagebar). I have an adapted branch here which you could have a look at in case you think this proposal makes sense. I've no time in this moment to look at your patch, too much things to do and very few time... but if you open a pull request other devs can give their opinions on your patch and if it sounds good they can merge it. Regards. Regards, Matthias -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Change transparency with new symbology - segmentation fault
Hi Pedro, On Thu, Dec 6, 2012 at 2:43 AM, Giuseppe Sucameli sucam...@faunalia.it wrote: there's already a ticket [1], but I've fixed it right now :) unfortunately the problem is still there, I fixed it only partially: when I haven't got the segfault opening the transparency (and also color) dialog I thought it was fixed. Cheers. [1] http://hub.qgis.org/issues/6817 To replicate, simply add a vector layer, apply a Graduated symbology with the new symbology engine; then click with the right mouse button over the classes - Change transparency. I tried with spatialite and shapefiles, both with the same results (segmentation fault). I am using QGIS master (ubuntugis) on Xubuntu 12.04. Thanks. Best regards, Pedro Venâncio ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli - Faunalia -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Change transparency with new symbology - segmentation fault
Hi Pedro, On Thu, Dec 6, 2012 at 12:54 AM, Pedro Venâncio pedrongvenan...@yahoo.com wrote: I found a problem to assign transparency to a vector layer, using the new symbology - Graduated style. When I do 'Change transparency', I get a segmentation fault (core dumped). there's already a ticket [1], but I've fixed it right now :) Cheers. [1] http://hub.qgis.org/issues/6817 To replicate, simply add a vector layer, apply a Graduated symbology with the new symbology engine; then click with the right mouse button over the classes - Change transparency. I tried with spatialite and shapefiles, both with the same results (segmentation fault). I am using QGIS master (ubuntugis) on Xubuntu 12.04. Thanks. Best regards, Pedro Venâncio ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] [Qgis-user] Update to the SpatiaLite provider - ( Mac OS X nighty build)
HI, On Tue, Dec 4, 2012 at 2:08 AM, Noli Sicad nsi...@gmail.com wrote: On Fri, Nov 30, 2012 at 4:58 PM, Giuseppe Sucameli sucam...@faunalia.it wrote: Before merging it I've opened a pull request [1], further tests are welcome. I'm going to merge it today, if there are no objections, of course. Better having it in core to make testing easier, that out like now. Would it be possible to tell us when you release a Mac OS X nightly build that includes this update Spatialite provider (i.e. SPL 4.0.0). I haven't merged it yet, but I hope to do it ASAP. Regards. Thanks. Noli ___ Qgis-user mailing list qgis-u...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] [Qgis-user] Update to the SpatiaLite provider - ( Mac OS X nighty build)
Merged right now. Cheers. On Tue, Dec 4, 2012 at 4:29 PM, Werner Macho werner.ma...@gmail.com wrote: +1 for merging - otherwise my blog entry is wrong ;) On Tue, Dec 4, 2012 at 4:25 PM, Giuseppe Sucameli sucam...@faunalia.it wrote: HI, On Tue, Dec 4, 2012 at 2:08 AM, Noli Sicad nsi...@gmail.com wrote: On Fri, Nov 30, 2012 at 4:58 PM, Giuseppe Sucameli sucam...@faunalia.it wrote: Before merging it I've opened a pull request [1], further tests are welcome. I'm going to merge it today, if there are no objections, of course. Better having it in core to make testing easier, that out like now. Would it be possible to tell us when you release a Mac OS X nightly build that includes this update Spatialite provider (i.e. SPL 4.0.0). I haven't merged it yet, but I hope to do it ASAP. Regards. Thanks. Noli ___ Qgis-user mailing list qgis-u...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user -- Giuseppe Sucameli - Faunalia ___ 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 -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Update to the SpatiaLite provider
Hi all, On Fri, Nov 30, 2012 at 4:58 PM, Giuseppe Sucameli sucam...@faunalia.it wrote: Before merging it I've opened a pull request [1], further tests are welcome. I'm going to merge it today, if there are no objections, of course. Better having it in core to make testing easier, that out like now. Cheers. [1] https://github.com/qgis/Quantum-GIS/pull/346 -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Update to the SpatiaLite provider
Hi devs, hi all, Alessandro Furieri has sent to me a patch to support the features available from the newest SpatiaLite v4 into the provider, mostly the intensive use of statistics to improve performaces. @Alessandro: please, could you tell us what's new in the provider? I know some details, but I'm sure devs would like to know more. The patch doesn't break API, but could break the provider functionalities (worst). Alessandro and I have tested it and everything seems to work fine. Before merging it I've opened a pull request [1], further tests are welcome. Regards. [1] https://github.com/qgis/Quantum-GIS/pull/346 -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] apply a cloned renderer to replicate styling
Hi Giovanni, On Tue, Nov 27, 2012 at 11:30 AM, G. Allegri gioha...@gmail.com wrote: If I pan/zoom I see the new renderer is being used, though the legend is'n updated. you can update it using iface.legendInterface().refreshLayerSymbology( layer ) Cheers. giovanni 2012/11/27 G. Allegri gioha...@gmail.com I need to replicate the theming of a vector layer to another one. I thought that cloning the oringinal renderer (being it V2 or not) and applying it to other layer would be enough, but id doesn't have effects. The other layer is applied the default (random) styling. Probably I've misunderstood the renderer mechanism. How should one procede to obtain it? giovanni ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] SVG symbol loading problem in master
Hi Andreas, hi Alexander, On Wed, Nov 28, 2012 at 9:42 AM, Alexander Bruy alexander.b...@gmail.com wrote: confirmed here with latest master very strange that rendering test doesn't fail... BTW, could you help me in understanding how to reproduce the problem? If I load a project containing a polygonal layer with a SVG fill it is loaded correctly on my Ubuntu 12.10. Maybe is yours a point layer and SVG markers? I'm trying it right now. Regards. On Wed, 28 Nov 2012 09:08:14 +0100 Andreas Neumann a.neum...@carto.net wrote: Hi, I am using master with code revision (b9b943d5e1580bdc17435598dd5be41eb0c2a853) from yesterday. I noticed that SVG symbols do not load correctly anymore. One can select the symbols correctly and save them - they are saved correctly, but on the next project load it cannot find the symbol reference anymore. Is this a side-effect of https://github.com/qgis/Quantum-GIS/commit/454c732a3ddd90f3eedba804f4cc07ac1af8113f where brushtyler worked on SVG symbol loading from URL? Thank you for having a look at this issue. Andreas -- Alexander Bruy ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] SVG symbol loading problem in master
On Wed, Nov 28, 2012 at 1:38 PM, Giuseppe Sucameli brush.ty...@gmail.com wrote: On Wed, Nov 28, 2012 at 9:42 AM, Alexander Bruy alexander.b...@gmail.com wrote: confirmed here with latest master Maybe is yours a point layer and SVG markers? I'm trying it right now. It works here also using SVG markers... Since confirmed, please file a ticket and add further information on how to reproduce it. Regards. Regards. On Wed, 28 Nov 2012 09:08:14 +0100 Andreas Neumann a.neum...@carto.net wrote: Hi, I am using master with code revision (b9b943d5e1580bdc17435598dd5be41eb0c2a853) from yesterday. I noticed that SVG symbols do not load correctly anymore. One can select the symbols correctly and save them - they are saved correctly, but on the next project load it cannot find the symbol reference anymore. Is this a side-effect of https://github.com/qgis/Quantum-GIS/commit/454c732a3ddd90f3eedba804f4cc07ac1af8113f where brushtyler worked on SVG symbol loading from URL? Thank you for having a look at this issue. Andreas -- Alexander Bruy ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] build error on latest master
Hi all, On Tue, Nov 27, 2012 at 2:28 PM, Pēteris Brūns p...@sungis.lv wrote: I updated to last commit: 4a44daa5c4d0dfc915faac6e5dcc2fb338113be5 sorry, my fault. Fixed in d083bd645. Regards. It produces for me: /home/user/src/Quantum-GIS/src/core/symbology-ng/qgssvgcache.cpp: In member function ‘QByteArray QgsSvgCache::getImageData(const QString) const’: /home/user/src/Quantum-GIS/src/core/symbology-ng/qgssvgcache.cpp:233:15: error: ‘class QUrl’ has no member named ‘isLocalFile’ make[2]: *** [src/core/CMakeFiles/qgis_core.dir/symbology-ng/qgssvgcache.cpp.o] Error 1 make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2 make: *** [all] Error 2 On 2012.11.27. 14:34, Marco Hugentobler wrote: Please update, there was a commit from Jürgen which fixed building with Qt 4.8. Regards, Marco On 27.11.2012 13:30, Ziegler Stefan wrote: Yes. Same for me. Regards Stefan Von: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] Im Auftrag von Peteris Bruns Gesendet: Dienstag, 27. November 2012 13:30 An: qgis-developer@lists.osgeo.org Betreff: [Qgis-developer] build error on latest master Hi, can anyone test qgis latest master compilation. For me looks that commit bc75a39475 works but after next commit 454c732a3d I get this: /home/user/src/Quantum-GIS/src/core/symbology-ng/qgsmarkersymbollayerv2.cpp: In static member function ‘static QString QgsSvgMarkerSymbolLayerV2::symbolNameToPath(QString)’: /home/user/src/Quantum-GIS/src/core/symbology-ng/qgsmarkersymbollayerv2.cpp:849:14: error: ‘class QUrl’ has no member named ‘isLocalFile’ make[2]: *** [src/core/CMakeFiles/qgis_core.dir/symbology-ng/qgsmarkersymbollayerv2.cpp.o] Error 1 make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2 make: *** [all] Error 2 anyone can confirm this? Thanks, -- Peteris ___ 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 Weberstrasse 5, CH-8004 Zürich, 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 -- Pēteris ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] error on latest master
Hi guys, On Thu, Nov 22, 2012 at 4:50 PM, Werner Macho werner.ma...@gmail.com wrote: On 11/22/2012 03:43 PM, Pēteris Brūns wrote: can you please try it again with the latest master? fixed in 3700d8430 [1]. Cheers. [1] https://github.com/qgis/Quantum-GIS/commit/3700d843066a18801df462d91d6eb7b2a88f9536 thx for your report regards Werner ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Strange behavior with round function of the expression builder
Hi Pedro, On Sun, Nov 4, 2012 at 1:06 AM, Pedro Venâncio pedrongvenan...@yahoo.com wrote: When the round is done to integer, everything seems going well. However, by introducing one or more decimal places, the results begin to be strange and often appears the default value -21474836.48. -2147483648 is the min integer value, so probably the way to round number fails somewhere. I can see that each trailing '0' is removed, in addition incrementing the number of decimal places the value becomes negative: PM || ' ' || round( PM, 6 ) || ' ' || round( PM, 12 ) outputs 218317.69947 -2147.483648 -0.002147483648 I'm using QGIS master (ubuntugis unstable) on Xubuntu 12.04 LTS. Anyone confirm? I confirm, QGis master on Ubuntu 11.04. Please, could you file a ticket? Regards. Best regards, Pedro Venâncio [1] https://dl.dropbox.com/u/5772257/qgis/labeling_round_int.jpg [2] https://dl.dropbox.com/u/5772257/qgis/labeling_round_1_place.jpg [3] https://dl.dropbox.com/u/5772257/qgis/labeling_round_2_places.jpg [4] http://www.igeo.pt/produtos/cadastro/caop/download/CAOP20121_Shapes/Cont_AAd_CAOP20121.zip ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Merging of incompatible changes
Hi, On Mon, Oct 22, 2012 at 8:17 PM, Martin Dobias wonder...@gmail.com wrote: recently I have been brewing some backwards incompatible API changes that will 1) enable introduction of threading, 2) simplify API for developers. I would like to merge the changes soon to master branch in order not to drift too much from master. +1 The changes will break lots of plugins, if not all of them... as a part of the changes I would like to switch PyQt4 to use to QString API 2 and QVariant API 2. Basically that means: less headaches :) At least for devs, but not for users. Regards. What do you think, any ideas? Regards Martin ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Point sampling tool fails on identify
On Fri, Oct 19, 2012 at 7:36 PM, Paolo Cavallini cavall...@faunalia.it wrote: Il 19/10/2012 16:36, Borys Jurgiel ha scritto: Thanks! Fixed, now waits for approval. Btw. who is competent (and mad enough) to grant me the auto-approve rights? agreed, Borys should be admin. Admin or Trusted author? I'm enough mad to trust him :-) (done!) so he doesn't need to ask for approval, but I cannot grant him any admin permission. If he also needs the admin privileges someone else will grant him admin rights. Cheers. thanks. -- Paolo Cavallini - Faunalia www.faunalia.eu Full contact details at www.faunalia.eu/pc Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Information on QGIS bug #6013 and #4091
Hi Vivien, On Tue, Oct 16, 2012 at 1:15 AM, Vivien Deparday vivien.depar...@gmail.com wrote: sorry for writing you directly, I just wanted to double check that I am doing and understanding things right before posting a new comment on one of the bug reports. I'm moving the discussion to the ML, please, the next time write directly to it so anyone that is interested can join the discussion. I am trying to use the delimited text plugin with a file that has double quotes and the double quoted fields contain commas and carriage returns. I have seen that you mention that it is fixed in bug #6013 (http://hub.qgis.org/issues/6013). [[snip]] It is seems like it is working for Plain Character but for not selected delimiters? delimited text provider parses quoted strings as expected whether you choose the plain character option. The Selected delimiters instead uses a regular expression, so it doesn't parse strings within quotes. Also, even with plain characters, it is still not working for field that have a carriage return (multi-line field), is that supposed to be fixed too? I don't know, I didn't tried with a such character within the string, that wasn't the goal of my fix. Is the fix you committed supposed to be already included in the nightly build? yes. My change doesn't improved the current behavior, I just fixed the plain character option, now its code is shared between the Add delimited text dialog and the delimited text provider. I have also seen that there was another bug opened that is the same as the one you had opened: http://hub.qgis.org/issues/4091 and this one is not closed. Ok, I guess I can fix it by making the selected delimiters option working like the plain character option whether the user chooses one delimiter only, but anyway it won't work selecting more delimiters from the list. Regards. Thanks ! Vivien Deparday -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] New voting on plugins
Hi Alessandro, On Sun, Oct 7, 2012 at 7:01 PM, Alessandro Pasotti apaso...@gmail.com wrote: I've implemented a voting system on plugins (1-5 stars), what a nice feature! Please test it and report bugs on the qgis-django tracker: http://hub.qgis.org/projects/qgis-django I'm testing it, today it doesn't work at all (except displaying stars) though yesterday I was able to vote both as logged or anonymous user. If we need a RPC webservice to enable voting from QGIS client I can easily create one. Yes, this would really make the voting system valid. Most of the users doesn't go to the plugins site, they install plugin directly from QGis. IIRC the installer/manager refactoring was discussed in Lisbon (5th HF) and it should include a way to send votes to the webapp. Regards. -- Alessandro Pasotti w3: www.itopen.it ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] testing core python plugins from build tree
On Mon, Oct 8, 2012 at 5:14 PM, Sandro Santilli s...@keybit.net wrote: On Mon, Oct 08, 2012 at 05:11:21PM +0200, Sandro Santilli wrote: On Mon, Oct 08, 2012 at 06:08:04PM +0300, Alexander Bruy wrote: But it is still possible to symlink core plugin dir to ~/.qgis/python/plugins/ create temporary makefile to compile ui and start hacking. create temporary makefile doesn't seem that straightforward, but sounds like the shortest path. Hopefully I can just symlink the Makefile in the build tree... Well, it wasn't enough: ImportError: No module named ui_DlgDbError which makefile are you using? at this point I'm not even sure db_manager is supposed to work even after install. Giuseppe, does it ? --strk; -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] New voting on plugins
Hi Alessandro, On Mon, Oct 8, 2012 at 12:57 PM, Alessandro Pasotti apaso...@gmail.com wrote: 2012/10/8 Giuseppe Sucameli sucam...@faunalia.it: I'm testing it, today it doesn't work at all (except displaying stars) though yesterday I was able to vote both as logged or anonymous user. Works for me right now, but if you find problems, please file a ticket adding your browser brand and version and all other details might be useful to reproduce the issue. it seems to work everywhere except for plugin_builder. I voted yesterday for it, but today I'm unable to change my vote. -- Alessandro Pasotti w3: www.itopen.it ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] index in self.legend.groupLayerRelationship - different behavior between QGIS 1.8 and master?
Hi, On Fri, Oct 5, 2012 at 11:28 AM, Massimo massimo.endri...@geopartner.it wrote: I propose another solution based on QDomDocument similar to the one adopted into the QgsLegend::writeProject method. Massimo has made a pull request [1] to add a groupLayerHierarchy method that returns a QDomDocument. Here's my opinion (see the pull request comments): A QDomDocument is good when you want to export/import data (e.g between different QGis installations) and we already have a such QDomDocument, i.e. the project file. I totally agree with Martin, we need to implement some classes to give plugin devs the opportunity to work on the legend using an API. Furthermore I don't understand why having a new xml document with it's own tags/elements. The QgsProject.write(...) calls the QgsLegend.writeXml(...) to write all the stuff needed to re-create the legend tree, so we could just expose the QgsLegend.writeXml(). BTW, in the meantime the API is developed you could save a temporary project file and parse it. Note: you need to restore the project filename after done because the QgsProject.write(QFileInfo) changes it. Here's XML elements you need to know to get legend info from project file: *legend* is the legend root tag. It can contains both *legendlayer* and *legendgroup* elements. A legend layer can contains more sublayers, it has the following structure: legendlayer name=mylayer1 checked=Qt::Checked filegroup legendlayerfile id=mylayer120121008125355262 / /filegroup /legendlayer where the *filegroup* elem contains the sublayers with their id. Group info is stored into a *legendgroup* element, it can contains both *legendlayer* and *legendgroup* elements: legendgroup name=mygroup1 checked=Qt::Checked legendlayer name=mylayer1.../legendlayer legendgroup name=mygroup2 checked=Qt::Checked legendlayer name=mylayer2.../legendlayer /legendgroup /legendgroup Regards. [1] https://github.com/qgis/Quantum-GIS/pull/265 -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] index in self.legend.groupLayerRelationship - different behavior between QGIS 1.8 and master?
On Mon, Oct 8, 2012 at 5:58 PM, Giuseppe Sucameli sucam...@faunalia.it wrote: The QgsProject.write(...) calls the QgsLegend.writeXml(...) to write all the stuff needed to re-create the legend tree, so we could just expose the QgsLegend.writeXml(). I meant QgsLegend.writeProject(QDomDocument) A legend layer can contains more sublayers, it has the following structure: and also here, no sublayers... filegroup is there I guess only for compatibilty. Regards. -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Recent changes in the python plugins web application
Hi, On Sat, Oct 6, 2012 at 1:14 PM, Alessandro Pasotti apaso...@gmail.com wrote: * author * email this new fields are now mandatory for both the old __init__.py and the new metadata.txt file. I'm changing the plugin installer to get author name from author function, but for compatibility it'll check the authorName function whether the author one is missing. On QGis = 1.8 the users can still install and use plugins from the new plugin repository without updating the plugin installer. The only issue using an old plugin installer could be it doesn't show the author of plugins which uses the new metadata and are only locally available (e.g. plugins removed from the repo). Should we really release a update for a such problem? I suppose no, but any opinion is welcome. Regards. -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] New Python console: missing icons?
Hi Salvatore, On Fri, Oct 5, 2012 at 10:24 AM, Salvatore Larosa lrssv...@gmail.com wrote: 2012/10/5 Giuseppe Sucameli brush.ty...@gmail.com we agree that console icons and help should be moved in the proper folders, i.e. respectively images and resources located in the source root. I agree, regardless of the problem ! What the right place should be ? you can move the iconConsole folder to /images/theme/default/consoleicons and the helpConsole folder to /resources/console_help In you code you can get an icon by using QgsApplication.getThemeIcon( /consoleicons/myicon.png ) which also takes care the theme. To get the location of the help files use instead QgsApplication.pkgDataPath() + /resources/console_help/; Regards. Salvatore, please could you fix it making a such change? Thanks. I hope to do as soon as possible ! Regards, -SL Regards. [1] http://hub.qgis.org/issues/6456 On Thu, Oct 4, 2012 at 5:49 PM, Paolo Cavallini cavall...@faunalia.it wrote: Il 04/10/2012 15:15, Nathan Woodrow ha scritto: Yeah I have both those issues here too. Glad I'm not the only one. Just recompiled from master, the issue remains. Thanks. -- Paolo Cavallini - Faunalia www.faunalia.eu Full contact details at www.faunalia.eu/pc Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario ___ 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 -- Giuseppe Sucameli -- Salvatore Larosa linkedIn: http://linkedin.com/in/larosasalvatore twitter: @lrssvt skype: s.larosa IRC: lrssvt on freenode -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] New Python console: missing icons?
Hi all, hi Salvatore, On Thu, Oct 4, 2012 at 6:01 PM, Werner Macho werner.ma...@gmail.com wrote: Not confirmed here .. everything looks fine .. compiled from latest master 5min ago .. the problem [1] is confirmed: it's present in all the QGis installations that uses packages, both self-compiled or from repository (nightly). The issue is due to the current location of the console icons in the QGis source tree. I discussed together with Tim about the better way to fix it, we agree that console icons and help should be moved in the proper folders, i.e. respectively images and resources located in the source root. Salvatore, please could you fix it making a such change? Thanks. Regards. [1] http://hub.qgis.org/issues/6456 On Thu, Oct 4, 2012 at 5:49 PM, Paolo Cavallini cavall...@faunalia.it wrote: Il 04/10/2012 15:15, Nathan Woodrow ha scritto: Yeah I have both those issues here too. Glad I'm not the only one. Just recompiled from master, the issue remains. Thanks. -- Paolo Cavallini - Faunalia www.faunalia.eu Full contact details at www.faunalia.eu/pc Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario ___ 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 -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] qgis_rendererstest fails after my commit... but...
Hi devs, after my last commit the qgis_rendererstest fails... I've done a change [1] in qgsmaplayer.cpp to pass the QML files created with older QGis versions to the the QgsProjectFileTransform to be processed before loading, like it was done for qgs files. Before the change only the qgs files was processed. For this reason I suppose the QML files used in tests have something wrong, maybe the version store into the file. In fact if I comment the content of the function QgsProjectFileTransform::transform0100to0110() that test passes. How can I fix it? I think we should fix those QML files, otherwise increment their version to 0.11.0. Regards. [1] https://github.com/qgis/Quantum-GIS/commit/495246f57574d88453bc55190a91f41bdb2cb11f -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Getting schema name of a PostGIS layer from python
Hi Sandro, On Fri, Sep 28, 2012 at 10:25 PM, Sandro Santilli s...@keybit.net wrote: Is it possible for a python plugin to get from a QgsVectorLayer to the name of the schema containing it (if any) ? depends if the schema was passed when creating the uri string used to load the layer: QgsDataSourceURI( vl.source() ).schema() where vl is the vector layer. If the passed schema was empty you will get an empty string. Cheers. I'm spending this friday night on a proof-of-concept topology editing tool. --strk; ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Getting schema name of a PostGIS layer from python
On Fri, Sep 28, 2012 at 10:56 PM, Sandro Santilli s...@keybit.net wrote: On Fri, Sep 28, 2012 at 10:46:45PM +0200, Giuseppe Sucameli wrote: What's the recommended way to perform the connection ? Anything reusable in qgis itself ? not in this moment, probably in the future. You can use psycopg2. --strk; () Free GIS Flash consultant/developer /\ http://strk.keybit.net/services.html -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Python support in project file
Hi Larry, Nathan On Tue, Aug 21, 2012 at 9:58 PM, Larry Shaffer lar...@dakotacarto.com wrote: For a cleaner look for the message bar, I created two svg icons output to png, one for the warning and one for close [0]. Also, the Enable action is more of a link. Basically, removing the tool button backgrounds via a stylesheet and having the cursor change as expected for web page links allows for the focus of the bar to be the message, not the button actions. I like those changes! I've just forced the Enable text color to black (it's dark blue-gray here) and added the tooltip to the Close button. In addition, I've added a enable macros setting with values: Never, Ask (default), Just for this session, Always. Feel free to add other options, enable macros for the recently opened projects or a way to define a list of trusted projects. I'll push it to master if nobody enter objections. Regards. [0] http://dl.dropbox.com/u/4058089/qgis/message-bar.png Opinions are welcome! The order of QgsMessageBar instance being created comes before the theme (soon to be deprecated anyway?) is set. The changes I have suggested are available as an addition to your branch uploaded to my github repository [1]. [1] https://github.com/dakcarto/Quantum-GIS/commit/5a1500cc6e0d8a8965d17884e107bb3e22b77182 T Regards. - Nathan On Tue, Aug 21, 2012 at 5:54 PM, Nathan Woodrow madman...@gmail.com wrote: Very nice Giiseppe. Will test soon. Sent from some fancy phone looking thingo From: Giuseppe Sucameli Sent: 21/08/2012 5:24 PM To: qgis-developer ML Subject: Re: [Qgis-developer] Python support in project file Hi all, I've pushed the code on the branch project_macros on my QGis fork [1]. The macros python code is loaded into a dummy module, in this manner it can be unloaded when needed. On Thu, May 31, 2012 at 8:30 AM, Martin Dobias wonder...@gmail.com wrote: On Thu, May 31, 2012 at 2:49 AM, Giuseppe Sucameli sucam...@faunalia.it wrote: I would save it into the project (embedded in the XML) until we will have a different way to pack project and related stuff together. Ok - hopefully XML will not choke python indentation :) It seems conversion to XML doesn't break anything. BTW one popup only would be needed, i.e. the project is loaded. If the user trust macros then they become active and ready to be executed. See Nathan's post - he better explains what I have meant. I developed a QgsMessageBar class to display information to the user using a non-blocking widget. The bar allows to push more messages as in a queue, then displays them one by one beside to a close button. The button remove the current message or the bar when the message queue is empty. The QgisApp instance creates a object of that class and puts it above the canvas and also on the top of it (so the canvas is not refreshed when the bar is shown or hidden as no resize event occurs). Please, could you test it and report here? Regards. -- Giuseppe Sucameli - Faunalia ___ 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 -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Larry Shaffer Dakota Cartography Black Hills, South Dakota ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Symbol transparency, wrong value stored and displayed
Hi all, I noticed that the alpha value stored in the QML for QgsSimpleFillSymbolLayer objects is wrong. Here's the QML generated when the symbol transparency is 70%: pre symbol outputUnit=MM alpha=0.298039 type=fill name=0 layer pass=0 class=SimpleFill locked=0 prop k=color v=255,128,0,76/ prop k=color_border v=0,0,0,76/ ... /layer /symbol /pre The alpha value for the whole symbol is right (~0.30), instead the layer's color alpha should be 255, not 76 (which is 0.30*255). Old style files would be rendered using double transparency after the fix, unless I convert style files using the QgsProjectFileTransform::transform1800to1900() function like it's done for project files, but anyway those ones created using QGis master (before the fix) will still be affected and I guess this is not avoidable. I'm already on it :) Furthermore, the alpha value of a symbol is not taken into account while drawing its sub-symbols. E.g. with a symbol fill (transparency 50%) - line pattern fill - outline (transparency 0%) - simple line I would suppose the simple line should be semitransparent because child of the semi-transparent symbol fill, but it's fully opaque. Is it the supposed behavior? Regards. -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Python support in project file
Hi all, I've pushed the code on the branch project_macros on my QGis fork [1]. The macros python code is loaded into a dummy module, in this manner it can be unloaded when needed. On Thu, May 31, 2012 at 8:30 AM, Martin Dobias wonder...@gmail.com wrote: On Thu, May 31, 2012 at 2:49 AM, Giuseppe Sucameli sucam...@faunalia.it wrote: I would save it into the project (embedded in the XML) until we will have a different way to pack project and related stuff together. Ok - hopefully XML will not choke python indentation :) It seems conversion to XML doesn't break anything. BTW one popup only would be needed, i.e. the project is loaded. If the user trust macros then they become active and ready to be executed. See Nathan's post - he better explains what I have meant. I developed a QgsMessageBar class to display information to the user using a non-blocking widget. The bar allows to push more messages as in a queue, then displays them one by one beside to a close button. The button remove the current message or the bar when the message queue is empty. The QgisApp instance creates a object of that class and puts it above the canvas and also on the top of it (so the canvas is not refreshed when the bar is shown or hidden as no resize event occurs). Please, could you test it and report here? Regards. -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Python support in project file
Hi Nathan, On Tue, Aug 21, 2012 at 10:22 AM, Nathan Woodrow madman...@gmail.com wrote: - There seems to be a margin around the map canvas now. That wasn't there before. ok, I see it now :) - If there are no marcos in the project file I wouldn't show the warning bar. When the checkbox is unchecked it doesn't show the warning bar, I'll also check if the textbox is empty. - Might be good to have a more info hyperlink so that people can understand what it really means A link to the help page, sure it's a good thing. - Would be nice if we can to have a Enable Always button with a drop down menu with Always for all projects and Always for just this project (don't have it popup a dialog asking if they are sure just save it they can always change it after) Even if I don't like the enable always option as it might cause security issues, I thought to put just one checkbox in the setting dialog to make macros always enabled. I don't imagine how to make the always enable macros for just this project option working. Projects don't have a identifier like layers and I guess the path is not a good choice because the project file could be replaced and the user could easily be wrong. What do you think? - Might need to make the icon have a transparent icon background :) The icon is the one used for the message logger (displayed bottom-right when in Debug mode), of course that white background has to be removed. We also need a icon for the close button (x) and icons for the other 2 levels of messages, i.e. critical and information. Opinions are welcome! Regards. - Nathan On Tue, Aug 21, 2012 at 5:54 PM, Nathan Woodrow madman...@gmail.com wrote: Very nice Giiseppe. Will test soon. Sent from some fancy phone looking thingo From: Giuseppe Sucameli Sent: 21/08/2012 5:24 PM To: qgis-developer ML Subject: Re: [Qgis-developer] Python support in project file Hi all, I've pushed the code on the branch project_macros on my QGis fork [1]. The macros python code is loaded into a dummy module, in this manner it can be unloaded when needed. On Thu, May 31, 2012 at 8:30 AM, Martin Dobias wonder...@gmail.com wrote: On Thu, May 31, 2012 at 2:49 AM, Giuseppe Sucameli sucam...@faunalia.it wrote: I would save it into the project (embedded in the XML) until we will have a different way to pack project and related stuff together. Ok - hopefully XML will not choke python indentation :) It seems conversion to XML doesn't break anything. BTW one popup only would be needed, i.e. the project is loaded. If the user trust macros then they become active and ready to be executed. See Nathan's post - he better explains what I have meant. I developed a QgsMessageBar class to display information to the user using a non-blocking widget. The bar allows to push more messages as in a queue, then displays them one by one beside to a close button. The button remove the current message or the bar when the message queue is empty. The QgisApp instance creates a object of that class and puts it above the canvas and also on the top of it (so the canvas is not refreshed when the bar is shown or hidden as no resize event occurs). Please, could you test it and report here? Regards. -- Giuseppe Sucameli - Faunalia ___ 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 -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Import SLD (QGIS1.8) to geoserver 2.1.4
Hi, On Tue, Aug 21, 2012 at 12:47 PM, lili labouze lililabou...@gmail.com wrote: I imorpté SLD file to geoserver, I find the following error messsage, please, could you provide the SLD file? Probably it's a not well-formed XML due to an error while writing the file to the disk. Regards. org.xml.sax.SAXParseException: Element type StyledLayerDescriptor must be followed by either attribute specifications, or /. nobody has an idea (import SLD file to geoserver QGIS) thank you ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Python support in project file
Hi, On Tue, Aug 21, 2012 at 1:14 PM, Nathan Woodrow madman...@gmail.com wrote: I'm also thinking that I might be good to have a light yellow bar for warnings, light red for error, and light blue for information. Pick the main colour of the icon and change it enough so the icon and bar stand out. The bar is already red for critical messages, orange-yellow for warnings and light blue for informations :) Have a look at the QgsMessageBar::pushWidget() method [1]. BTW, if you tell me the new hex of filling and border colors I'll change them. Cheers. [1] https://github.com/brushtyler/Quantum-GIS/commit/382187ba0b0be6e5b0e64e654b6c66f2271838fe#L4R153 I think people will be very happy with addition. - Nathan Opinions are welcome! Regards. - Nathan On Tue, Aug 21, 2012 at 5:54 PM, Nathan Woodrow madman...@gmail.com wrote: Very nice Giiseppe. Will test soon. Sent from some fancy phone looking thingo From: Giuseppe Sucameli Sent: 21/08/2012 5:24 PM To: qgis-developer ML Subject: Re: [Qgis-developer] Python support in project file Hi all, I've pushed the code on the branch project_macros on my QGis fork [1]. The macros python code is loaded into a dummy module, in this manner it can be unloaded when needed. On Thu, May 31, 2012 at 8:30 AM, Martin Dobias wonder...@gmail.com wrote: On Thu, May 31, 2012 at 2:49 AM, Giuseppe Sucameli sucam...@faunalia.it wrote: I would save it into the project (embedded in the XML) until we will have a different way to pack project and related stuff together. Ok - hopefully XML will not choke python indentation :) It seems conversion to XML doesn't break anything. BTW one popup only would be needed, i.e. the project is loaded. If the user trust macros then they become active and ready to be executed. See Nathan's post - he better explains what I have meant. I developed a QgsMessageBar class to display information to the user using a non-blocking widget. The bar allows to push more messages as in a queue, then displays them one by one beside to a close button. The button remove the current message or the bar when the message queue is empty. The QgisApp instance creates a object of that class and puts it above the canvas and also on the top of it (so the canvas is not refreshed when the bar is shown or hidden as no resize event occurs). Please, could you test it and report here? Regards. -- Giuseppe Sucameli - Faunalia ___ 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 -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Run Feature Action Behaviour
Hi Haubourg, On Mon, Jul 23, 2012 at 11:52 AM, haubourg regis.haubo...@eau-adour-garonne.fr wrote: - Hotlink tries to copy Mapinfo . Just pick the tool, fly over features and a tooltip appears filled with display fields of all underlying layers. Then click on a feature shows a listbox filled with action name + display field. Click on a line runs action it seems to me that the way Hotlink runs actions is quite similar to the Identify tool way: first click on the map, than choose the action to run on one feature. The Run feature action way is exactly the opposite one: first select the action, than clicking more times on the map you can run it on more features. The added value of the Hotlink is displaying tooltips, I guess. - Run Feature Action first requires to choose an active layer in TOC, then choose the action you want in toolbar (dropdown menu), then click to run action. If you want to know what feature is concerned, you need to activate tooltips. Last thing, Run Feature action does not seem compatible with old syntax of field expression (in 1.7.x %myfield, 1.8 [%myField Or myexpression%] Run feature action is in master since QGis 1.8, thus it uses the new action syntax. More in detail, the Run feature action tool itself doesn't know anything about the syntax, expressions are just strings for it. It's the actions evaluation that differs, it now uses the QGis expression engine. I broke the old behavior after asking on the dev ML [1], probably if someone had replied to keeping it compatible than now you wouldn't have this problem. - Adds retrocompatibility for old syntax not sure that is a good idea, there was the time for this kind of request and now it's late, IMHO. But let's wait for other opinions. - use the same behaviour as identify tool : active layer, first layer found , all layers. That would be more user friendly I guess. I really do not understand how to run an action (which is defined on a layer) on more/all the layers... I still think the Hotlink plugin is quite similar to the identify tool: 1. Identify tool allows you to see full informations about the features, i.e. all the attributes values and not the first one only which usually is a non-significant number, 2. it open a non-modal window that you can move outside the canvas and then click on the map more times without any needs to close it, 3. you can choose the action to run on only one feature. It's not clear to me why don't use the identify tool. Have I missing something? Regards. [1] http://lists.osgeo.org/pipermail/qgis-developer/2012-January/017599.html -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] empty ds/layer creation duplicated in QgsOgrProvider and QgsVectorFileWriter
Hi devs, today looking at the OGRProvider I've found some duplications: QGISEXTERN bool createEmptyDataSource(...) QGISEXTERN QgsVectorLayerImport::ImportError createEmptyLayer(...) Both accomplish the same task (empty LAYER creation), but createEmptyLayer() uses the QgsVectorFileWriter class, createEmptyDataSource() contains code pretty similar to the one within the QgsVectorFileWriter class (duplicated code). The createEmptyLayer is used by the ImportVectorLayer feature I developed for the GSoC the last year, so functions with the same name are also present in both the PG and SL providers. I don't know if the createEmptyDataSource() was already present at that time (my apologize if it was)... BTW having duplicated code between the provider and QgsVectorFileWriter class is not good. For this reason I called QgsVectorFileWriter methods from my createEmptyLayer(), waiting for the API break to move the code from QgsVectorFileWriter class to the OGR provider. Is it time to break API or should we just clean it up removing the createEmptyDataSource() function and replacing all its occurrences (it's used in src/gui/qgsnewvectorlayerdialog.cpp only) with the createEmptyLayer() function? Regards. -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Postgres provider checks queries and refuses CTE
Hi, On Tue, Jul 10, 2012 at 5:10 PM, Vincent Picavet vincent...@oslandia.com wrote: The postgres provider apparently does a check on the input query and only tolerates queries beginning with SELECT. the so called SELECT statement to vector layer [1] was implemented in PG and SL providers respectively from Qgis 1.5 and QGis 1.6. The pattern for queries is (SELECT ... ). Is the filter useful anyway, since there are so many ways to write non-valid queries ? I added that check to be sure the query can be used as subquery, but it make no sense for PG as the other statements can return a result as well. Those in favor of keeping it raise your hands and arguments now, or I think we'd better drop it... +1 to drop it. I'm not sure the same has to be done for SL provider, although it's better to make them uniform. Regards. [1] http://www.carsonfarmer.com/?p=713 -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Save dialog for plugin development
Hi Rob, On Thu, Jul 5, 2012 at 9:30 PM, Rob Nickerson rob.j.nicker...@gmail.com wrote: I noted that gdal tools have a hard coded look up table. If this is the only way then can i suggest we bring such a table into the core so that all plugins can make use of it. Alternatively we switch to write to a memory layer - however I do not know how to do this... you're right, GdalTools has a map containing all the drivers informations, it gets everything from the gdal module but that part was developed about 2 years ago as workaround for some old QGis bugs. Have a look at QgsVectorFileWriter static methods, supportedFiltersAndFormats() [1] should be the one you need. Regards. [1] http://qgis.org/api/classQgsVectorFileWriter.html#a6a21cf775f777b9ed4ba445db33aa08d -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Unable to push code to a git repository on hub.qgis.org
Hi all, I've set up a code repository on hub.qgis.org for a plugin I'm working on, but I'm unable to push the code to the remote repo. The plugin identifier on hub is gem-mt. Here's the error message I get: pre ~/projects/gem_mt$ git push origin master ERROR:gitosis.serve.main:Repository read access denied fatal: The remote end hung up unexpectedly /pre It's not the first plugin I move to hub, so I'm sure that I've made all the correct setup except for one thing, I tried to push the code without granting me Developer permissions. But after adding Developer role to my user in the Member tab I still get the same error, perhaps it was cached somewhere. I've dropped and re-created the local repository, but the issue persists and there's no way to drop the remote repository from the hub.qgis.org site. Any idea on how to achieve it? Regards. -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Unable to push code to a git repository on hub.qgis.org
Hi all, further notes: - It's not due to the ssh public key, I'm able to push to the other repos on hub. - I executed git push origin master without any initial commit (empty git repo) because I copied/pasted the code on the Repository section. BTW now I've some commits but the problem persists. - I deleted the local git repository (2 times) to be sure it doesn't depend on mess in the local repo. Perhaps deleting the git repo from the server could fix the problem, but I don't know if it's feasible. Does anybody know how to make it working? Thanks a lot. Regards. On Tue, Jul 3, 2012 at 3:00 PM, Giuseppe Sucameli brush.ty...@gmail.com wrote: Hi all, I've set up a code repository on hub.qgis.org for a plugin I'm working on, but I'm unable to push the code to the remote repo. The plugin identifier on hub is gem-mt. Here's the error message I get: pre ~/projects/gem_mt$ git push origin master ERROR:gitosis.serve.main:Repository read access denied fatal: The remote end hung up unexpectedly /pre It's not the first plugin I move to hub, so I'm sure that I've made all the correct setup except for one thing, I tried to push the code without granting me Developer permissions. But after adding Developer role to my user in the Member tab I still get the same error, perhaps it was cached somewhere. I've dropped and re-created the local repository, but the issue persists and there's no way to drop the remote repository from the hub.qgis.org site. Any idea on how to achieve it? Regards. -- Giuseppe Sucameli -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Unable to push code to a git repository on hub.qgis.org
Hi Salvatore, On Tue, Jul 3, 2012 at 11:23 PM, Salvatore Larosa lrssv...@gmail.com wrote: ~/projects/gem_mt$ git push origin master ERROR:gitosis.serve.main:Repository read access denied fatal: The remote end hung up unexpectedly Maybe a problem of permissions ? Have a look here [1] and [2] maybe yes, but I cannot access/edit the server configuration :) Ciao. Hope this helps! It's not the first plugin I move to hub, so I'm sure that I've made all the correct setup except for one thing, I tried to push the code without granting me Developer permissions. But after adding Developer role to my user in the Member tab I still get the same error, perhaps it was cached somewhere. I've dropped and re-created the local repository, but the issue persists and there's no way to drop the remote repository from the hub.qgis.org site. Any idea on how to achieve it? Regards. All the best! [1] - http://urlin.it/331a1 [2] - http://urlin.it/331a2 -- Salvatore Larosa linkedIn: http://linkedin.com/in/larosasalvatore twitter: @lrssvt skype: s.larosa IRC: lrssvt on freenode -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Release problem
Hi Victor, On Tue, Jun 26, 2012 at 4:47 PM, Victor Olaya vola...@gmail.com wrote: I am sorry to insist a bit, but I am having problems releasing a new version of SEXTANTE, due to a problem with the security of the release system, which does not allow path information in zip files. looking at the qgis-django webapp code seems that your zip file has something wrong. Here's the code of the webapp that accomplish that check: for zname in zip.namelist(): if zname.find('..') != -1 or zname.find(os.path.sep) == 0 : raise ValidationError( _(For security reasons, zip file cannot contain path informations) ) It seems that filenames within your zip contains also path informations. I'm not sure I understood well what path information is, but I suppose is something that defines where to put each file when it's extracted. So if you extract only one file (e.g. sextante/images/config.png) the zip application want to put it within the sextante/images folder. This could be a problem if you put files with path information like /usr or just / of ../../../something. Which command do you use to zip the plugin folder? This is the command I run to zip my plugins: zip -r PLUGIN_NAME.zip PLUGIN_FOLDER -x \*.svn* -x \*.pyc -x \*~ -x \*entries\* -x \*.git\* Hope this helps. Regards. Can anyone bypass that somehow? I could send the package to a trusted source (someone from PSC who might check things and see that there is nothing wrong in the package), and he could publish it directly. If not, I will probably upload without help files. Thanks, and sorry again for repeating this email. Regards Victor ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Using --snapshot option freezes QGis
Hi devs, the latest QGis (90b02ecc8) executed with the --snapshot option freezes. It seems a deadlock occurs in the QgsMapRenderer::render method. The problem is not due to plugins, I get the sam behavior running it adding the --noplugins option. Here's the command: qgis --snapshot ~/ ~/test.qgs and here's the backtrace: (gdb) bt #0 0xb7fe1424 in __kernel_vsyscall () #1 0xb472748c in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169 #2 0xb54afdaa in ?? () from /usr/lib/libQtCore.so.4 #3 0xb54ac4b2 in QMutex::lock() () from /usr/lib/libQtCore.so.4 #4 0xb5ce64b6 in QMutexLocker::QMutexLocker (this=0xbfffd6bc, m=0x8a34010) at /usr/include/qt4/QtCore/qmutex.h:102 #5 0xb5ce0338 in QgsMapRenderer::render (this=0x8a33ef0, painter=0xbfffd7cc, forceWidthScale=0x0) at /home/brushtyler/projects/sources/qgis/src/core/qgsmaprenderer.cpp:223 #6 0xb594d110 in QgsMapCanvasMap::render (this=0x89b0ca0) at /home/brushtyler/projects/sources/qgis/src/gui/qgsmapcanvasmap.cpp:83 #7 0xb5945c51 in QgsMapCanvas::refresh (this=0x899c958) at /home/brushtyler/projects/sources/qgis/src/gui/qgsmapcanvas.cpp:391 #8 0xb59482bc in QgsMapCanvas::paintEvent (this=0x899c958, e=0xbfffdf74) at /home/brushtyler/projects/sources/qgis/src/gui/qgsmapcanvas.cpp:1020 #9 0xb4b5618e in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4 #10 0xb4f4a9f3 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4 #11 0xb4fd9062 in QAbstractScrollArea::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4 #12 0xb5195dff in QGraphicsView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4 #13 0xb4fdb965 in ?? () from /usr/lib/libQtGui.so.4 BTW the canvas looks resized and overlaps the status bar. Probably the resizeEvent requests a new paintEvent and something goes wrong with the maprenderer mutex. Does anybody confirm? Regards. -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Fwd: Re: 1.8 Blockers
Hi all, I'd prefer to wait few days (e.g. 3 days) before releasing 1.8 to be sure the latest fixes haven't generated new issues. After the 1.7.x series with a lot of problems just after the releases, we should release a stable version of QGis. Regards On Mon, Jun 11, 2012 at 2:29 PM, Paolo Cavallini cavall...@faunalia.it wrote: Il 11/06/2012 14:54, Tim Sutton ha scritto: Hi All OK than we will stop accepting blockers for 1.8 and get on with it. I think we should keep on accepting them: if it is possible we can always (working in master) issue a last minute fix, or schedule a bugfix release for later). All the best. -- Paolo Cavallini - Faunalia www.faunalia.eu Full contact details at www.faunalia.eu/pc ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Raster visualization
Hi Stefano, On Mon, Jun 4, 2012 at 12:33 AM, skampus stefano.cam...@regione.piemonte.it wrote: it is always above every layer even if it is the last onein the toc. AFAICS the Control rendering order checkbox is not checked. Display the Layer order panel (View-Panel-Layer order) or tick the checkbox to control the rendering order of layers by their position in the TOC. Regards. (Versione di QGIS, 1.8.0-Lisboa, Revisione codice QGIS cdd683c) http://osgeo-org.1560.n6.nabble.com/file/n4978855/1.png 1.png http://osgeo-org.1560.n6.nabble.com/file/n4978855/2.png 2.png -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Raster-visualization-tp4978783p4978855.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] undefined symbol: _ZNK11QgsMapLayer3crsEv
Hi Bernhard, On Thu, May 31, 2012 at 9:28 AM, Bernhard Ströbl bernhard.stro...@jena.de wrote: I compiled current master and got an error when starting QGIS: Traceback (most recent call last): File , line 1, in ImportError: /opt/qgis-1.8.0/share/qgis/python/qgis/core.so: undefined symbol: _ZNK11QgsMapLayer3crsEv remove the directory /opt/qgis-1.8.0/share/qgis/python/qgis/, it contains old stuff (have a look at its modification date before). Regards. -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] undefined symbol: _ZNK11QgsMapLayer3crsEv
Hi, Please, send the message to the list, this kind infos can be useful to other people have the same problem. On Thu, May 31, 2012 at 3:00 PM, Bernhard Ströbl bernhard.stro...@jena.de wrote: I basically followed http://hub.qgis.org/projects/quantum-gis/repository/revisions/master/entry/INSTALL to install into $HOME/apps only recently did I change the CMAKE_INSTALL_PREFIX to /opt/qgis-1.8.0 Building and installing from source may keep old stuff in the previous installation path. If you don't want that such kind of problems occur you should consider to uninstall QGis (make uninstall) before compiling it again. I ran ldd /opt/qgis-1.8.0/bin/qgis | grep libqgis and got this: libqgis_core.so.1.8.0 = /home/StroeblB/apps/lib/libqgis_core.so.1.8.0 (0x7fa8e9291000) libqgis_gui.so.1.8.0 = /home/StroeblB/apps/lib/libqgis_gui.so.1.8.0 (0x7fa8e8d9) libqgis_analysis.so.1.8.0 = /home/StroeblB/apps/lib/libqgis_analysis.so.1.8.0 (0x7fa8e8aef000) so obvoiusly it is not sufficient to only change the CMAKE_INSTALL_PREFIX?! Shared lib are loaded by the OS, so old stuffs could blind new ones. Anyway you could use the LD_LIBRARY_PATH enviroment variable to override the path where to search libraries. Ragards. On Thu, May 31, 2012 at 3:00 PM, Bernhard Ströbl bernhard.stro...@jena.de wrote: Hi Giuseppe, thank you for your help. It turned out my build was linking to some older installation (at least as far as I understand). As I am not familiar with compiling software, may I ask you to help me understanding what was going on? I basically followed http://hub.qgis.org/projects/quantum-gis/repository/revisions/master/entry/INSTALL to install into $HOME/apps only recently did I change the CMAKE_INSTALL_PREFIX to /opt/qgis-1.8.0 when I saw the tip at http://hub.qgis.org/wiki/quantum-gis/Building_QGIS_from_Source I ran ldd /opt/qgis-1.8.0/bin/qgis | grep libqgis and got this: libqgis_core.so.1.8.0 = /home/StroeblB/apps/lib/libqgis_core.so.1.8.0 (0x7fa8e9291000) libqgis_gui.so.1.8.0 = /home/StroeblB/apps/lib/libqgis_gui.so.1.8.0 (0x7fa8e8d9) libqgis_analysis.so.1.8.0 = /home/StroeblB/apps/lib/libqgis_analysis.so.1.8.0 (0x7fa8e8aef000) so obvoiusly it is not sufficient to only change the CMAKE_INSTALL_PREFIX?! regards Bernhard Am 31.05.2012 11:43, schrieb Giuseppe Sucameli: Hi Bernhard, On Thu, May 31, 2012 at 9:28 AM, Bernhard Ströbl bernhard.stro...@jena.de wrote: I compiled current master and got an error when starting QGIS: Traceback (most recent call last): File , line 1, in ImportError: /opt/qgis-1.8.0/share/qgis/python/qgis/core.so: undefined symbol: _ZNK11QgsMapLayer3crsEv remove the directory /opt/qgis-1.8.0/share/qgis/python/qgis/, it contains old stuff (have a look at its modification date before). Regards. Information from NOD32 This message was checked by NOD32 Antivirus System for Linux Mail Server. http://www.nod32.com -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] TestQgsCoordinateReferenceSystem failed
Hi all, one of the CRS tests fails running it from latest master (9859709e9) running against GDAL 1.8.0 on Ubuntu 11.04: FAIL! : TestQgsCoordinateReferenceSystem::createFromESRIWkt() 'false' returned FALSE. (test 0 PROJ.4 = [ +proj=utm +zone=48 +a=6377276.345 +b=6356075.413140239 +towgs84=198,881,317,0,0,0,0 +units=m +no_defs ] expecting [ +proj=utm +zone=48 +a=6377276.345 +b=6356075.41314024 +towgs84=198,881,317,0,0,0,0 +units=m +no_defs ]) Loc: [/home/brushtyler/projects/sources/qgis/tests/src/core/testqgscoordinatereferencesystem.cpp(221)] The difference is due to the rounded +b value in the hardcoded version (...24 vs. ...239). Does the fail depends on the GDAL version or is the hardcoded proj4string wrong? Regards. -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Discussion on browser and file extensions
Hi Etienne, On Sun, May 27, 2012 at 11:37 PM, Etienne Tourigny etourigny@gmail.com wrote: Can you look at this and if possible commit it before 1.8 is released? I've just added a note to the pull request. Regards. https://github.com/qgis/Quantum-GIS/pull/151 Etienne On Fri, May 25, 2012 at 1:09 PM, Etienne Tourigny etourigny@gmail.com wrote: On Fri, May 25, 2012 at 12:41 PM, Giuseppe Sucameli brush.ty...@gmail.com wrote: Hi Etienne, On Fri, May 25, 2012 at 5:08 PM, Etienne Tourigny etourigny@gmail.com wrote: BTW we need another method, right? Something like QgsLayerItem::layerName() This is the approach in my patches, only it is also supported in QgsDataItem (see below why). IMHO it isn't. In your patch the fileName method is used to get the name displayed in the browser (see QgsBrowserModel::data() line 153), instead in my proposal the QgsLayerItem::layerName() would be used to get the name of the layer to load (not the filename). You should keep the QgsDataItem::name() for filename (data shown in the browser) and add a new method for QgsLayerItem::layerName(). ah ok, so name() would return the filename, whereas layerName() would return the filename without extension, to be used in the dragdrop operations. Sounds reasonable. Would need to modify mime data stuff also, in QgsMimeDataUtils::Uri what about file-based datacollection items? I guess only the layers can get dropped to other targets, therefore no need to change anything? BTW, I'm wondering if Radim meant the same. Also, this could use uri() like you suggested instead of path(), not sure I understand the distinction URI is the string used to load a layer, path is a way to identify a qgsdataitem in the browser tree. ah ok, thanks Cheers. QString QgsDataItem::fileName() const { QFileInfo fileInfo( path() ); return fileInfo.isFile() ? fileInfo.fileName() : name(); } Again, this works in the default case, but the function should be overloaded for efficiency in the case of gdal ang ogr /vsizip files (like I did in my patches) Regards, Etienne QgsDataItem is base for various data sources, most of them are not file based. I agree, having a fileName() method in the QgsDataItem class is non-sense. Well unless mistaken, you could have a QgsDataCollectionItem which is file-based, such as multi-layer shape or qml? Cheers. -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Discussion on browser and file extensions
Hi Radim, On Wed, May 23, 2012 at 6:45 PM, Radim Blazek radim.bla...@gmail.com wrote: and adding a QgsDataItem::fileName() member which the browser would use for layer items. It very simple to fix now. It should be possible to get the file name from QgsDataItem::uri(). if the layer is file-based get the name from the uri, otherwise get it from name(). Is that what you meant? BTW we need another method, right? Something like QgsLayerItem::layerName() QgsDataItem is base for various data sources, most of them are not file based. I agree, having a fileName() method in the QgsDataItem class is non-sense. Cheers. -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Discussion on browser and file extensions
Hi Etienne, On Fri, May 25, 2012 at 5:08 PM, Etienne Tourigny etourigny@gmail.com wrote: BTW we need another method, right? Something like QgsLayerItem::layerName() This is the approach in my patches, only it is also supported in QgsDataItem (see below why). IMHO it isn't. In your patch the fileName method is used to get the name displayed in the browser (see QgsBrowserModel::data() line 153), instead in my proposal the QgsLayerItem::layerName() would be used to get the name of the layer to load (not the filename). You should keep the QgsDataItem::name() for filename (data shown in the browser) and add a new method for QgsLayerItem::layerName(). BTW, I'm wondering if Radim meant the same. Also, this could use uri() like you suggested instead of path(), not sure I understand the distinction URI is the string used to load a layer, path is a way to identify a qgsdataitem in the browser tree. Cheers. QString QgsDataItem::fileName() const { QFileInfo fileInfo( path() ); return fileInfo.isFile() ? fileInfo.fileName() : name(); } Again, this works in the default case, but the function should be overloaded for efficiency in the case of gdal ang ogr /vsizip files (like I did in my patches) Regards, Etienne QgsDataItem is base for various data sources, most of them are not file based. I agree, having a fileName() method in the QgsDataItem class is non-sense. Well unless mistaken, you could have a QgsDataCollectionItem which is file-based, such as multi-layer shape or qml? Cheers. -- Giuseppe Sucameli - Faunalia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Python support in project file
Hi Victor, On Wed, May 23, 2012 at 9:35 PM, Victor Olaya vola...@gmail.com wrote: it woould be solved if I could add a script to be executed when saving a project, so it can check that layers are not temporary (and if they are, save them to a permanent location). what you need is just a signal sent when the project is saved, like the projectRead() signal available through the qgis iface, although there's no way to update the URI of a loaded layer. What I'm working on is a way to define user routines. Even, the algorithms used to generate a given layer could be stored in the project file, so if a layer is missing, it could be recomputed if the input ones are available. Good idea!, but you have to get bad (missing) layers, so while the project is loading, not after. When the project is loaded you've already lost bad layers. There's a setBadLayerHandler in QgsProject, but I suppose if you create a new handler in the python code it doesn't work due to the current asymmetric bindings (python code can access C++ object, C++ code cannot access python objects). If setting the badLayerHandler from python worked, you could do: 1. store info on layers created by sextante using custom properties, 2. create a sextanteBadLayerHandler that checks bad layers' custom properties to understand if it was sextante their creator and if so recreates them otherwise call the default bad layer handler. Looking forward to knowing more about it and starting working on those features. If there is anything I can do to help you, tell me and I will see what I can do. We have to wait for other people, hoping they'll join this thread soon ;) Regards. 2012/5/23 Giuseppe Sucameli brush.ty...@gmail.com: Hi all, I started to work on adding python support in project files (see [1]). I've added a new tab Project routines to the project properties dialog where the user can define 3 different python routines: one is executed when the project is loaded, the next one when the project is saved, and the last one when the project is closed (saved or not). I'm also adding a safe-check, it asks to the user if enabling them. I've few questions: 1. In [1] Martin wrote: The routines should be able to access QGIS application with the use of the interface in the same way how plugins do. I'm wondering if those routines must be functions with a specific signature or they could just access the QGis interface using the qgis.utils.iface since I'll use the QgsPythonRunner to run them. 2. In a loaded project with trusted scripts (the user has trusted them) if the user changes their definitions from project properties dialog 2.a. should the new routines become active immediately when the user clicks on the apply button in the project properies dialog, 2.b. or should become active when he saves the project (the new projectSaved script has to be called just after the project is saved), 2.c. or should I keep the previous ones until the project is reloaded? 3. should I call them project-embedded-scripts or routines??? :) Opinions are welcome. Cheers. [1] http://hub.qgis.org/wiki/quantum-gis/Google_Summer_of_Code_2012#Python-Support-in-Project-Files -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Discussion on browser and file extensions
Hi all, On Tue, May 22, 2012 at 10:10 PM, Martin Dobias wonder...@gmail.com wrote: - extensions in legend widget are useless - new column for layer type in legend widget is are also useless (there is tooltip with data source / full path) I agree. I guess a layer is just a layer. Distinguishing them by extensions just means the base name is not complete. If you have 2 layers with the same name probably they are different and then you should consider to assign them different names. - extensions in file browser are not necessary (there is tooltip with full path, so it's possible to distinguish them even when the base name is the same) IMHO they are necessary for files, otherwise I (but I think users in general) may become crazy to find the right file to load. So I would just keep everything unchanged except trimming the suffix from the layer name. Regards. -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] plugins problem
Hi Eugenio, On Fri, May 18, 2012 at 3:05 PM, Eugenio Trumpy frippe12...@hotmail.com wrote: ImportError: /usr/local/share/qgis/python/qgis/core.so: undefined symbol: _ZN14QgsComposition14addComposerMapEP14QgsComposerMap I've no /usr/local/share/qgis/python/qgis/ directory in my installation. I guess are old files that mask the libs you've built. Have a look at the modification date of files within that folder: ls -l /usr/local/share/qgis/python/qgis and if those are old files just remove that folder (or move it somewhere). Have also a look at the modification date of the directory /usr/local/share/qgis/python/pyspatialite/ it could contain the same old stuff as well. Regards. Versione Python: 2.7.3rc2 (default, Apr 22 2012, 22:55:44) [GCC 4.6.3] Versione di QGIS: 1.8.0-Lisboa 'Lisboa', 4c673b1 Percorso Python: ['/usr/local/share/qgis/python', '/home/eugenio/.qgis//python', '/home/eugenio/.qgis//python/plugins', '/usr/local/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode'] Anyone could help me? Regards Eugenio ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QgsVector Python binding
Hi, On Wed, May 16, 2012 at 5:05 PM, John Donovan mersey.vik...@gmail.com wrote: Is it me, or are the bindings for QgsVector missing? probably it is QgsVectorLayer what you're searching for. Regards. -John -- One of the advantages of being disorderly is that one is constantly making exciting discoveries. - AA Milne ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Fwd: Threads in sextante
Hi Etienne, On Sat, May 12, 2012 at 6:47 PM, Etienne Tourigny etourigny@gmail.com wrote: I always thought that gdaltools and ftools should be non-blocking (unless I am mistaken, they are currently blocking the rest of the app), especially if the operation takes a long time. GdalTools is non-blocking (uses QProcess to execute commands) and its dialogs are non-modal, so more operations can run concurrently and users can open all the gdaltools dialogs they need. This might have issues though with 1) progress report - can this be done by the executing thread? That's missing in GdalTools. Generally speaking, every time the execution thread emits the progress signal the main thread (GUI thread) updates the progressbar. Focused to GdalTools, it should get progress percent from the QProcess output but unfortunately a lot of other info goes to the process output. 2) what happens when the operation finishes The execution thread emits a signal and the main thread display a message according to the signal (error, finished). Ideally, there should be a way to cancel an operation, if it takes too long (e.g. escape key when the operation window has focus) Stopping/killing the execution thread should be enough. GdalTools asks for confirmation and then does it. Also, this could enable several similar operations to be done in parallel - as long as they are not working on the same output files. That must be taken care from the framework: an operation that needs as input outputs generated by other operations must be started only after the required outputs are ready... ... and the key is to use signals, again. Regards. Etienne On Fri, May 11, 2012 at 3:25 AM, Paolo Cavallini cavall...@faunalia.it wrote: Il 10/05/2012 23:15, Martin Dobias ha scritto: What should be the benefit of multithreading here? To run algorithms outside from main thread so that GUI does not get blocked? IMHO this is the main reason; I think the way GDALTools work is fine for the user. All the best. -- Paolo Cavallini - Faunalia www.faunalia.eu Full contact details at www.faunalia.eu/pc ___ 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 -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Fwd: Threads in sextante
Hi, On Sat, May 12, 2012 at 8:56 PM, Etienne Tourigny etourigny@gmail.com wrote: Any way ftools could be adapted to use the same approach as gdaltools? yes, it could. The only problem running non-modal dialogs are crashes accessing deleted objects like layers removed by the user. The solution implemented in GdalTools is to use the QgsMapLayerRegistry signals to update the list of layers and the combos. However - this hack might work - when the characteristic '0...10...20...30...40...50...60...70...80...90...100 - done.' output is detected (say after '0...10') then the output would be interpreted as progress report, which could be used to update the gui every 10% - until 100 is read. I have never seen output mixed with progress report in gdal utilities, although I may be wrong. yes, it could be done. Stopping/killing the execution thread should be enough. GdalTools asks for confirmation and then does it. This has to be done manually, externally to qgis though. Externally? Would it be possible to have a Cancel button in the dialogs that would respond to user input, or respond to the Escape key when pressed? Yes, why not? I'm not sure I've understood. Also, this could enable several similar operations to be done in parallel - as long as they are not working on the same output files. [[snip]] Am I wrong to think that currently, 2 gdaltools operations could run concurrently with the same output file, with all associated problems? uhm.. sorry, I've read too fast and I misunderstood your words. No, I don't know what happens if two tools wrote on the same output, though I think GDAL locks the output file until it finished. Let's give me a try :) BTW, why should two tools work on the same output file? Cheers. thanks Etienne Regards. Etienne On Fri, May 11, 2012 at 3:25 AM, Paolo Cavallini cavall...@faunalia.it wrote: Il 10/05/2012 23:15, Martin Dobias ha scritto: What should be the benefit of multithreading here? To run algorithms outside from main thread so that GUI does not get blocked? IMHO this is the main reason; I think the way GDALTools work is fine for the user. All the best. -- Paolo Cavallini - Faunalia www.faunalia.eu Full contact details at www.faunalia.eu/pc ___ 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 -- Giuseppe Sucameli -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Content of plugins.qgis.org homepage
Hi all, I'm wondering if I'm the only one who thinks the content of the QGis Plugin Repository homepage [1] is obscure. First of all I really don't understand why putting the How to add a plugin to this repo section below the Resources for plugins authors... Shouldn't the main purpose of the site be uploading and listing plugins? +1 to have the How to submit bug report section in first position, but Resources for plugin authors could be moved below IMHO. BTW, the more incomprehensible thing IMHO is the list for the section How to add your plugin to this repository: - first point: how to share a plugin (OK) - second point: create a projection (OK) - and third one? what's that??? It doesn't make sense to mix ZIP files, repo on hub.qgis.org and GH repo, it just makes a lot of confusion IMHO. The zip part should be moved to the first point (how to share a plugin) and replaced in the third point by something like do not use any code repo, although using a repo should be strongly recommended. Do you agree should be changed? Who can do it? Regards. [1] http://plugins.qgis.org/ -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Content of plugins.qgis.org homepage
Hi Alessandro, On Thu, May 10, 2012 at 7:38 PM, Alessandro Pasotti apaso...@gmail.com wrote: 2012/5/10 Giuseppe Sucameli brush.ty...@gmail.com: Do you agree should be changed? Who can do it? You, Paolo C. and many others: i.e. all staff users in the Website Editors group http://plugins.qgis.org/admin/flatpages/ thanks for granting me permissions. But do you agree should be changed? Regards. -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] WCS
Hi Radim On Wed, May 9, 2012 at 8:29 PM, Radim Blazek radim.bla...@gmail.com wrote: On Sat, May 5, 2012 at 2:57 PM, Giuseppe Sucameli brush.ty...@gmail.com wrote: that's the same problem with the WMS provider, there isn't a way to get the GetMapUrl... [[snip]] BTW, where do you need WMS GetMapUrl? to create the XML file for the GDAL commandline tools. I think it's the same problem you have with WCS, isn't it? Radim Any reason to not doing it? Regards. - How to specify an extent and resolution in GDAL Tools. - How to implement save a copy of WCS part Related: I believe that it could be better to organize OWS by servers instead of by services, especially in the browser. Instead of adding a new connection for each service, user could add just one generic OWS connection and available services would appear under that connection in the tree. I have implemented this in OWS meta provider. It reads and combines all defined WMS, WFS and WCS connections and displays all available layers (if there are few) or services under the connection: https://picasaweb.google.com/radim.blazek/OWS Radim ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] WCS
Hi Radim, On Wed, May 2, 2012 at 12:23 PM, Radim Blazek radim.bla...@gmail.com wrote: - How to pass the raster to GDAL Tools. Currently the XML string is created on the fly by GDAL provider and passed as a string to GDALOpen, there is no XML file which could be given to GDAL Tools. that's the same problem with the WMS provider, there isn't a way to get the GetMapUrl... and parsing the metadata string is not a good option :) I think all the providers should have a method to get useful props, so plugins can get those kind of provider-specific information, something like: QVariant QgsDataProvider::getProperty(QString) Any reason to not doing it? Regards. - How to specify an extent and resolution in GDAL Tools. - How to implement save a copy of WCS part Related: I believe that it could be better to organize OWS by servers instead of by services, especially in the browser. Instead of adding a new connection for each service, user could add just one generic OWS connection and available services would appear under that connection in the tree. I have implemented this in OWS meta provider. It reads and combines all defined WMS, WFS and WCS connections and displays all available layers (if there are few) or services under the connection: https://picasaweb.google.com/radim.blazek/OWS Radim ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Bye bye SPIT?
Hi Mayeul, On Wed, May 2, 2012 at 7:23 PM, mayeul.kauffm...@free.fr wrote: Sure, duplication of tools is bad. But removing SPIT would mean removing the *only* (correct?) QGIS GUI tool to load shapefiles into postgis without external dependencies. Do we want to get read of this before putting it in DB manager? importing into PG databases doesn't requires pyspatialite, you only need psycopg2 and if I understand well you already have it.. Please, could you give more info about the error you get? Regards. -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Plugins About dialog: make it more uniform
Hi, On Apr 17, 2012, at 9:42 PM, Tim Sutton li...@linfiniti.com wrote: On Tue, Apr 17, 2012 at 3:47 PM, Marco Hugentobler marco.hugentob...@sourcepole.ch wrote: And core plugins that ship with the QGIS code should remove the about dialog (currently gdal tools and db manager) Agreed - any serious objections from the authors? no objections for me to remove the db_manager's about dialog, but I'm wondering where I can put info about who supported the development of the tool. I was sure adding them to that dialog was possible, so I was also about to add the sponsorship from Silvio Grosso. Any opinion on how to handle such things? Can I change the commit message to add those info? Regards. Regards Tim Regards, Marco On 17.04.2012 09:03, Paolo Cavallini wrote: Hi all. Currently, most plugins do not have an About dialog, and those who have it are often quite different. Can we choose a layout, make a template, and ask plugin devs to please use it? A small thing, but it will sooth out the user experience, and will give a more integrated ovarall look. All the best. -- 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 -- 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: [Qgis-developer] Sextante-R: error in sample scripts
Hi Salvatore, On Fri, Apr 13, 2012 at 6:58 PM, Salvatore Larosa lrssv...@gmail.com wrote: Try to change: form: if isinstance(param, ParameterVector) to: if isinstance(param, ParameterTable): in RAlgorithm.py file (line 215)! this problem was already fixed into sextante repo. Thanks. Bye. -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QgsPythonRunner and multiline command
Hi Tim, On Wed, Mar 28, 2012 at 9:45 PM, Tim Sutton li...@linfiniti.com wrote: Multiline python support in actions would be nice good to know you like it. a work around I guess you can import a module and execute a function in it passing action params to it. That's a possible work around, but creating a new file is very annoying when you want to write only few lines of code. In addition a user can find difficulty in loading a module, especially if they don't know how to correctly setup python to find their modules. Obviously using python in actions requires some knowledge (e.g. to know python syntax), but users usually search and adapt a working script. Sometimes puts more python commands in just one line of code can require more skills than compile QGis on Windows w/o getting dependencies from OSGeo4W :) Cheers! -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] disable MsSql provider by cmake files
Hi all, I'm wondering why the MsSql provider cannot be disabled in cmake to be not compiled, like instead the PostGis and SpatiaLite ones can be. Maybe there's a good reason, but I don't get it at the moment. Regards. -- Giuseppe Sucameli ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer