[Qgis-developer] PyQGIS: News about the status of moving to qgis.gui from app ?

2014-07-16 Thread Gino Pirelli
Hi Martin

In Vienna you announced the idea to move some GUIs present in app
part of qgis code to qgis.gui to gain accessibility with PyQGIS
without using QgsInterface wrapper

It's still in your plans, it's something already financed?

I was just looking how to reuse QgsFieldProperties widget

Thank you,

Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] PyQGIS: News about the status of moving to qgis.gui from app ?

2014-07-16 Thread Gino Pirelli
Ok, I misunderstood...

thank you

On 16 July 2014 15:21, Martin Dobias wonder...@gmail.com wrote:
 Hi

 On Wed, Jul 16, 2014 at 11:46 AM, Gino Pirelli lui...@gmail.com wrote:
 Hi Martin

 In Vienna you announced the idea to move some GUIs present in app
 part of qgis code to qgis.gui to gain accessibility with PyQGIS
 without using QgsInterface wrapper

 It's still in your plans, it's something already financed?

 I must have been referring to the legend refactoring which introduced
 new classes (QgsLayerTree*) to core and gui library in 2.4 release.
 Now you do not need QgsLegendInterface anymore to deal with the layer
 tree.


 I was just looking how to reuse QgsFieldProperties widget

 I have currently no plans to move more widgets to GUI library.

 Regards
 Martin
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Proposal: Change delete selction and deselect icons

2014-07-10 Thread Gino Pirelli
+

it always confused me... But I'm not an end user to say what is the best
choice

regards,

Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)


On 10 July 2014 08:26, Nathan Woodrow madman...@gmail.com wrote:

 Hey all,

 Just a thought today from some feedback from a user.  Could the deselect
 and delete selected features have a change in icons.  Both these icons look
 very a like and preform very different actions.


 [image: Inline image 1]

 http://i.imgur.com/BVPo9ce.png

 On the attribute table it becomes even harder to tell.

 [image: Inline image 2]

 I would like to suggest some form of bin icon, or a red cross for delete.

 Thoughts?

 - Nathan



 ___
 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] 2.2 project keeps crashing after load

2014-06-25 Thread Gino Pirelli
two useful tricks

1) redirect log to file as stated here
http://qgis.org/api/classQgsLogger.html#details
export QGIS_DEBUG=level e.g. 3
export QGIS_LOG_FILE=./qgis.log
in the shell or add them in the settings-otions-system-environments ...
log will be produces using unix EndOFLine so under win you need to convert
log file using something like unix2dos executable.

2) attach qgis execution inside VisualStudio and it will stop at the
crash... but without debug symbols it's only useful to have an idea of the
calling sequence.

my 2 cents,

Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)



On 25 June 2014 11:55, Andreas Neumann a.neum...@carto.net wrote:

 Hi,

 I have some related questions regarding my crash:

 * What software are people using to analyze the minidump file?

 * During the QGIS crash I see that there are 570 messages in the log
 window - but because QGIS crashes I cannot access these log-messages
 anymore. Are these log-messages also available somewhere in a file so I
 can read them?

 The other thing I found out is that I can open the project if another
 project was loaded before. But if I open the project from an empty QGIS
 session it crashes. This behaviour is consistent. It always crashes when
 it opens as the first project and always works when another project was
 loaded before. Very strange ...

 Andreas


 Am 25.06.2014 09:35, schrieb Andreas Neumann:
  Hi,
 
  I have a 2.2 project that keeps crashing immediately after load - so not
  much chance to investigate. The project has some PostgreSQL and a WMS
  layer. Testing the last nightly on Win 64 bit build.
 
  Can qgis-devs read something in the minidump file to give me a hint what
  may cause the crash?
 
  The minidump is available at
  http://webgis.uster.ch/temp/qgis-20140625-112518-1784-4568-39eaff9.dmp
 
  I have no idea what is wrong with this project. It is a rather simple
  project compared to others.
 
  Thank you for your help,
  Andreas
  ___
  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

Re: [Qgis-developer] Fwd: Hackfest/ developers meeting in Spring 2015

2014-06-19 Thread Gino Pirelli
victor

I'm agree about the quality of the copenhagen offer, but remember that we
(spain) loosed again the opportunity to host a hackfest due the fact that
none answered from Girona to the offer do the hackfest there!

:| we should plan to self-organize the hackfest using CENATIC (
http://amtega.xunta.es/) or AMTEGA (http://amtega.xunta.es/) support

see you

Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)


On 19 June 2014 10:31, Victor Olaya vola...@gmail.com wrote:

 Awesome news! I really enjoyed the time I spend there for their QGIS
 course last April, and I cannot think of a better place for a GIS hackfest
 :-)


 2014-06-19 10:14 GMT+02:00 Paolo Cavallini cavall...@faunalia.it:

 Hi all.
 On behalf of Lene Fscher, from the University of Copenhagen, I'm inviting
 QGIS
 developers to the spring 2015 hackfest in Danmark.
 See below for details.
 Thanks Lene!
 All the best.

  Messaggio Inoltrato 
 This is an invitation to come to Denmark in May 2015 for Developers
 meeting and
 Hackfest – or what it is called J

 University of Copenhagen would like to be host for this event.

 Our department at the The Forest and Landscape College is situated in
 Nødebo – 40 km
 north of Copenhagen.

 In the week from 18.-22. May 2015

 We have room for 34 persons and a hostel nearby is more persons would
 like to
 participate.

 We have a very good canteen which can provide us with food and coffee
 https://www.facebook.com/SpisehusetSkovskolen

 We have rooms for working

 We have an organization for having arrangements like this

 We have students for testing – they are used to work with QGIS

 We have “Flækken” the students place for beer and relaxation

 And place for time off in the forest….

 It is easy to get here from Copenhagen.

 In April 2014, Victor Olaya and Martin Isenburg visited us for a
 workshop. Please ask
 Victor for his opinion about our campus could be a place for this event.

 http://ign.ku.dk/om/skovskolen/
 https://www.facebook.com/SkovOgLandkabsingenior

 Regards

 *Lene Fischer*
 Associate Professor

 *Department of Geosciences and Natural Resource Management*
 University of Copenhagen


 l...@ign.ku.dk mailto:l...@ign.ku.dk






 ___
 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

Re: [Qgis-developer] Legend refactoring branch merged

2014-06-04 Thread Gino Pirelli
at a first check I found that WMS getLegendGraphic visualization seems not
present in the new legend deeper tests leter

other has the same experience?

bye Luigi Pirelli (luigi.pirel...@faunalia.it - lui...@gmail.com)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] How to change credentials using QgsCredentials and QgsNetworkAccessManager

2014-06-04 Thread Gino Pirelli
Hi,

I'm trying to change credential after a successful login, but without
success, and I wonder it's not possible, so I ask to the community what's
I'm doing wrong.
The only way I found to login as new user is closing and opening again qgis
:|

the workflow it this one

first correct login

1) get a QgsNetworkAccessManager instance
2) prepare a request
3) auth is required by the server = QgisApp::namAuthenticationRequired is
called
4) in QgisApp::namAuthenticationRequired QgsCredential get(...) is used to
ask user and password that are set in the QAuthenticator

all proceed well... but at a moment my plugin need to be used by other
user, so next steps for a new requests are

5) get a QgsNetworkAccessManager instance
6) prepare a request
7) auth is required by the server, but QNetwarkAccessManager use cached
credentials and NO signal AuthenticationRequired = it doesn't enter
in QgisApp::namAuthenticationRequired = no credential are requested and
continue with the old credentials

QNetworkAccessManager reuse old QAutenticator so it is unuseful set new
credentials with QgsCredentials::instance().put(). QgsCredentials are get
only in QgisApp::namAuthenticationRequired that is called once (due the
fact that QgsNetworkAccessManager is singleton?)

next QT version (qt5) has a QNetorkAccessManager::clearAccessCache().
Method not available in QT4.

Should I use directly QNetworkAccessManager instead of then singleton
version forced by QgsNetworkAccessManager?

anyone know a way

Any help is appreciated,

Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Fwd: Bug fix and tests

2014-05-09 Thread Gino Pirelli
Hi,

I'm starting to approach a bug fix about a blocker (for me) bug (
https://hub.qgis.org/issues/10216)... I compiled tests to check if my
modification could break something

naturally I checked test before my patch and I find

80% tests passed, 18 tests failed out of 92

Total Test time (real) = 271.32 sec

The following tests FAILED:
  4 - qgis_diagramtest (Failed)
  5 - qgis_diagramexpressiontest (Failed)
 16 - qgis_maprenderertest (Failed)
 27 - qgis_composermaptest (Failed)
 30 - qgis_composerrotationtest (Failed)
 32 - qgis_atlascompositiontest (Failed)
 36 - qgis_composerhtmltest (Failed)
 38 - qgis_composerscalebartest (Failed)
 43 - qgis_shapebursttest (Failed)
 56 - PyQgsLocalServer (Failed)
 73 - PyQgsComposerHtml (Failed)
 76 - PyQgsComposerMap (Failed)
 81 - PyQgsAtlasComposition (Failed)
 85 - PyQgsPalLabelingCanvas (Failed)
 86 - PyQgsPalLabelingComposer (Failed)
 87 - PyQgsPalLabelingServer (Failed)
 89 - PyQgsSpatialiteProvider (Failed)
 91 - PyQgsAppStartup (Failed)


most of them related to composer so probably will not be affected by my
rovider patch

this mail only to suggest to maintain tests too otherwise patching will be
more difficult

thank you, Luigi Pirelli
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] ItemDelegate with a tool button: can't click

2014-05-08 Thread Gino Pirelli
do you mind to use hover events to enable or filter click event?


On 7 May 2014 08:38, Denis Rouzaud denis.rouz...@gmail.com wrote:

 Hi all,

 Nyall is using the new QgsFieldExpressionWidget as an item delegate and
 there's a problem with clicking on the button.

 Indeed, pressing on the button (to open the expression dialog) works only
 and only if the combo box has the focus.

 For a demo, see http://youtu.be/o5AgjC4cCqY

 Do you have any idea how to handle this?

 Thanks a lot,

 Denis

 PS: I posted the same question on stackoverflow: http://stackoverflow.com/
 questions/23510297/qt-itemdelegate-with-a-tool-button-cant-click
 ___
 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] python binding compilation missing after git pull

2014-04-21 Thread Gino Pirelli
Hi

after a git pull I recompiled and installed qgis (master)

at the end I've this error

CMake Error at python/cmake_install.cmake:50 (FILE):
  file INSTALL cannot find
  ./QGIS-2.0-master/build-master/output/python/qgis/core.so.
Call Stack (most recent call first):
  cmake_install.cmake:61 (INCLUDE)

so python binding is not compiled! why?

can someone confirm or it's a my problem? I've no changed my CMake config.

bye Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] python binding compilation missing after git pull

2014-04-21 Thread Gino Pirelli
a clean reconfig of CMake solved the problem


On 21 April 2014 11:15, Gino Pirelli lui...@gmail.com wrote:

 Hi

 after a git pull I recompiled and installed qgis (master)

 at the end I've this error

 CMake Error at python/cmake_install.cmake:50 (FILE):
   file INSTALL cannot find
   ./QGIS-2.0-master/build-master/output/python/qgis/core.so.
 Call Stack (most recent call first):
   cmake_install.cmake:61 (INCLUDE)

 so python binding is not compiled! why?

 can someone confirm or it's a my problem? I've no changed my CMake config.

 bye Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)



___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] WMS Legend in QGIS 2.2

2014-04-04 Thread Gino Pirelli
should retrieve legend if WMS server has getLegendGraphic capability and
layer has getCapability url specified... so you HAVE to select a
styling. Otherwise, silently do nothing as before when getLegendGraphic
integration wasn't available.

just tested on your server and it works

ciao Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)


On 4 April 2014 07:44, Tim Sutton li...@linfiniti.com wrote:

 Hi

 In the 2.2 release notes, we list the ability to show WMS legend in TOC
 and composer[1]. Can someone provide instructions on how to actually do
 this - I don't see any obvious way to get it working.

 I tested using the fires from the last 48 hours layer at [2].

 Regards

 Tim

 [1] http://changelog.linfiniti.com/qgis/version/21/#108
 [2] http://global.afis.co.za/geoserver/wms

 --
 Tim Sutton - QGIS Project Steering Committee Member
 ==
 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.

 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] WMS Legend in QGIS 2.2

2014-04-04 Thread Gino Pirelli
I forgot to say that if a legendGraphic is available is shown under the
layer in LegendLayer... it's really little and you have to click on it to
open in real dimension (this is due to QgsLegendInterface architectural
limitation)

Legend will be integrated in composer at it's original (dowloaded) dimension

graphic resolution of the legend could be set in options-Canvas 
Legend-WMS getLegendGraphic resolution to match your printing requirements


On 4 April 2014 08:46, Gino Pirelli lui...@gmail.com wrote:

 should retrieve legend if WMS server has getLegendGraphic capability and
 layer has getCapability url specified... so you HAVE to select a
 styling. Otherwise, silently do nothing as before when getLegendGraphic
 integration wasn't available.

 just tested on your server and it works

 ciao Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)


 On 4 April 2014 07:44, Tim Sutton li...@linfiniti.com wrote:

 Hi

 In the 2.2 release notes, we list the ability to show WMS legend in TOC
 and composer[1]. Can someone provide instructions on how to actually do
 this - I don't see any obvious way to get it working.

 I tested using the fires from the last 48 hours layer at [2].

 Regards

 Tim

 [1] http://changelog.linfiniti.com/qgis/version/21/#108
 [2] http://global.afis.co.za/geoserver/wms

 --
 Tim Sutton - QGIS Project Steering Committee Member
 ==
 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.

 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] Vienna hackfest: QGIS Legend discussion

2014-04-02 Thread Gino Pirelli
On 2 April 2014 11:55, Régis Haubourg
regis.haubo...@eau-adour-garonne.frwrote:

 Hi Martin, does that mean that we need to wait that your refactoring is
 finished before starting a work on proportionnal legends? What is the
 target
 version for that?
 This is a high priority use case here, should we fund a temporary plugin
 for
 current versions ? This is sub-optimal too me, and that requires also we
 fund first a plugin, and secondly a core feature.


I suggest you to wait... every ad-hoc solution would be refactored again
after release of the new Legend architecture.
Actual design is really limited... the new one will use all the potential
of Qt legend items customization.
One of the Martin's work will be moving legend to gui library allowing
programmatically (e.g using plugins) add new item visualization modes
In this moment of the process, as stated by Martin, we're collecting all
the default visualization features that legend should have.


 after having experienced Mapinfo, Arcmap, and QGIS dockable Mirror map, I

think Multi Canvas is really required for multi map composers, and current
 arcmap design is rather good. We still need Dockable mirror map for on
 screen visulisation purposes.


I don't know if you know that exist Dockable Mirror Map plugin that add
this functionality to Qgis... new legend interface will be designed to
allow different rendering/styling for each available canvas.

se you, Luigi Pirelli
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Debugging Python plugin with Eclipse: breakpoints do not wotk

2014-03-25 Thread Gino Pirelli
just a note... there's no alternative RemoteDebug plugin... my changes
where merged in the main project

https://github.com/sourcepole/qgis-remote-debug

In my case it works... now I can't rememnber If I set something particular
(and I've no time to check now)... what I can say is that remote debug
plugin connect pydev server only if it is strictly clearly started...
otherwise sometimes it does nothing.

so my procedure is... running pydev debug server... then start qgis... then
start remotedebug plugin then I start to debug

see you Luigi Pirelli


On 25 March 2014 14:34, Franz1965 fso...@intercad.ch wrote:

 I've also taken a try with an alternate RemoteDebug plugin
 (https://github.com/luipir/qgis-remote-debug) but with no luck.

 It's strange... RemoteDebug is not in the list of installable plugins and
 you have to manually download and install it. But on downloaded version,
 inside metadata.txt, I find qgisMaximumVersion=2.99; so I guess that it
 should be compatible.



 --
 View this message in context:
 http://osgeo-org.1560.x6.nabble.com/Debugging-Python-plugin-with-Eclipse-breakpoints-do-not-wotk-tp5130877p5130945.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

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Code Sprint agenda

2014-03-25 Thread Gino Pirelli
my agenda is focused on add functions to rt_mapserver_exporter plugin to
support missing parameter passed to map file

first goal was reached negotiating a solution with mapserver team to allow
managing of external graphic  (svg too) thanks to introduce a validation
block check in applySld mapscript api (
https://github.com/mapserver/mapserver/commit/e18424940d5c48391c61cf62b0bda883805bc871
)

next steps are to investigate how to integrate current
rt_mapserver_exporter code (that use SLD interface) with some missing
feature inspiring me from the Hugo Mercier fork of the same plugin.
The goal is... programmatically add new symbols and manage some not managed
parameters from qgis sld as GAP in point pattern.

bye from Vienna OSGeo Code Sprint

Luigi Pirelli


On 24 March 2014 18:49, Anita Graser anitagra...@gmx.at wrote:

 Hi,

 Thanks for sharing Paolo!

 My tasklist for this week is:

 * Processing bughunt
 * Expand Human Interface Guidelines
 * Write user group guidelines
 * UX bug/issue hunting, e.g. layer properties style dialog

 Just come by if you want to chime in.

 Best wishes,
 Anita



 Am 24.03.2014, 11:32 Uhr, schrieb Paolo Cavallini cavall...@faunalia.it:


  Hi all.
 This is my agenda for the just started Code Sprint (AKA HackFest):

 * better management of sponsor and donor lists
 * translation of lizmap
 * setup a procedure for a more reliable and timely plugin approval
 * help implementing the repository for symbols
 * help improving course material: manual, data, Python examples.

 Anyone willing to collaborate on this, either in presence or remotely,
 is welcome.
 All the best.



 --
 anitagraser.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] public key on hub.qgis.org problem

2014-03-25 Thread Gino Pirelli
I don't remember there is need of a key to upload plugins... am I wrong?

git push origin master
could be a problem related to you remote git repository configuration?

ciao Luigi Pirelli




On 25 March 2014 18:23, Giuseppe De Marco demarco.giuse...@gmail.comwrote:

 I was trying to upload a plugin version on hub.qgis.org
 after updating my rss key on laptop, and I was asked for a password
 after entering  $ git push origin master

 opening a terminal and issuing ssh -v gito...@qgis.org 
 I get

 OpenSSH_6.2p2 Ubuntu-6ubuntu0.1, OpenSSL 1.0.1e 11 Feb 2013
 debug1: Reading configuration data /etc/ssh/ssh_config
 debug1: /etc/ssh/ssh_config line 19: Applying options for *
 debug1: Connecting to qgis.org [140.211.15.67] port 22.
 debug1: Connection established.
 debug1: identity file /home/joe/.ssh/id_rsa type 1
 debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
 debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
 debug1: identity file /home/joe/.ssh/id_rsa-cert type -1
 debug1: identity file /home/joe/.ssh/id_dsa type -1
 debug1: identity file /home/joe/.ssh/id_dsa-cert type -1
 debug1: identity file /home/joe/.ssh/id_ecdsa type -1
 debug1: identity file /home/joe/.ssh/id_ecdsa-cert type -1
 debug1: Enabling compatibility mode for protocol 2.0
 debug1: Local version string SSH-2.0-OpenSSH_6.2p2 Ubuntu-6ubuntu0.1
 debug1: Remote protocol version 2.0, remote software version
 OpenSSH_5.5p1 Debian-6+squeeze4
 debug1: match: OpenSSH_5.5p1 Debian-6+squeeze4 pat OpenSSH_5*
 debug1: SSH2_MSG_KEXINIT sent
 debug1: SSH2_MSG_KEXINIT received
 debug1: kex: server-client aes128-ctr hmac-md5 none
 debug1: kex: client-server aes128-ctr hmac-md5 none
 debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent
 debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
 debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
 debug1: Server host key: RSA
 a7:05:f6:a5:02:ec:92:73:4a:0a:12:16:4c:11:e1:1c
 debug1: Host 'qgis.org' is known and matches the RSA host key.
 debug1: Found key in /home/joe/.ssh/known_hosts:1
 debug1: ssh_rsa_verify: signature correct
 debug1: SSH2_MSG_NEWKEYS sent
 debug1: expecting SSH2_MSG_NEWKEYS
 debug1: SSH2_MSG_NEWKEYS received
 debug1: Roaming not allowed by server
 debug1: SSH2_MSG_SERVICE_REQUEST sent
 debug1: SSH2_MSG_SERVICE_ACCEPT received
 debug1: Authentications that can continue: publickey,password
 debug1: Next authentication method: publickey
 debug1: Offering RSA public key: /home/joe/.ssh/id_rsa
 debug1: Authentications that can continue: publickey,password
 debug1: Trying private key: /home/joe/.ssh/id_dsa
 debug1: Trying private key: /home/joe/.ssh/id_ecdsa
 debug1: Next authentication method: password
 gito...@qgis.org's password:
 debug1: Authentications that can continue: publickey,password
 Permission denied, please try again.
 gito...@qgis.org's password:
 debug1: Authentications that can continue: publickey,password
 Permission denied, please try again.
 gito...@qgis.org's password:
 debug1: Authentications that can continue: publickey,password
 debug1: No more authentication methods to try.
 Permission denied (publickey,password).


 So I went to my account looking for my public keys at:
 http://hub.qgis.org/my/public_keys
 but my browser tells me page not found error

 anyone could help?

 thank you

 --
 Dott. Agr. Giuseppe De Marco
 RSPP settore ATECO 1
 Cell./Mobile: +39 3935041115
 Fax.: +39 0503869174
 PEC: giuseppe.de_ma...@epap.conafpec.it
 ___
 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] public key on hub.qgis.org problem

2014-03-25 Thread Gino Pirelli
ha sorry I did't understand you have your code in the hub.qgis.org git


On 25 March 2014 18:48, Giuseppe De Marco demarco.giuse...@gmail.comwrote:

 I guess so since you're telling me so let's say that I choose SCM -
 Git inside my hub.qgis.org
 account and name it my_plugin, then I would have to add this
 repository with git inside my local folder:

 git init
 git add .
 git commit -m 'init repo'
 git remote add origin gito...@qgis.org:my_plugin
 git push origin master

 and it should be working
 right or am I missing something?




 2014-03-25 18:33 GMT+01:00 Gino Pirelli lui...@gmail.com:
  I don't remember there is need of a key to upload plugins... am I wrong?
 
  git push origin master
  could be a problem related to you remote git repository configuration?
 
  ciao Luigi Pirelli
 
 
 
 
  On 25 March 2014 18:23, Giuseppe De Marco demarco.giuse...@gmail.com
  wrote:
 
  I was trying to upload a plugin version on hub.qgis.org
  after updating my rss key on laptop, and I was asked for a password
  after entering  $ git push origin master
 
  opening a terminal and issuing ssh -v gito...@qgis.org 
  I get
 
  OpenSSH_6.2p2 Ubuntu-6ubuntu0.1, OpenSSL 1.0.1e 11 Feb 2013
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug1: /etc/ssh/ssh_config line 19: Applying options for *
  debug1: Connecting to qgis.org [140.211.15.67] port 22.
  debug1: Connection established.
  debug1: identity file /home/joe/.ssh/id_rsa type 1
  debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
  debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
  debug1: identity file /home/joe/.ssh/id_rsa-cert type -1
  debug1: identity file /home/joe/.ssh/id_dsa type -1
  debug1: identity file /home/joe/.ssh/id_dsa-cert type -1
  debug1: identity file /home/joe/.ssh/id_ecdsa type -1
  debug1: identity file /home/joe/.ssh/id_ecdsa-cert type -1
  debug1: Enabling compatibility mode for protocol 2.0
  debug1: Local version string SSH-2.0-OpenSSH_6.2p2 Ubuntu-6ubuntu0.1
  debug1: Remote protocol version 2.0, remote software version
  OpenSSH_5.5p1 Debian-6+squeeze4
  debug1: match: OpenSSH_5.5p1 Debian-6+squeeze4 pat OpenSSH_5*
  debug1: SSH2_MSG_KEXINIT sent
  debug1: SSH2_MSG_KEXINIT received
  debug1: kex: server-client aes128-ctr hmac-md5 none
  debug1: kex: client-server aes128-ctr hmac-md5 none
  debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent
  debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
  debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
  debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
  debug1: Server host key: RSA
  a7:05:f6:a5:02:ec:92:73:4a:0a:12:16:4c:11:e1:1c
  debug1: Host 'qgis.org' is known and matches the RSA host key.
  debug1: Found key in /home/joe/.ssh/known_hosts:1
  debug1: ssh_rsa_verify: signature correct
  debug1: SSH2_MSG_NEWKEYS sent
  debug1: expecting SSH2_MSG_NEWKEYS
  debug1: SSH2_MSG_NEWKEYS received
  debug1: Roaming not allowed by server
  debug1: SSH2_MSG_SERVICE_REQUEST sent
  debug1: SSH2_MSG_SERVICE_ACCEPT received
  debug1: Authentications that can continue: publickey,password
  debug1: Next authentication method: publickey
  debug1: Offering RSA public key: /home/joe/.ssh/id_rsa
  debug1: Authentications that can continue: publickey,password
  debug1: Trying private key: /home/joe/.ssh/id_dsa
  debug1: Trying private key: /home/joe/.ssh/id_ecdsa
  debug1: Next authentication method: password
  gito...@qgis.org's password:
  debug1: Authentications that can continue: publickey,password
  Permission denied, please try again.
  gito...@qgis.org's password:
  debug1: Authentications that can continue: publickey,password
  Permission denied, please try again.
  gito...@qgis.org's password:
  debug1: Authentications that can continue: publickey,password
  debug1: No more authentication methods to try.
  Permission denied (publickey,password).
 
 
  So I went to my account looking for my public keys at:
  http://hub.qgis.org/my/public_keys
  but my browser tells me page not found error
 
  anyone could help?
 
  thank you
 
  --
  Dott. Agr. Giuseppe De Marco
  RSPP settore ATECO 1
  Cell./Mobile: +39 3935041115
  Fax.: +39 0503869174
  PEC: giuseppe.de_ma...@epap.conafpec.it
  ___
  Qgis-developer mailing list
  Qgis-developer@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-developer
 
 



 --
 Dott. Agr. Giuseppe De Marco
 RSPP settore ATECO 1
 Cell./Mobile: +39 3935041115
 Fax.: +39 0503869174
 PEC: giuseppe.de_ma...@epap.conafpec.it

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] PyQGIS: how to set Enable snapping on intersection option?

2014-03-21 Thread Gino Pirelli
checking the code I can find that ticking Enable snapping on intersection
checkbox activate this callback

void QgsSnappingDialog::on_cbxEnableIntersectionSnappingCheckBox_stateChanged(
int state )

{

  QgsProject::instance()-writeEntry( Digitizing,
/IntersectionSnapping, state == Qt::Checked );

}


writing the option in the project...


there's is a reason why it is not set in QSettings


Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)



On 20 March 2014 20:46, Gino Pirelli lui...@gmail.com wrote:

 Hi,

 I'm looking how to programmatically set on or off the snapping option:

 Enable snapping on intersection

 I can't find how! It seems not set in QGIS2.conf

 without setting this option the QgsSnapper.snapToBackgroundLayers(...)
 method doesn't return snap points.

 thank you,

 Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] master slow reading rasters?

2014-03-21 Thread Gino Pirelli
On 21 March 2014 12:42, Martin Dobias wonder...@gmail.com wrote:

 Yes this is a side effect of MTR. I have removed the downloading
 progress from status bar, because the situation is more complex now -
 there could be more such requests at the same time and the existing
 mechanism wasn't flexible enough to reflect that. I am thinking about
 having some better progress reporting, maybe something to discuss at
 the hackfest.


I don't know the progress on refactoring LegendInterface by Hugo, but it
could be the place
where to show progress bar for each layer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] PyQGIS: how to set Enable snapping on intersection option?

2014-03-21 Thread Gino Pirelli
I solved adding the same peace of code of the C++ apply method

in my case the code is

project = QgsProject.instance()
layerSnappingList = [layer1Id, later2Id]
layerSnappingEnabledList = [enabled, enabled]
layerSnappingToleranceUnitList = [0, 0]
layerSnapToList = [to_vertex, to_vertex]
layerSnappingToleranceList = [0.30, 0.30]
project.writeEntry(Digitizing, /IntersectionSnapping,
Qt.Checked)
project.writeEntry(Digitizing, /LayerSnappingList,
layerSnappingList)
project.writeEntry(Digitizing, /LayerSnappingEnabledList,
layerSnappingEnabledList)
project.writeEntry(Digitizing, /LayerSnappingToleranceUnitList,
layerSnappingToleranceUnitList)
project.writeEntry(Digitizing, /LayerSnapToList,
layerSnapToList)
project.writeEntry(Digitizing, /LayerSnappingToleranceList,
layerSnappingToleranceList)



On 21 March 2014 10:39, Gino Pirelli lui...@gmail.com wrote:

 thanks Jacob

 seems it works setting all QgsProject parameters as in:

 void QgsSnappingDialog::apply()


 My doubt is that probably should be useful to add a default option on 
 snapping/digitinzing as snap on intersection background getting all layer 
 in background by default.


 I'll try to propose this new config option in Vienna next week... the main 
 reason to have a default behavior is that if you add a new layer I expect 
 snapping should work also with the new layer, but It doesn't work if no one 
 set list of snapping layer in the QgsProject (doing apply in SnappingOptions)


 thank you



 Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)




 On 21 March 2014 10:16, Jakob Lanstorp jlanst...@gmail.com wrote:

 Looks like this setting is not exposed in the API of QgsSnapper or
 QSettings:


 http://qgis.org/api/2.2/classQgsSnapper.html#addd2b16ecac193e56f7bdedd6b78ac59
 
 http://qgis.org/api/2.2/classQgsSnapper.html#addd2b16ecac193e56f7bdedd6b78ac59
 

 and

 from PyQt4.QtCore import QSettings
 print QSettings().allKeys()




 -
 Jakob Lanstorp
 --
 View this message in context:
 http://osgeo-org.1560.x6.nabble.com/PyQGIS-how-to-set-Enable-snapping-on-intersection-option-tp5130203p5130271.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



___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Fwd: A pipinstall plugin is possible? First: What's the difference between the the Osgeo4w Shell?

2014-03-06 Thread Gino Pirelli
or we can manage a
- light way (light in the plugin point of view) with simple requirement.txt
(or whatever)
or a
- robust and idependent way managing virtualenv
or a
- kaos way mixing :)

Luigi Pirelli


On 6 March 2014 13:18, Tim Sutton li...@linfiniti.com wrote:

 Hi

 The only gotcha to this is that different plugins might require different
 versions of dependencies. We also toyed around in the past with the idea of
 each plugin having its own virtualenv for deps and then linking in the QGIS
 provided site_packages dir into that virtualenv too.

 Regards

 Tim


 On Thu, Mar 6, 2014 at 1:56 PM, Tom Kralidis tomkrali...@gmail.comwrote:



 On Thu, 6 Mar 2014, G. Allegri wrote:

  Date: Thu, 6 Mar 2014 02:31:41 -0800
 From: G. Allegri gioha...@gmail.com
 To: Nathan Woodrow madman...@gmail.com
 Cc: qgis-developer List qgis-developer@lists.osgeo.org
 Subject: Re: [Qgis-developer] Fwd: A pipinstall plugin is possible?
 First:
 What's the difference between the the Osgeo4w Shell?



 Windows doesn't ship with any version of Python. Yay Windows!  So we
 bundle our own.  I personally don't mind this so much because it's
 easier
 to control the setup if we bundle it.

 The main thing here is just including pip and easy_install in all the
 windows installs, standalone and osgeo4w.  Jurgen has told me that
 easy_install is included in the 64 bit versions but not 32 bit
 versions. Is
 that correct Jurgen?

 If pip is included we can easily have plugins tell us what they need and
 we can install them.



 +1, this is exactly what I was imaging.
 A requirements.txt for pip would be all that a dev should write.


 +1, this would be great (we currently manage and bundle deps in MetaSearch
 as a workaround).

 - we would have to make sure the requirements file is standardized
   (others may have different / additional ones, like requirements-dev.txt,
   pip-requirements.txt, etc.).

 - for MetaSearch, the requirements.txt file never makes it to the QGIS
   runtime, so plugin providers would need to make sure it does


 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer




 --
 Tim Sutton - QGIS Project Steering Committee Member
 ==
 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.

 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] SQL Injection vulnerability

2014-03-06 Thread Gino Pirelli
Thank you Jürgen, I feel safer ;) but... I can't figure out how postgres
quote_* methods manage -- Comments or String without Quotes that can
break SQL statement or introduce elements that can't be escaped...

I would appreciate opinions by DB experts because looking around all says
that escaping it's not enough.

Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)



On 6 March 2014 16:35, Jürgen E. j...@norbit.de wrote:

 Hi Gino,

 On Thu, 06. Mar 2014 at 12:10:02 +0100, Gino Pirelli wrote:
  but they quote only ' or \ so they are -not- enough to a complete sql
  injection protection [4]

 Um, the link doesn't clearly point out what else to do.

  every DB have it's internal functions to manage this cases, but better
  use parametrized queries as in many parts of the provider... but not
  in all parts.

 [1] looks similar.  It duplicates all backslashes not just those in front
 of a
 double quote and prepends a E to strings with backslashes.  7829e7a now
 does it
 the same way.



 Jürgen

 [1]
 http://doxygen.postgresql.org/fe-exec_8c.html#a01c75d019597e76bc041716f27caf564

 --
 Jürgen E. Fischer norBIT GmbH   Tel. +49-4931-918175-31
 Dipl.-Inf. (FH)   Rheinstraße 13Fax. +49-4931-918175-50
 Software Engineer D-26506 Norden
 http://www.norbit.de
 QGIS PSC member (RM)  Germany  IRC: jef on FreeNode

 --
 norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
 Rheinstrasse 13, 26506 Norden
 GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

 ___
 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] SQL Injection vulnerability

2014-03-06 Thread Gino Pirelli
Hi alessandro

this is inside provider... I suppose that qgis server uses provider as
Desktop

Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)


On 6 March 2014 18:59, Alessandro Pasotti apaso...@gmail.com wrote:

 2014-03-06 18:51 GMT+01:00 Gino Pirelli lui...@gmail.com:

 Thank you Jürgen, I feel safer ;) but... I can't figure out how postgres
 quote_* methods manage -- Comments or String without Quotes that can
 break SQL statement or introduce elements that can't be escaped...

 I would appreciate opinions by DB experts because looking around all says
 that escaping it's not enough.

 Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)



 On 6 March 2014 16:35, Jürgen E. j...@norbit.de wrote:

 Hi Gino,

 On Thu, 06. Mar 2014 at 12:10:02 +0100, Gino Pirelli wrote:
  but they quote only ' or \ so they are -not- enough to a complete sql
  injection protection [4]

 Um, the link doesn't clearly point out what else to do.

  every DB have it's internal functions to manage this cases, but better
  use parametrized queries as in many parts of the provider... but not
  in all parts.

 [1] looks similar.  It duplicates all backslashes not just those in
 front of a
 double quote and prepends a E to strings with backslashes.  7829e7a now
 does it
 the same way.



 Hi Gino,

 are you worried about functions exposed by QGIS Mapserver or by the
 desktop?

 --
 Alessandro Pasotti
 w3:   www.itopen.it

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] IntraMaps Roam first release - Windows QGIS Data Collection

2014-03-06 Thread Gino Pirelli
great Nathan... this can be a good platform where to insert a future mobile
use for Geosisma

can we plan to transform/fork/ it in a sort of framework? I'm going to test
it :)


On 7 March 2014 08:09, Nathan Woodrow madman...@gmail.com wrote:


 On Fri, Mar 7, 2014 at 5:01 PM, Paolo Cavallini cavall...@faunalia.itwrote:

 thanks for this. Why is this for Win only?


 There isn't really a lot of Windows only things in the code itself, well
 nothing that can't be abstracted away, but I mainly dev on Windows and so
 are most of our clients so that was our first priority.  The build scripts
 should be flexible enough to use something something py2so or py2app for
 Linux and OS X.  Happy for a pull request if people got it working on those
 platforms, I just have more experience on Windows and little time :)  It
 can also run from the src folder but might need some tweaks for a non
 windows setup i.e I assume a OSGeo4W folder setup for paths, but that is
 just a if statement to change.

 - Nathan

 ___
 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] New feature: RFC saving style and ui in Spatialite

2014-03-03 Thread Gino Pirelli
regarding this feature I produced PullRequest:

https://github.com/qgis/QGIS/pull/1221

thank you

Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)

On 28 February 2014 15:58, Gino Pirelli lui...@gmail.com wrote:

 regarding how to implement saving SLD in spatialite i downgraded my
 previous using simple text field... avoiding blob or XmlBlob (SL4.1)

 the reason is to allow more simpler interoparability reading back sld.
 Using directly text I can read it's value directly. values are utf8
 enconded and reading them outside qgis context (I received some comments
 about this) it's simple to understand that text value has a locale coding.

 - I decided to avoid sqlite blob because of to simplify interoperability
 avoiding blob decoding step that it's less uman natural
 - I decided to avoid XmlBlob format because it's available only with SL 
 4.1. I plan to use this data type when SL 4.1 will be more used. At the
 moment I preferred to allow this functionality available in all platform
 and distribution in witch  qgis is available and in some of them (e.g.
 debian wheezy, Ubuntu 13) SL 4.1 it's not packaged.
 - I hope to add the same functions to the the new GeoPackage, but this
 it's not still planned.

 please let me know if there are comments

 code is here:
 https://github.com/luipir/QGIS/tree/spatialite-savestyle

 diff is here:
 https://github.com/luipir/QGIS/compare/spatialite-savestyle

 thank you,

 Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)


 On 5 February 2014 13:18, Gino Pirelli lui...@gmail.com wrote:

 Hi,

 I'm developing a new feature to save SLD and ui in Spatialite provider in
 the same way this function is available for postgres.

 this function developed for Faunalia is funded by ARPA Piemonte
 fork is available at:
 https://github.com/luipir/QGIS/tree/spatialite-savestyle
 and actual modification are localized in this
 commit: f058bea1fe51116b8231eb5c1ca4faee485c38b2

 there are some question about how to develop it and are related how to
 manage XML in a sqlite/spatialite table.

 this code derive by the postgres provider code where QML and UI xmls are
 recorded in a XML column. XML is a postgres type. This type is not
 available in SQlite but it's available in SL 4.1 (called XmlBlob [1])
 In this preliminary commit XML is saved in a text column, but saving XML
 as a blog (blob type in sqlite or XmlBlob in SL) have the advantage to
 avoid all encoding problems.

 so the question is... sqlite blob or spatialite xmlbob?

 Blob type can't allow XML parsing using SQL queries
 XmlBlob allows this (using libxml2)

 Blob type is sqlite native type
 XmlBlob can be used only with SL 4.1

 My preference is to use native data type Blob. What's you opinion about
 blob/ xmlblob or whatever

 regards,

 Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)

 [1] https://www.gaia-gis.it/fossil/libspatialite/wiki?name=XmlBlob-intro



___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] How can I get the layer path and directory name from a comboBox?

2014-03-03 Thread Gino Pirelli
all info in QgsMapLayer:
http://qgis.org/api/classQgsMapLayer.html

in your case: layer.source()


On 3 March 2014 16:43, Stefano Masera stefano.mas...@arpa.piemonte.itwrote:

 Hi list,

 I have a plugin where I choose a layer from a comboBox.

 How can I get the layer path and directory name in the code?

 For example, in order to get the layer name and use it in the code, I use:

 layer_name = ftools_utils.getVectorLayerByName(self.comboBox.currentText())

 Is there something to get the layer path and directory name?

 Thanks.

 Stefano


 ___
 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] New feature: RFC saving style and ui in Spatialite

2014-02-28 Thread Gino Pirelli
regarding how to implement saving SLD in spatialite i downgraded my
previous using simple text field... avoiding blob or XmlBlob (SL4.1)

the reason is to allow more simpler interoparability reading back sld.
Using directly text I can read it's value directly. values are utf8
enconded and reading them outside qgis context (I received some comments
about this) it's simple to understand that text value has a locale coding.

- I decided to avoid sqlite blob because of to simplify interoperability
avoiding blob decoding step that it's less uman natural
- I decided to avoid XmlBlob format because it's available only with SL 
4.1. I plan to use this data type when SL 4.1 will be more used. At the
moment I preferred to allow this functionality available in all platform
and distribution in witch  qgis is available and in some of them (e.g.
debian wheezy, Ubuntu 13) SL 4.1 it's not packaged.
- I hope to add the same functions to the the new GeoPackage, but this it's
not still planned.

please let me know if there are comments

code is here:
https://github.com/luipir/QGIS/tree/spatialite-savestyle

diff is here:
https://github.com/luipir/QGIS/compare/spatialite-savestyle

thank you,

Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)


On 5 February 2014 13:18, Gino Pirelli lui...@gmail.com wrote:

 Hi,

 I'm developing a new feature to save SLD and ui in Spatialite provider in
 the same way this function is available for postgres.

 this function developed for Faunalia is funded by ARPA Piemonte
 fork is available at:
 https://github.com/luipir/QGIS/tree/spatialite-savestyle
 and actual modification are localized in this
 commit: f058bea1fe51116b8231eb5c1ca4faee485c38b2

 there are some question about how to develop it and are related how to
 manage XML in a sqlite/spatialite table.

 this code derive by the postgres provider code where QML and UI xmls are
 recorded in a XML column. XML is a postgres type. This type is not
 available in SQlite but it's available in SL 4.1 (called XmlBlob [1])
 In this preliminary commit XML is saved in a text column, but saving XML
 as a blog (blob type in sqlite or XmlBlob in SL) have the advantage to
 avoid all encoding problems.

 so the question is... sqlite blob or spatialite xmlbob?

 Blob type can't allow XML parsing using SQL queries
 XmlBlob allows this (using libxml2)

 Blob type is sqlite native type
 XmlBlob can be used only with SL 4.1

 My preference is to use native data type Blob. What's you opinion about
 blob/ xmlblob or whatever

 regards,

 Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)

 [1] https://www.gaia-gis.it/fossil/libspatialite/wiki?name=XmlBlob-intro


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] WMS Legend plugin

2014-02-19 Thread Gino Pirelli
Hi,

CSI piemonte was thinking to port it, but we developped a better core
solution integrating in the legend (only if legedGraphic capability is
available).

but if, for some reason, you still interested in porting
CSIWMSLegendhttps://plugins.qgis.org/plugins/CSIWMSLegend/ plugin
we can arrange a solution.

thank you, Luigi Pirelli


On 20 February 2014 03:57, Brent Wood pcr...@pcreso.com wrote:


 This only supports QGIS v1.8, is anyone interested in being paid to port
 it or develop a similar plugin for 2.0 to production status?

 https://plugins.qgis.org/plugins/CSIWMSLegend/

 Brent Wood

 ___
 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] Plugin approval

2014-02-11 Thread Gino Pirelli
probably we've to find a way to avoid situations like this... who's in
charge to accept or review plugins?

ciao Luigi Pirelli


On 11 February 2014 12:15, Francisco Pérez Sampayo fpsamp...@gmail.comwrote:

 Hi guys.

 I uploaded my ZoomRC plugin two months ago with updates to Qgis 2.0 and
 i still waiting to his approval. Can you indicate if is all right?

 Thanks!

 --
 Francisco Pérez Sampayo

 ___
 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] one email address for plugin approvers

2014-02-11 Thread Gino Pirelli
OT, but related :)

I would appreciate a field more in Metadata... a maintainer(s) optional
section. It's not strictly necessary because of trac, but a lot of time the
first Author of the plugin is disappeared or can't invest time in the
plugin, but she(he) still receives issues or mails from users.
my 2c

regards, Luigi Pirelli


On 12 February 2014 08:12, Alessandro Pasotti apaso...@gmail.com wrote:

 2014-02-11 22:50 GMT+01:00 Richard Duivenvoorde rdmaili...@duif.net:

 Hi Devs,

 tl;dr; can we make an email address: approv...@qgis.org for which an
 email can be sent to all approvers?

 who can arrange this?


 I'm busy weeding the long list of unapproved plugins.

 Some of them are so old the I just sent the author an email if it is ok
 to remove it.

 Other have some older versions unapproved, so I ask to either approve
 them or delete these versions.

 Others just have been added pretty recently, but miss certain metadata
 information and did not get attention from an approver.

 I propose to make homepage, repository and tracker mandatory properties
 too (at least for approval). So we have to fix this in:


 http://www.qgis.org/en/docs/pyqgis_developer_cookbook/releasing.html#validation
 and

 http://www.qgis.org/en/docs/pyqgis_developer_cookbook/plugins.html#plugin-metadata-table



 If we enforce Homepage, we also have to pay attention  to the link content:

 this is a meaningless example:

 http://plugins.qgis.org/plugins/QSpatialReport/ (homepage link broken and
 even if it were not broken, still unrelated with the plugin since it's the
 company homepage)

 I think that the plugin home page should be a page about the plugin itself.

 There are many others like this that I can't recall now.


 --
 Alessandro Pasotti
 w3:   www.itopen.it

 ___
 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] Custom Identify Results Window

2014-02-10 Thread Gino Pirelli
QgsMapTool is available in PyQGIS:

http://www.qgis.org/en/docs/pyqgis_developer_cookbook/canvas.html#writing-custom-map-tools


On 10 February 2014 14:49, Josua S josh-t...@hotmail.com wrote:

 Hello Matthias

 Thank you very much for your quick answer! I have a question left: Is it
 possible to inherit the identify maptool and use it only using Python? Or
 does this have to be done in C++?

 Josua


 
  Date: Mon, 10 Feb 2014 14:39:59 +0100
  From: matthias.k...@gmx.ch
  To: josh-t...@hotmail.com
  CC: qgis-developer@lists.osgeo.org
  Subject: Re: [Qgis-developer] Custom Identify Results Window
 
  Hi Josua,
 
  I don't think the possibility is available OOTB yet, but it should be
  straightforward to create your own maptool which inherits from the
  identify maptool and uses a QgsDualView with a request (or filter)
  limiting the available features to only the relevant feature ids. This
  should get you a list of all features and their form when selected.
 
  Would be nice to be see this in core as well in the future.
 
  Best
  Matthias
 
  On Mon 10 Feb 2014 02:29:37 PM CET, Josua S wrote:
  Hello
 
  I am working on a QGIS Plugin with a touch-optimized GUI. So it is
 actually very useful to be able to create custom feature forms. However if
 I use the Identify tool and there are two or more features near together,
 QGIS does not show my feature form but a Identify Results window
 containing all the features nearby. So my question is: Is there a
 possibility to create a custom Identify Results window with Python if
 there are several features? Or is there a setting to change its behavior?
 Thank you very much for your help.
 
  Josua
  ___
  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] New feature: RFC saving style and ui in Spatialite

2014-02-05 Thread Gino Pirelli
Hi,

I'm developing a new feature to save SLD and ui in Spatialite provider in
the same way this function is available for postgres.

this function developed for Faunalia is funded by ARPA Piemonte
fork is available at:
https://github.com/luipir/QGIS/tree/spatialite-savestyle
and actual modification are localized in this
commit: f058bea1fe51116b8231eb5c1ca4faee485c38b2

there are some question about how to develop it and are related how to
manage XML in a sqlite/spatialite table.

this code derive by the postgres provider code where QML and UI xmls are
recorded in a XML column. XML is a postgres type. This type is not
available in SQlite but it's available in SL 4.1 (called XmlBlob [1])
In this preliminary commit XML is saved in a text column, but saving XML as
a blog (blob type in sqlite or XmlBlob in SL) have the advantage to avoid
all encoding problems.

so the question is... sqlite blob or spatialite xmlbob?

Blob type can't allow XML parsing using SQL queries
XmlBlob allows this (using libxml2)

Blob type is sqlite native type
XmlBlob can be used only with SL 4.1

My preference is to use native data type Blob. What's you opinion about
blob/ xmlblob or whatever

regards,

Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)

[1] https://www.gaia-gis.it/fossil/libspatialite/wiki?name=XmlBlob-intro
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] New feature: RFC saving style and ui in Spatialite

2014-02-05 Thread Gino Pirelli
On 5 February 2014 22:29, aperi2007 aperi2...@gmail.com wrote:

  Also, AFAIK the goal of Luigi is storing in the spatialite the SLD
 finalized to rendering the same dataset stored in the spatialite,
 not to store SLD for general usage.


correct
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Vienna hotel

2014-01-29 Thread Gino Pirelli
+1 I can share but I haven't booked yet


On 29 January 2014 11:49, Paolo Cavallini cavall...@faunalia.it wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi all.
 Apparently single rooms are sold out @kindl. Should we share rooms?
 All the best.
 - --
 Paolo Cavallini - www.faunalia.eu
 Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1
 Comment: Using GnuPG with Icedove - http://www.enigmail.net/

 iEYEARECAAYFAlLo3NYACgkQ/NedwLUzIr5tfACdHlcvcAmMbIo6n1kp3aI6g7dn
 siMAn2Wq+jD6A/Va/u51TF0NKqKBPUIu
 =1F+y
 -END PGP SIGNATURE-
 ___
 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] Help for Feature #8925

2014-01-28 Thread Gino Pirelli
On 29 January 2014 07:42, Kevin Fehrenbach kevinfehrenb...@yahoo.de wrote:

 #8925


probably you can start following all SLD methods in: QgsMapLayer

ciao Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] next Hackfest: Vienna

2014-01-25 Thread Gino Pirelli
they answered yesterday after I wrote them again... thank you

Luigi Pirelli


On 24 January 2014 16:23, Stephan Meißl step...@meissl.name wrote:

 Hi Luigi,

 strange, they responded promptly before. Please let me know if you don't
 get an answer in reasonable time. I'll call then to check.

 cu
 Stephan


 On 01/24/2014 04:07 PM, Gino Pirelli wrote:
  I wrote to Kindl  Hotel (as suggested in the wiki) but no answer :(
 
  I can share or I want to share double room.
 
  ciao Luigi Pirelli
 
 
  On 24 January 2014 10:58, Andreas Neumann a.neum...@carto.net
  mailto:a.neum...@carto.net wrote:
 
  will also try to book a the Kindl.
 
  Andreas
 
  Am 24.01.2014 10:38, schrieb Radim Blazek:
   Can we decide a hotel?
  
   + 1 for Kindl
  
   Radim
  
   On Sat, Dec 14, 2013 at 4:37 PM, Richard Duivenvoorde
   rdmaili...@duif.net mailto:rdmaili...@duif.net wrote:
   Hi Devs,
  
   after last PSC meeting we decided to go to Vienna for the next
 QGIS
   Hackfest.
  
   This makes it possible for QGIS devs to spar a little with the
 Osgeo
   C-tribe devs, because Stephan is organizing an Osgeo Code sprint
  there.
  
   Because there is already an osgeo wiki page [0] we decided to not
  create
   one of our own, but reuse that resource. For most questions:
 please
   consult that page first: [0]
  
   So: if you want to join: please add your name to te participants
  list in
   the wiki page.
  
   Normally the QGIS hackfests are organized by some local
  organizer, often
   together with some (local/national) sponsors.
   Though we are joining the Code sprint, it will be VERY helpfull if
   people from our community would give a hand to Stephan for the
   organisation.
   Please email the PSC or Stephan for this.
  
  
   Regards,
  
   Richard Duivenvoorde
  
   [0] http://wiki.osgeo.org/wiki/Vienna_Code_Sprint_2014

 ___
 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] Bug in DB Manager versioning?

2014-01-25 Thread Gino Pirelli
it works on my compiled version 8b53001

do you have e more detailed test case?

ciao

Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)




On 24 January 2014 16:40, Paolo Cavallini cavall...@faunalia.it wrote:

 Hi all.
 Activating versioning in DB Manager throws an error:
 language SQL does not exist
 Does anybody confirm?
 Thanks.
 --
 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

Re: [Qgis-developer] Error in DB Manager reading toplogy.layer

2014-01-25 Thread Gino Pirelli
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

Re: [Qgis-developer] Visual changelog for QGIS 2.2

2014-01-24 Thread Gino Pirelli
thank you Tim, your version it's really better :)


On 23 January 2014 23:13, Tim Sutton li...@linfiniti.com wrote:

 Thanks Gino  - I will make sure it is included, I just need to edit the
 english a little.

 Regards

 Tim


 On Thu, Jan 23, 2014 at 12:48 PM, Gino Pirelli lui...@gmail.com wrote:

 ok... erased


 On 23 January 2014 10:53, Marco Hugentobler 
 marco.hugentob...@sourcepole.ch wrote:

  I set also disclaiming about founder of this feature, but I don't
 know if this is in the entry style... I can erase it to be uniform with
 other entries.

 Yes, please erase it. The other entries don't mention the funders as
 well.

 Regards,
 Marco


 On 23.01.2014 08:56, Gino Pirelli wrote:

 I tim,

  just added entry about WMS Legend... I set also disclaiming about
 founder of this feature, but I don't know if this is in the entry
 style... I can erase it to be uniform with other entries.


 On 30 December 2013 05:41, Tim Sutton li...@linfiniti.com wrote:

 Hi All

  Over the last couple of weeks, I have started compiling a list of
 interesting new features for the visual changelog for QGIS 2.2. Could I
 invite others to add entries there too. You can either do it directly on
 the changelog site [1] (you need to create yourself a login first) or send
 me an email with the following info:

  * Category of feature
 * Title for new features
 * Feature description in markdown or plain text
 * A screenshot if possible (it is a *visual* changelog)
 * Your full name for the image credits.

  Please take a look at the existing entries to ensure that you are not
 duplicating work.

  @Nyall maybe it would be nice to get another entry for composer
 summarising all the other improvements you have made, I know I haven't done
 the work you have done justice in the list so far.

  [1] http://changelog.linfiniti.com/qgis/version/21/

  Thanks

  --
 Tim Sutton - QGIS Project Steering Committee Member
 ==
 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.

 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 
 listQgis-developer@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/qgis-developer



 --
 Dr. Marco Hugentobler
 Sourcepole -  Linux  Open Source Solutions
 Weberstrasse 5, CH-8004 Zürich, switzerlandmarco.hugentob...@sourcepole.ch 
 http://www.sourcepole.ch
 Technical Advisor QGIS Project Steering Committee


 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer



 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer




 --
 Tim Sutton - QGIS Project Steering Committee Member
 ==
 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.

 Irc: timlinux on #qgis at freenode.net
 ==

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] next Hackfest: Vienna

2014-01-24 Thread Gino Pirelli
I wrote to Kindl  Hotel (as suggested in the wiki) but no answer :(

I can share or I want to share double room.

ciao Luigi Pirelli


On 24 January 2014 10:58, Andreas Neumann a.neum...@carto.net wrote:

 will also try to book a the Kindl.

 Andreas

 Am 24.01.2014 10:38, schrieb Radim Blazek:
  Can we decide a hotel?
 
  + 1 for Kindl
 
  Radim
 
  On Sat, Dec 14, 2013 at 4:37 PM, Richard Duivenvoorde
  rdmaili...@duif.net wrote:
  Hi Devs,
 
  after last PSC meeting we decided to go to Vienna for the next QGIS
  Hackfest.
 
  This makes it possible for QGIS devs to spar a little with the Osgeo
  C-tribe devs, because Stephan is organizing an Osgeo Code sprint there.
 
  Because there is already an osgeo wiki page [0] we decided to not create
  one of our own, but reuse that resource. For most questions: please
  consult that page first: [0]
 
  So: if you want to join: please add your name to te participants list in
  the wiki page.
 
  Normally the QGIS hackfests are organized by some local organizer, often
  together with some (local/national) sponsors.
  Though we are joining the Code sprint, it will be VERY helpfull if
  people from our community would give a hand to Stephan for the
  organisation.
  Please email the PSC or Stephan for this.
 
 
  Regards,
 
  Richard Duivenvoorde
 
  [0] http://wiki.osgeo.org/wiki/Vienna_Code_Sprint_2014
  ___
  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

Re: [Qgis-developer] Visual changelog for QGIS 2.2

2014-01-23 Thread Gino Pirelli
ok... erased


On 23 January 2014 10:53, Marco Hugentobler marco.hugentob...@sourcepole.ch
 wrote:

  I set also disclaiming about founder of this feature, but I don't know
 if this is in the entry style... I can erase it to be uniform with other
 entries.

 Yes, please erase it. The other entries don't mention the funders as well.

 Regards,
 Marco


 On 23.01.2014 08:56, Gino Pirelli wrote:

 I tim,

  just added entry about WMS Legend... I set also disclaiming about
 founder of this feature, but I don't know if this is in the entry
 style... I can erase it to be uniform with other entries.


 On 30 December 2013 05:41, Tim Sutton li...@linfiniti.com wrote:

 Hi All

  Over the last couple of weeks, I have started compiling a list of
 interesting new features for the visual changelog for QGIS 2.2. Could I
 invite others to add entries there too. You can either do it directly on
 the changelog site [1] (you need to create yourself a login first) or send
 me an email with the following info:

  * Category of feature
 * Title for new features
 * Feature description in markdown or plain text
 * A screenshot if possible (it is a *visual* changelog)
 * Your full name for the image credits.

  Please take a look at the existing entries to ensure that you are not
 duplicating work.

  @Nyall maybe it would be nice to get another entry for composer
 summarising all the other improvements you have made, I know I haven't done
 the work you have done justice in the list so far.

  [1] http://changelog.linfiniti.com/qgis/version/21/

  Thanks

  --
 Tim Sutton - QGIS Project Steering Committee Member
 ==
 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.

 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 
 listQgis-developer@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/qgis-developer



 --
 Dr. Marco Hugentobler
 Sourcepole -  Linux  Open Source Solutions
 Weberstrasse 5, CH-8004 Zürich, switzerlandmarco.hugentob...@sourcepole.ch 
 http://www.sourcepole.ch
 Technical Advisor QGIS Project Steering Committee


 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Visual changelog for QGIS 2.2

2014-01-22 Thread Gino Pirelli
I tim,

just added entry about WMS Legend... I set also disclaiming about founder
of this feature, but I don't know if this is in the entry style... I can
erase it to be uniform with other entries.


On 30 December 2013 05:41, Tim Sutton li...@linfiniti.com wrote:

 Hi All

 Over the last couple of weeks, I have started compiling a list of
 interesting new features for the visual changelog for QGIS 2.2. Could I
 invite others to add entries there too. You can either do it directly on
 the changelog site [1] (you need to create yourself a login first) or send
 me an email with the following info:

 * Category of feature
 * Title for new features
 * Feature description in markdown or plain text
 * A screenshot if possible (it is a *visual* changelog)
 * Your full name for the image credits.

 Please take a look at the existing entries to ensure that you are not
 duplicating work.

 @Nyall maybe it would be nice to get another entry for composer
 summarising all the other improvements you have made, I know I haven't done
 the work you have done justice in the list so far.

 [1] http://changelog.linfiniti.com/qgis/version/21/

 Thanks

 --
 Tim Sutton - QGIS Project Steering Committee Member
 ==
 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.

 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] Make valid in master

2014-01-15 Thread Gino Pirelli
last merged pull request allows the provider works on OSX

ciao Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)


On 16 January 2014 07:35, Paolo Cavallini cavall...@faunalia.it wrote:

 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

Re: [Qgis-developer] Qgis2threejs suggestions...

2014-01-08 Thread Gino Pirelli
I've no time now to to test plugin, but my recent experience creating a
complex plugin [1] where are interacting qgis-python
plugin-QtWebView(based on QWebKit or other rendering engine), let me say
that should be a great improvement if 3d is displayed in a QWebView
allowing interaction (signal and data exchange) with qgis and the 3d view.

my plugin was inspired by a secret work that a friend did in Brighton
hackfest... a really simple plugin to show data in D3... but he never
published it :(... that ideas are applied in my plugin, but mine is
something really complex and without didactic purpose.

 ciao ginetto

[1] still in development but already stable: rt_geosisma_offline in
faunalia repo or https://github.com/faunalia/rt_geosisma_offline


On 7 January 2014 23:18, G. Allegri gioha...@gmail.com wrote:


 
   Then, with the new year, I had an idea: what do you think of a QT
 window
   inside QGIS, which displays the 3D html page ?
  
   Could it be doable ?   Do you have just tested ?
 
  Interesting, but I have not tested it yet.
 
 
  I tested now, but I had:
 
  Sorry, your browser doesn't seem to support WebGL
 
  :(

 I've  been following the evolution of WebGL support by Webkit since a lot
 of time. Yet it's supported on few platforms, while it would require a
 custom build to enable it in many others (with high chance to not
 succeed!).
 For the moment it doesn't seem to be an option for a wide adoption...

 A positive note is the growing support on mobile browsers. Here a
 screenshot on my Nexus with Firefox:

 https://www.dropbox.com/s/couti1041gx2f5m/13891324843560.jpg

 Touch navigation workd smoothly.

 Thanks Minoru for this plugin. I had planned to develop something similar.
 Now I will move to your code and (hopefully) I will try to contribute to it
 ;)

 giovanni

 ___
 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] What about Phonon.so on MacOSX ?

2013-12-18 Thread Gino Pirelli
http://hub.qgis.org/issues/9213


On 19 December 2013 06:16, KAMAL deep kamaldeepchi...@gmail.com wrote:

 Hello all,

 i hav been trying to execute globe plugin in qgis 2.0 on windows7 using
 OSGEO4W,but it is throwing bad allocation error .anyone pls help out to
 resolve this.

 regards


 On Mon, Dec 16, 2013 at 12:54 PM, Geo DrinX geodr...@gmail.com wrote:

 Hello all,


 installing  Video UAV Tracker  plugin for QGis 2.0.1  on MacOSX  I had
 an error message referring to phonon.so, that seems not installed.


 Someone knows how to solve it ?


 Thank you in advance

 Roberto

 ___
 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

Re: [Qgis-developer] QGIS game (for fun)?

2013-12-15 Thread Gino Pirelli
+1 :)

should be a good way to introduce gis at school. Some of the Italian local
chapter worked in projects involving (g)foss in didactic... A.furieri (mr.
spatialite) did a project to explain gfoss at school (I don't know exatly
how it was).

Some friends asked me to explain GFOSS at school, and I've serious problem
how to approch it in a firendly way.

let us/me know,

ciao Ginetto




On 15 December 2013 13:50, Stefan Keller sfkel...@gmail.com wrote:

 Hi,

 Did anybody ever think about implementing a game (as PyQGIS Plugin) for
 pure fun  distraction - but also as gamified element to lower entry
 barriers?
 I'm collecting ideas here: http://giswiki.hsr.ch/QGIS_Game

 --Stefan

 ___
 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] Customize QAction in legend menu... howto?

2013-12-15 Thread Gino Pirelli
Hi

I can't find a python solution how to customize actions shown in the legend
menu opende using right click button

QAction registered in the QgsLegend can be retrieved using method:

QList LegendLayerAction QgsLegend::legendLayerActions(
QgsMapLayer::LayerType type ) const;

and the I can use iface.legendInterface().removeLegendLayerAction(QAction)

but this method is not available in QgsLegendInterface.

Other way is to get QAction that is listed in iface.action* and then
use removeLegendLayerAction, but not all QAction seems available in iface
and none in legendInterface(). e.g How to remove Remove QAction in this
menu?
iface.actionRemoveLayer() refer only to Remove layer QAction in layer
menu.

could be useful add QgsLegend::legendLayerActions to api to allow deep
customization?

thanks, Luigi Pirelli
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Single-file PyQGIS Cookbook

2013-12-12 Thread Gino Pirelli
http://docs.qgis.org/2.0/pdf


On 11 December 2013 22:37, Lee Hachadoorian lee.hachadooria...@gmail.comwrote:

 Is there a single-file version of the PyQGIS Developer Cookbook anywhere?
 Single-file HTML, EPUB, Kindle/MOBI, or PDF.

 Thanks,
 --Lee


 --
 Lee Hachadoorian
 Asst Professor of 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

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] W*S obtain only the server url

2013-12-08 Thread Gino Pirelli
+1


On 7 December 2013 17:35, G. Allegri gioha...@gmail.com wrote:

 What about using urlparse: http://docs.python.org/2/library/urlparse.html?


 2013/12/7 Gino Pirelli lui...@gmail.com

 Hi Luca

 usign QT you can:

 create QUrl and then query url with it's method  queryItemValue

 probably there's a pure python method... that it's always better reducing
 QT coupling. If you find a pure python way... please post it.

 ciao Ginetto


 On 6 December 2013 10:47, Luca Delucchi lucadel...@gmail.com wrote:

 Hi everybody,

 I have a WFS layer and I would like to obtain the server url using
 pyqgis.
 Now I'm using layer.source(), but it return the entire url with all
 the parameters.
 Is there a way to abtain only the server url?
 When QGIS create the string for the request it append every time
 REQUEST parameter for first? Could I split the string using it?

 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



 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer




 --
 Giovanni Allegri
 http://about.me/giovanniallegri
 blog: http://blog.spaziogis.it
 GEO+ geomatica in Italia http://bit.ly/GEOplus

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] W*S obtain only the server url

2013-12-07 Thread Gino Pirelli
Hi Luca

usign QT you can:

create QUrl and then query url with it's method  queryItemValue

probably there's a pure python method... that it's always better reducing
QT coupling. If you find a pure python way... please post it.

ciao Ginetto


On 6 December 2013 10:47, Luca Delucchi lucadel...@gmail.com wrote:

 Hi everybody,

 I have a WFS layer and I would like to obtain the server url using pyqgis.
 Now I'm using layer.source(), but it return the entire url with all
 the parameters.
 Is there a way to abtain only the server url?
 When QGIS create the string for the request it append every time
 REQUEST parameter for first? Could I split the string using it?

 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

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] No Zoom to selected point

2013-12-04 Thread Gino Pirelli
Sorry Bernhard was my mistake... I had a layer but it was composed of
circular polygons similar to point.

sorry for the noise


On 4 December 2013 07:50, Bernhard Ströbl bernhard.stro...@jena.de wrote:

 Hi Gino,

 can you confirm what I described (_one_ point selected, does not zoom)?

 I tried with f21562c on OpenSuse 64 bit.

 Bernhard

 Am 03.12.2013 18:01, schrieb Gino Pirelli:

 not confirmed in f21562c
 not confirmed in f1f2e16


 On 3 December 2013 16:40, Vincent Moravincent.m...@oslandia.com  wrote:

  I observed the same behavior (qgis master) with two points alligned on x
 (a very simple layer indeed).


 On 02/12/2013 12:15, Bernhard Ströbl wrote:

  Dear devs,

 today I stumbled on a strange behaviour when zoooming to a point.
 To reproduce: load a point layer, select one feature in the table and
 click Zoom to selection. The result is the same as if clicking Pan
 map
 to Selection, i.e the map is panned but not zoomed.
 I _think_ this is because the bounding box of the selected feature has a
 width and height of 0. Try iface.activeLayer().
 boundingBoxOfSelected().width()/.height() in the Python console.
 Geometrically speaking this is correct but as the zoom to selected
 function builds on a bounding box with width/height  0 the outcome for
 the
 user is bad.
 My suggestion would be to define a small rectangle around the bounding
 boxes' center if it has size 0 in the zoomToSelected function.

 Tried with QGIS 2.0.1 and current master

 Shall I file a ticket for this?

 Bernhard


 __ Information from ESET Mail Security, version of virus
 signature database 9119 (20131202) __

 The message was checked by ESET Mail Security.
 http://www.eset.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




 __ Information from ESET Mail Security, version of virus
 signature database 9125 (20131203) __


 The message was checked by ESET Mail Security.
 http://www.eset.com





 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer


 __ Information from ESET Mail Security, version of virus
 signature database 9125 (20131203) __


 The message was checked by ESET Mail Security.
 http://www.eset.com




 __ Information from ESET Mail Security, version of virus signature
 database 9127 (20131203) __


 The message was checked by ESET Mail Security.
 http://www.eset.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] No Zoom to selected point

2013-12-03 Thread Gino Pirelli
not confirmed in f21562c
not confirmed in f1f2e16


On 3 December 2013 16:40, Vincent Mora vincent.m...@oslandia.com wrote:

 I observed the same behavior (qgis master) with two points alligned on x
 (a very simple layer indeed).


 On 02/12/2013 12:15, Bernhard Ströbl wrote:

 Dear devs,

 today I stumbled on a strange behaviour when zoooming to a point.
 To reproduce: load a point layer, select one feature in the table and
 click Zoom to selection. The result is the same as if clicking Pan map
 to Selection, i.e the map is panned but not zoomed.
 I _think_ this is because the bounding box of the selected feature has a
 width and height of 0. Try iface.activeLayer().
 boundingBoxOfSelected().width()/.height() in the Python console.
 Geometrically speaking this is correct but as the zoom to selected
 function builds on a bounding box with width/height  0 the outcome for the
 user is bad.
 My suggestion would be to define a small rectangle around the bounding
 boxes' center if it has size 0 in the zoomToSelected function.

 Tried with QGIS 2.0.1 and current master

 Shall I file a ticket for this?

 Bernhard


 __ Information from ESET Mail Security, version of virus
 signature database 9119 (20131202) __

 The message was checked by ESET Mail Security.
 http://www.eset.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

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Creating a list of reference plugins for learning purposes

2013-11-25 Thread Gino Pirelli
+3.14


On 25 November 2013 15:58, Paolo Cavallini cavall...@faunalia.it wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Il 25/11/2013 13:20, Victor Olaya ha scritto:
  My idea is to take a set of 5-10 plugins that are representative of
  what most people what to know, and document them in detail so they can
  be used as reference plugins. Also, if these plugins are written with
  different sytles, I will homogenize them so they have a common style
  and can serve to set some guidelines for developers. In short, create
  a set of examples to follow, and from which a developer can learn.

 plugin guidelines are much needed since long, so +1 for me.
 all the best, and thanks.
 - --
 Paolo Cavallini - www.faunalia.eu
 Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.15 (GNU/Linux)
 Comment: Using GnuPG with Icedove - http://www.enigmail.net/

 iEYEARECAAYFAlKTZawACgkQ/NedwLUzIr67LwCgpoDtNl8s6T6wOVAqcg5jnxtJ
 zRsAoKrohmXbSvMajZILv3MaalPkRAjI
 =weNP
 -END PGP SIGNATURE-
 ___
 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] Spring Hackfest

2013-11-25 Thread Gino Pirelli
NOO... Girona and Vienna happend in the same days?
N


On 25 November 2013 16:26, Paolo Cavallini cavall...@faunalia.it wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Il 25/11/2013 11:16, Richard Duivenvoorde ha scritto:

  I think (Paolo?) there has already been some informal decision on the
  PSC mailing list for Vienna, only we/QGIS did not take further action.

 no decision, neither informal or formal, AFAIK
 I suggest to vote on this

  From Stephan via IRC I understood he and Paolo have communicated about
 it..

 confirmed, the gereal idea is settled

  Next friday there is a PSC (irc) meeting, so hopefully we can try to
  decide about this, and start an 'organising team'.

 that would be great

 all the best

 - --
 Paolo Cavallini - www.faunalia.eu
 Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.15 (GNU/Linux)
 Comment: Using GnuPG with Icedove - http://www.enigmail.net/

 iEYEARECAAYFAlKTbC8ACgkQ/NedwLUzIr6n1ACfdmDQXEfXxeMJb3gEpu4rPyag
 p4kAn1/gKUNoj5XafShORh5dZQo2maTn
 =DYFB
 -END PGP SIGNATURE-
 ___
 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] Disable Syntax Highlighting in DB Manager

2013-11-24 Thread Gino Pirelli
I can't confirm...

Try, for example, typing `SELECT 1;` into the window, and see how long it
takes you

I can't repeat the problems doing this... can you post a better test case?

Luigi Pirelli (luigi.pire...@faunalia.it)


On 24 November 2013 22:24, Lee Hachadoorian lee.hachadooria...@gmail.comwrote:

 I find the DB Manager SQL window to be unusable, and have confirmed that
 it is because of syntax highlighting by disabling this feature in my
 installation. There is an issue already in the tracker
 https://hub.qgis.org/issues/6995 entitled db manager's SQL window
 freezes with long query (due to syntax coloring?). Giuseppe suggests:

  Pasting or editing such a query makes highlighting process slow here,
 but it doesn't freeze (it could depend on resources available on my
 notebook). I could check the query length, but using a 124190 chars query
 long is something not usual anyway...

 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. Try, for example, typing `SELECT 1;`
 into the window, and see how long it takes you. I'm running QGIS on a Linux
 Mint 13 laptop with an i7 processor and 8GB RAM, so I don't think this has
 anything to do with system resources.

 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.

 Respectfully and with thanks to those who have created and contributed to
 the DB Manager plugin,
 --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

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Multi threading and background processing

2013-11-23 Thread Gino Pirelli
On 22 November 2013 08:23, Martin Dobias wonder...@gmail.com wrote:

 One side thought: seems like your computation could be done within
  Processing framework (used to be SEXTANTE before QGIS 2.0). The
 obvious advantage is that you just write your algorithm and register
 it, all GUI for input of parameters would be done by the framework.
 But I do not think it currently supports things like continual updates
 of the results in canvas.

 As far as I know, Processing has problems managing multi thread
processing, probabily related with GUI update of the it's progress bar, but
I didn't investigated.


  2) If I did this, could I display this type of raster in the qg map
 canvas?
  What kind of synchronization is required so the simulation pauses when
 the
  map is redrawn due to user interaction (zooming or panning for example).

 signal exchange!  your plugin can do bridging and signal coordinator.

rendering action emit signals:
http://www.qgis.org/api/classQgsMapCanvas.html
in different phases

I don't know it could help.

ciao Luigi Pirelli (luigi.pire...@faunalia.it)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Multi-threaded Rendering in QGIS

2013-11-06 Thread Gino Pirelli
I don't know if it could help a open platform to fundraising... for
example: http://www.pledgebank.com/

probably it helps to spread the voice...

for example this is a successful fundrising related to spatial sw
http://www.pledgebank.com/postgistopology

ciao ginetto




On 5 November 2013 11:13, Peter Wells peter.we...@lutraconsulting.co.ukwrote:

 Hi Andreas,

 There have been no donors coming forward from the general email I sent out
 to the lists but I am in the process of asking an organisation here in the
 UK directly but have been delayed in this task due to various people being
 on holiday.

 The funding arrangement you describe sounds great.  I will be contacting
 others that you mentioned directly this week to see if we can raise further
 funding.

 In the meantime, as far as I am aware, the work on the MT has already
 begun.  I will chat with Martin and see how the programme ties with the 2.2
 release schedule.


 Kind regards,

 Pete

 -Original Message-
 From: Andreas Neumann [mailto:a.neum...@carto.net]
 Sent: 04 November 2013 16:31
 To: peter.we...@lutraconsulting.co.uk; qgis-developer@lists.osgeo.org
 Cc: Saber Razmjooei; martin.dob...@lutraconsulting.co.uk
 Subject: Re: Multi-threaded Rendering in QGIS

 Hi all,

 I am wondering if you had any feedback regarding the call for funding
 around the multi-threaded renderer.

 From the Swiss QGIS user group we decided to split this into 2013 and
 2014. We can already pay CHF 3000 (approx. €24xx - depening on the exchange
 rate) in 2013 (approval pending on Nov 21). We would then pay a similar
 amount then in early 2014.

 Did you hear back from others who could contribute financially?

 Can Martin already start with his work now? To me it would be important to
 get this in QGIS 2.2

 Best greetings,
 Andreas

 Am 21.10.2013 20:54, schrieb Peter Wells:
  Dear list,
 
 
 
  We are looking to embark on a project to make rendering in QGIS
 multi-threaded, boosting rendering performance and reducing drawing times.
  I’m turning to the list to see if this is something that any of you (or
 any organisations you know) would be interested in co-funding.
 
 
 
  Besides ourselves, the Swiss QGIS User Group has very kindly offered to
 fund the development.  We are looking to raise approximately €20k in total
 and are looking for minimum donations of €1000 to reduce administrative
 overhead.
 
 
 
  Please contact us if you’d like to help,
 
 
 
  Kind regards,
 
  Pete
 
 
 
  Peter Wells
 
  Lutra Consulting
  23 Chestnut Close, Burgess Hill, RH15 8HN
  http://www.lutraconsulting.co.uk www.lutraconsulting.co.uk
  Tel:  +44 (0)1444 848012
  Mob:  +44 (0)7704 781683
  SIP:  1507...@sipgate.co.uk
 
 
 
 
 
  --
  This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they are
 addressed.
  If you have received this email in error please notify the system
  manager. This message contains confidential information and is
  intended only for the individual named. If you are not the named
  addressee you should not disseminate, distribute or copy this e-mail.
 Please notify the sender immediately by e-mail if you have received this
 e-mail by mistake and delete this e-mail from your system. If you are not
 the intended recipient you are notified that disclosing, copying,
 distributing or taking any action in reliance on the contents of this
 information is strictly prohibited.
 
  Whilst reasonable care has been taken to avoid virus transmission, no
  responsibility for viruses is taken and it is your responsibility to
 carry out such checks as you feel appropriate.
 
  Saber Razmjooei and Peter Wells tradin  g as Lut  ra Consulting.
 
 



 --
 This email and any files transmitted with it are confidential and intended
 solely for the use of the individual or entity to whom they are addressed.
 If you have received this email in error please notify the system manager.
 This message contains confidential information and is intended only for the
 individual named. If you are not the named addressee you should not
 disseminate, distribute or copy this e-mail. Please notify the sender
 immediately
 by e-mail if you have received this e-mail by mistake and delete this
 e-mail from your system. If you are not the intended recipient you are
 notified
 that disclosing, copying, distributing or taking any action in reliance on
 the contents of this information is strictly prohibited.

 Whilst reasonable care has been taken to avoid virus transmission, no
 responsibility for viruses is taken and it is your responsibility to carry
 out
 such checks as you feel appropriate.

 Saber Razmjooei and Peter Wells trading as Lutra Consulting.
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list

Re: [Qgis-developer] writeMapLayer not connecting in Python

2013-10-30 Thread Gino Pirelli
usually appends due to mismatch in callback signature... colud be
necessarry add self to def?

def write2(layer, dom, dom2): -- def write2(self, layer, dom, dom2):

??

ciao ginetto


On 30 October 2013 14:23, Nathan Woodrow madman...@gmail.com wrote:

 Hey all,

 I seem to be having issues with connecting to QgsProject::writeMapLayer in
 Python.
 Using new style connections I get an error:

  QgsProject.instance().writeMapLayer.connect(layerwrite)

 yields

 TypeError: connect() failed between
 writeMapLayer(QgsMapLayer*,QDomElement,QDomDocument) and unislot()

 Trying to connect using the old style connect just doing ever get called:

 def write2(layer, dom, dom2):
 print layer, dom, dom2

 QObject.connect(QgsProject.instance(), SIGNAL(writeMapLayer( QgsMapLayer,
 QDomElement, QDomDocument )), write2)

 This should be called when ever the project is saved and the layer is
 written however it just never calls the slot.

 Doing something wrong?

 - Nathan

 ___
 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] Qgis : synchronized view for photo-interpretation?

2013-10-23 Thread Gino Pirelli
was a bug of mine introduces during porting to Api2.0... the original code
used toDouble...

I'm preparing a new version... thank you for the report

Luigi Pirelli (luigi.pire...@faunalia.it)


On 23 October 2013 08:11, Zirneklitis e...@lanet.lv wrote:

 Hi,

 There is a problem with a comma as the decimal separator.

 A new bug has been reported:

 http://hub.qgis.org/issues/**8934 http://hub.qgis.org/issues/8934

 Best regards,

 Karlis

 Gino Pirelli wrote:

 Hi, I'm maintaining this plugin
 ..

 (Int)... so probabily in your settings zoom_factor is set as string
 value... e.g 2 instead of 2

 try to check in your Qgis setting

 if this is not the case, please create an issue here:

 http://hub.qgis.org/projects/**dockablemirrormap/issueshttp://hub.qgis.org/projects/dockablemirrormap/issues
 ..


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Qgis : synchronized view for photo-interpretation?

2013-10-23 Thread Gino Pirelli
ok... prepared 0.2.5 version, thank you again

Luigi Pirelli (luigi.pire...@faunalia.it)


On 23 October 2013 08:47, Gino Pirelli lui...@gmail.com wrote:

 was a bug of mine introduces during porting to Api2.0... the original code
 used toDouble...

 I'm preparing a new version... thank you for the report

 Luigi Pirelli (luigi.pire...@faunalia.it)


 On 23 October 2013 08:11, Zirneklitis e...@lanet.lv wrote:

 Hi,

 There is a problem with a comma as the decimal separator.

 A new bug has been reported:

 http://hub.qgis.org/issues/**8934 http://hub.qgis.org/issues/8934

 Best regards,

 Karlis

 Gino Pirelli wrote:

 Hi, I'm maintaining this plugin
 ..

 (Int)... so probabily in your settings zoom_factor is set as string
 value... e.g 2 instead of 2

 try to check in your Qgis setting

 if this is not the case, please create an issue here:

 http://hub.qgis.org/projects/**dockablemirrormap/issueshttp://hub.qgis.org/projects/dockablemirrormap/issues
 ..



___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Excel export

2013-10-22 Thread Gino Pirelli
I think the maintainer was working on it as you can see in the commits

https://github.com/rduivenvoorde/xytools/commit/554645bea2e60c1ffc47da47607d93e25c8d9c6f

did you asked to him?

ciao Luigi Pirelli (luigi.pire...@faunalia.it)


On 22 October 2013 08:30, Victor Gonzalez victor.gonza...@geomati.cowrote:

 Hi all,

 I need to export some attribute tables from QGIS in .xls format. As far as
 I know, the XYTools plugin [1] does what I want, but it does not work with
 QGIS 2.0 yet, right? I can update it and contribute the changes, but I
 would like to know if it has been already planned or maybe the plugin is
 unmaintained and there's a better solution that I can use. Any thoughts?

 Thanks in advance,
 Víctor.

 [1] http://plugins.qgis.org/plugins/xytools

 ___
 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] Qgis : synchronized view for photo-interpretation?

2013-10-22 Thread Gino Pirelli
Hi, I'm maintaining this plugin

I tested the code:
settings=QSettings()
a=settings.value( /qgis/zoom_factor, 2, type=int )

in the python console and it works... the error message says that

cannot convert QVariant metaType = 10 (QString) in QVariant metaType = 2
(Int)... so probabily in your settings zoom_factor is set as string
value... e.g 2 instead of 2

try to check in your Qgis setting

if this is not the case, please create an issue here:

http://hub.qgis.org/projects/dockablemirrormap/issues

explaining the context and if possibile a data set to allow me to reproduce
the error?

thank you


On 22 October 2013 19:47, Zirneklitis e...@lanet.lv wrote:

 What could be missing? DockableMirrorMap plugin could not be started:

 ==**=

 An error has occured while executing Python code:

 Traceback (most recent call last):
   File 
 /home/karlo/.qgis2/python/**plugins/DockableMirrorMap/**dockableMirrorMapPlugin.py,
 line 79, in runDockableMirror
 wdg = DockableMirrorMap(self.iface.**mainWindow(), self.iface)
   File 
 /home/karlo/.qgis2/python/**plugins/DockableMirrorMap/**dockableMirrorMap.py,
 line 39, in __init__
 self.mainWidget = MirrorMap(self, iface)
   File /home/karlo/.qgis2/python/**plugins/DockableMirrorMap/**mirrorMap.py,
 line 40, in __init__
 self.setupUi()
   File /home/karlo/.qgis2/python/**plugins/DockableMirrorMap/**mirrorMap.py,
 line 65, in setupUi
 zoomFactor = settings.value( /qgis/zoom_factor, 2, type=int )
 TypeError: unable to convert a QVariant of type 10 to a QMetaType of type 2

 Python version:
 2.7.3 (default, Aug  9 2012, 17:23:57)
 [GCC 4.7.1 20120720 (Red Hat 4.7.1-5)]


 QGIS version:
 2.1.0-Master Master, exported

 Python path: ['/usr/share/qgis/python/**plugins/processing',
 '/usr/share/qgis/python', u'/home/karlo/.qgis2/python',
 u'/home/karlo/.qgis2/python/**plugins', '/usr/share/qgis/python/**plugins',
 '/usr/lib64/python27.zip', '/usr/lib64/python2.7',
 '/usr/lib64/python2.7/plat-**linux2', '/usr/lib64/python2.7/lib-tk',
 '/usr/lib64/python2.7/lib-old'**, '/usr/lib64/python2.7/lib-**dynload',
 '/usr/lib64/python2.7/site-**packages', 
 '/usr/lib64/python2.7/site-**packages/PIL',
 '/usr/lib64/python2.7/site-**packages/geos', 
 '/usr/lib64/python2.7/site-**packages/gst-0.10',
 '/usr/lib64/python2.7/site-**packages/gtk-2.0',
 '/usr/lib64/python2.7/site-**packages/wx-2.8-gtk2-unicode',
 '/usr/lib/python2.7/site-**packages', '/usr/lib/python2.7/site-**
 packages/setuptools-0.6c11-**py2.7.egg-info', '/home/karlo/.qgis2/python/*
 *plugins/DigitizingTools/tools'**, '/usr/share/qgis/python/**
 plugins/fTools/tools']


 ==**=

 Best regards,
 Karlis

 Paolo Cavallini wrote:

 ..

 http://plugins.qgis.org/**plugins/DockableMirrorMap/http://plugins.qgis.org/plugins/DockableMirrorMap/
 enjoy
 ..

 __**_
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/**mailman/listinfo/qgis-**developerhttp://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] Git Pull Request: Best practices?

2013-10-17 Thread Gino Pirelli
as suggested by -strk I'll try the solution in the list...

I've three features with hierarchy  dependency among them:
FIRST needed by SECOND that is needed by THIRD

what it's better

A) ONE big pull request of the three features (with hierarchy dependency)

or

B) TREE sequential pull request sequentially waiting the merge of the
previous pulls?

or

C) three parallel pull request but that can create compilation problem if
THIRD pull is merged before SECOND and SECOND before FIRST

or

D) somethig new :)

thank you Luigi Pirelli
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] [OT] - politically correct question

2013-10-16 Thread Gino Pirelli
+1


On 16 October 2013 12:46, Richard Duivenvoorde rdmaili...@duif.net wrote:

 On 16-10-13 12:29, Ing. Pierluigi De Rosa wrote:
  Dear all,
 
  Since QGIS was at 1.8 version I used a plugin very useful for me but now
  the same is to updated to the 2.0 version.
  I write to the developer asking for un update for version 2.0 and
  telling him I'm are available to the the necessary work to do that.
  Unfortunately I didn’t receive any reply from him.
 
  What you suggest to do?
  I can update the code but then I cannot distribuite the code as I'm not
  the developer?

 My opinion:

 I do not know which plugin you need, but I would be very carefull to
 pull somebodies plugin out of his/her hands.

 I think it is to the developer to decide what priorities he takes by
 doing his work. We cannot force somebody to update it, if he is busy
 with something else. (or just missing the email in which somebody asks
 for that)

 If the plugin is on github, I would start with forking the repo, and
 upgrading the plugin as needed and do a pull request.
 This way YOU have a working plugin :-)

 Then maybe ask via this list if the developer is around, or if somebody
 knows this developer personally, and try to contact him again (or via
 the person who knows him).

 Maybe offer a little gift? Some nice words? A beer somewhere on the
 world? Offer to do it (patches, pull requests)?

 If all fails, there are two options:
 - we can my you manager of the plugin (but as said, as a project I think
 we should be really carefull with this. Maybe even only if the
 plugin-owner has given permission for this)
 - you can rename the plugin and upload it with another name?

 From my own experience, I can tell several reasons to not upgrade
 immediatly:
 - I'm in the middle of some refactoring and are planning to do the
 upgrade and new functionality in one version
 - I just do not have time for this, at THIS moment (meaning: other
 things in life have prio now)...

 In short: please be gentle to a plugin dev. He invested his free time
 into the developing the initial version(s) of the plugin.

 Regards,

 Richard Duivenvoorde
 ___
 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] Pull requests on WMS Tile Retry and WMS getLegendGraphic in legend and composer

2013-10-15 Thread Gino Pirelli
Hi

I just pulled some requests related to features presented in Brighton and
Developed with funding from Regione Toscana-SITA

A) WMS Tile Retry - This feature that reduce problems due to fail on
download single tiles

B) WMS getLegendGraphic adding api in provider to get the getLegendGraphic
pixmap

C) WMS legend in Legend Interface as popup. This allow visualization of
getLegendGraphic pixmap in legend interface using popup (cause to
architectural limitation)
Legend reload is linked to scale modification and in the future also to
extent to use new mapserer feature that customize legend basing on viewport

D) WMS legend in Composer to show the legend in composer. This feature add
a configurable resolution parameter to set legend pixmap resolution to
allow a good print quality.

I tired to be more modular as possible...

Pull request A is independent
Pull requests from B to D are hierarchically linked

please let me know for every doubt or suggestion

thank you

Luigi Pirelli (luigi.pire...@faunalia.it)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Reliable way to determine a groupIndex in the legend tree

2013-10-13 Thread Gino Pirelli
I'm reading this thread in a too fast way so probably I'll miss something

we can distinguish two topics in this thread

1) api re-design... but I think is a Architecture re-design of the
QgsLegend component
2) Enhancement of the Legend interface.

Thread 1) more technical, at this moment is still not approached
Thread 2) is focused (as I understood) on adding a new type of ItemGroup
that would manage a mutual/exclusive selection (radio button mode selection
inside the group)
Thread 3) please add topic of this thread if I missed it.

I can say something about Thread 1) that is related with Thread 2).
Sorry if I make mistakes on this my analysis, I tried to the do the best I
can and I'm here to learn :)
At this moment QgsLegend doesn't use a clear MVC pattern (
http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller). This
is (probabily) the main problem to expand it's features. I'm not sure about
group managing because I didn't focus on this feature, but I'm quite sure
that Item customization limits are extended to groups too.
QgsLegend is based on QTreeView that has all features to allow a full
customization of it's items (a group is a kind of item).
The main problem at this moment is that rendering of an item is not
delegated to each item but it's spread in different classes that create an
abstraction of the different kind of items.
I found this limitations looking for a solution to show WMS legends in
legend interface.
I my different way to find a solution to this new feature I also tried to
add a delegationapproach (just to try if it was feasible) but I wasn't
able to have a complete control of the item rendering... this is seems be
related with not so clear (to me) path of emitted signal inside this
hierarchy of classes.

So my conclusion are
1) move all rendering action custom item delegates
2) clean or clarify signals emitted and inter-relation with the classes of
the legend ecosystem.
3) this is a new point... I think that to allow developing new feature
it's necessary create and abstraction of the data returned by
layer-legendSymbologyItems() because returning a QList QPair QString,
QColor   is a really a big limitation to customization (for example I
can't ask to the layer to return a pixmap that is the legend for a WMS
layer)

Why thread 1) is related with Tread 2)? because if I've a clear Item
delegation I can add a new group item that manage it's rendering and
behavior basing on it's own characteristic.

I hope to hear from who's more inside qgis architecture to find the
correct direction.

thank you, Luigi Pirelli (luigi.pire...@faunalia.it)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Reliable way to determine a groupIndex in the legend tree

2013-10-10 Thread Gino Pirelli
no, not yet,

I found structural limitation looking for adding customized legends (aka
items)... I waited Brighton to check if it was a problem related to my
ignorance or a structural one.

I hadn't time to find what's the procedure to add a RFC in qgis with it's
workflow (in mapserver is clear, I can learn the procedure reading ML)

let me organize ideas and procedural proposal... or if it's more clear to
you, please start it and I'll contribute as soon as I can... or, in the
meantime, we can continue with this thread.

Andreas, thank you to open this thread

Luigi Pirelli (luigi.pire...@faunalia.it)


On 9 October 2013 21:35, Andreas Neumann a.neum...@carto.net wrote:

 Hi Luigi,

 Do you have a written proposal already? Is it available on Google Docs
 so we can comment/append?

 Personally, I am also interested in enhancing group options in the layer
 tree. Groups are not just stupid containers with only toggling of
 visibility. They could also have a group opacity and blending and group
 metadata. Later on we may also have clipping and masking on groups. So
 we really should have an extensible mechanism for groups as new group
 features appear.

 Yes, if we have a written proposal we will have more organization that
 may help to fund this effort.

 Andreas

 Am 09.10.2013 18:19, schrieb Gino Pirelli:
  we did a little face to face meeting in Brighton with Martin D. and Marco
  H... QgsLegend classes need a refactory due to structural limitation.
 
  Marco H. did an estimation of the refactoring, but probably, as I can see
  there are more that need this refactoring, could be interesting collect
  features that this re-write should involve
  and obviously funding :)
 
  ciao Luigi Pirelli (luigi.pire...@faunalia.it)
 
 
 
  On 9 October 2013 09:35, Denis Rouzaud denis.rouz...@gmail.com wrote:
 
  I heard some discussions... from Matthias, Martin and Nathan.
 
  but there are probably others!
 
 
  On 10/09/2013 09:30 AM, Andreas Neumann wrote:
 
  Am 09.10.2013 06:16, schrieb Bernhard Ströbl:
 
  Hi
 
  Am 09.10.2013 08:12, schrieb Denis Rouzaud:
 
  Hi,
 
  I am not sure we should make any publicity to the legend API which is
  very bad.
 
  I hope these methods will deprecated soon ;)
 
  So is there anyone working on fixing these legend API problems?
 
  We should probably come up with a Wiki page where we could collect
 ideas
  what we would expect from a proper legend API.
 
  Andreas
  __**_
  Qgis-developer mailing list
  Qgis-developer@lists.osgeo.org
  http://lists.osgeo.org/**mailman/listinfo/qgis-**developer
 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
 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] PyQGIS and checking WMS layers have data

2013-10-09 Thread Gino Pirelli
probally solution is connecting to the slots of the QgsRasterLayer class

  public slots:
void showStatusMessage( const QString  theMessage );

/** \brief Propagate progress updates from GDAL up to the parent app */
void updateProgress( int, int );

/** \brief receive progress signal from provider */
void onProgress( int, double, QString );

ciao Luigi Pirelli (luigi.pire...@faunalia.it)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] addAttribute to memory layer

2013-10-08 Thread Gino Pirelli
explication is in the code

http://www.qgis.org/api/qgsvectorlayer_8cpp_source.html#l03192

it' important to follow the emitted signal and related listener to know
exactly all involved cmponents

ciao ginetto




On 8 October 2013 10:04, Ing. Pierluigi De Rosa 
pierluigi.der...@gfosservices.it wrote:

 Thanks Alessando,
 It was what I was looking for.

 My error was I didn't updated fields using:
 vectorlayer.updateFields()

 Why it is necessary to call it when a field is added into provider?

 Thanks
 Pierluigi


 Il giorno lun, 07/10/2013 alle 10.51 +0200, Alessandro Pasotti ha
 scritto:
  You can try this method:
 
   https://github.com/elpaso/qgis-geocoding/blob/master/GeoCoding.py#L289
 
 
 --


 
 Ing. Pierluigi De Rosa (PhD)
 Studio Associato GFOSSERVICES

 Via Tilli 58 - 06127 Perugia (PG)
 tel: 075 7825101 / fax: 075 7823038
 cel: 3497558268
 web: www.gfosservices.it
 skype: pierluigi.derosa

 --


 
 Ing. Pierluigi De Rosa (PhD)
 Studio Associato GFOSSERVICES

 Via Tilli 58 - 06127 Perugia (PG)
 tel: 075 7825101 / fax: 075 7823038
 cel: 3497558268
 web: www.gfosservices.it
 skype: pierluigi.derosa

 ___
 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] The Hack Fests future?

2013-10-07 Thread Gino Pirelli
http://nerdbo.at/ ;)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Error in WCS

2013-09-30 Thread Gino Pirelli
replicate rest call in a browser getting uri from qgis log (I don't know if
it's shown only in debug mode)... then posts uri and results

ciao ginetto


On 30 September 2013 08:14, Paolo Cavallini cavall...@faunalia.it wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Il 27/09/2013 12:33, Paolo Cavallini ha scritto:
  Hi all.
  Using one layer from
  http://www.pcn.minambiente.it/PCNDYN/catalogowcs.jsp
  e.g.
 
  http://wms.pcn.minambiente.it/wcs/dtm_20m
 
  I immediately get an error:
 
  WCS provider: Impossibile recuperare i dati di test.
  Raster layer: Sorgente dati non valida (sorgente dati: wcs, URI:
  identifier=EL.DTM.20Murl=http://wms.pcn.minambiente.it/wcs/dtm_20m

 - From the log I get:
 Cannot verify coverage full extent:
 Impossibile verificare la completa estensione della coverage:
 no data received.
 The request seem to get a timeout, but it does not wait more than a couple
 of
 seconds, whereas in my settings the timeout is 6.
 Any hint?
 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
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.14 (GNU/Linux)
 Comment: Using GnuPG with Icedove - http://www.enigmail.net/

 iEYEARECAAYFAlJJFroACgkQ/NedwLUzIr4RjACfcFBzoZ7F47Sx1kPqoTh1O8UT
 uJ8AoLj6rers6OOnxGO1vW4nvG7NNT8P
 =ktvJ
 -END PGP SIGNATURE-
 ___
 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] Fwd: QGIS stable, release, master, development, nightly build, latest, unstable etc etc

2013-09-30 Thread Gino Pirelli
+1


On 30 September 2013 09:25, Richard Duivenvoorde rdmaili...@duif.netwrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 30-09-13 09:06, Paolo Cavallini wrote:
  Il 30/09/2013 08:44, Matthias Kuhn ha scritto:
 
  The package suffix -dev or -devel are often used to mark
  packages containing development files such as headers. Therefore
  I would stick to another term for this purpose ( nightly, master,
  alpha, beta, preview, testing, unstable, no strong opinion from
  my side ), so we can use the same term throughout the homepage
  and packages.
 
  good point - IMHO alpha, preview, testing, unstable are acceptable,
  the others are less appropriate and understandable. all the best.


 Ok, I agree too, I did not think about that.

 New proposal:

 QGIS stable
 QGIS testing

 Ok?

 Richard
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.14 (GNU/Linux)
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

 iQEcBAEBAgAGBQJSSSd8AAoJEJFuRrTgODQ+sj4H+QHPewgkPHQA+bV4m7rWiGrP
 fkMcdbkBZfRbuL/VjYL7ARqOHU4n0vcuKu/W0hBfdeHGnGQyuq5VYrOl0aHg+RGq
 V7ZhU3dbv318ssbZHRLeGkm1ieF0FzC0dVsqhPaOiAvaFAAkAoPIp7WU0iHKKuQo
 MlhskHyMurB5DqMBUKElcQ91A5plkSgOefcBgS5g6NuV0SWtW1HXYVonUU3Ez8DF
 SqOz8wKubPhWugBM0geoIn4jXIjUj5gq3veF1DqH3tyQxXu/dkBbaicw1FhpCG1P
 jlKonD8JBpjE75yLqX9xgy1xtOxz769GgSgKwEhpmWYS3XhvWuab4B8CGEtGDUI=
 =Ggkl
 -END PGP SIGNATURE-
 ___
 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] qgis help in 2.0

2013-09-23 Thread Gino Pirelli
it happends to me too... a ticket?
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Add yourself to the QGIS Contributor Map

2013-09-19 Thread Gino Pirelli
I can change to Unknow... that date was related to my repo. I presented
code in Brighton but I can't do pull request until some burocratic problems
are resolved.

But it's ok leaving with unknow (as pcav)... but I prefer to stay in this
list because my last tree month of work in the communtiy it it's not a
problem, obviously.

thanks, Luigi Pirelli (luigi.pire...@faunalia.it)


On 19 September 2013 14:38, Borys Jurgiel li...@borysjurgiel.pl wrote:

 Please everybody check your first commit date. By setting JEF's first
 contribution to 2013 we seriously mess the Earth history :) Gino's date
 looks
 suspicious too. I haven't check others.

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Add yourself to the QGIS Contributor Map

2013-09-19 Thread Gino Pirelli
welll, my condition open the door to more exceptions... I can wait for the
next release :)


On 19 September 2013 15:12, Gino Pirelli lui...@gmail.com wrote:

 I can change to Unknow... that date was related to my repo. I presented
 code in Brighton but I can't do pull request until some burocratic problems
 are resolved.

 But it's ok leaving with unknow (as pcav)... but I prefer to stay in
 this list because my last tree month of work in the communtiy it it's
 not a problem, obviously.

 thanks, Luigi Pirelli (luigi.pire...@faunalia.it)


 On 19 September 2013 14:38, Borys Jurgiel li...@borysjurgiel.pl wrote:

 Please everybody check your first commit date. By setting JEF's first
 contribution to 2013 we seriously mess the Earth history :) Gino's date
 looks
 suspicious too. I haven't check others.



___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Thanks for the hackfest

2013-09-18 Thread Gino Pirelli
+1


On 17 September 2013 23:37, Tim Sutton li...@linfiniti.com wrote:

 Hi Saber and Claudia, Peter and Siobhain

 Saber I just wanted to thank you and Claudia so much for your hospitality.
 I know it must have been a hectic few weeks for you organising the hackfest
 and very busy having your home invaded by people. You really did a great
 job organising everything and the whole event went very smoothly so well
 done!

 Also a great thanks to Pete for all the organising work you did and a very
 special thanks to Siobhain for slaving away in the background keeping us
 all fed and ferrying people around - you guys all rock!

 Regards

 Tim

 --
 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.

 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] Sessions in Brighton

2013-09-12 Thread Gino Pirelli
Hi,

I whould add a session to present two new features that I developed

1) WMS tile repeat request:
Sometimes tile request fails and leave an hole in composer or canvas... in
this way they are scheduled again to a maximum maximum number of fails.
Code can be found in the my qgis fork. Sorry I forgot to create a branch
for this feature.
here:
https://github.com/luipir/Quantum-GIS/commit/a563f2a650b13db9a1d7d58983ac2a2f5b87f1bb
and here:
https://github.com/luipir/Quantum-GIS/commit/3e278110f298bdf9363a936dd296b75b84858e6c

2) WMS getLegendGraphic in QgsLegend and QgsComposer:
This is an incomplete feature I was working this days and I need help to
solve some technical problems related to pixmap visualization and
resolution in QgsLegend and QgsComposerLedend
These features have much more patch complexity and they need explication.
You can find preliminary code in the branches:
1) WMS Legend in: WMS_QgsLegend
2) WMS Composer legend in: WMS_QgsComposerLegend

Problems I encountered:
1) has the main problem to solve pixmap size in QTreeView without affecting
the other legends.
2) has the main problem in the Pixmap resolution
1) and 2) introduce a virtual method in QgsRasterData implemented in
QgsWmsDtaProvider... I don't like this solution but I didn't find other. I
would appreciate hints to do better.
1) and 2) in QgsLegend breack the Model-View pattern. I would ask a better
way to implement this features.

the name of the session could be:

WMS features: tiles and legends

thanks, Luigi Pirelli (luigi.pire...@faunalia.it)


On 10 September 2013 09:12, Matthias Kuhn matthias.k...@gmx.ch wrote:

 Hi,

 Please vote for the sessions you would like to visit.

 http://doodle.com/xb2zew842zceudg9

 This will help us to set up a timeslot for sessions with lots of
 participants. And for the topics with less participants, you'll know who
 you should sit next to at beer O'clock.

 For more information, please refer to the Wiki page:


 http://hub.qgis.org/wiki/quantum-gis/10_QGIS_Developer_Meeting_in_Brighton_2013#Topics

 Thank you very much
 Matthias
 ___
 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] Sessions in Brighton

2013-09-12 Thread Gino Pirelli
+1


On 12 September 2013 12:02, Matthias Kuhn matthias.k...@gmx.ch wrote:

 Hi

 Two sessions added to Saturday:
 * WMS (Tiles and Legend)
 * Plugins (Website/Installer)

 If you find any inconvenient overlaps, feel free to reschedule these.

 Matthias

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] From Heathrow to Brighton tomorrow... others?

2013-09-11 Thread Gino Pirelli
Hi,

I'll be at Heathrow's airport tomorrow (more or less 17:30).. I think I'll
get the bus to Brighton (york place). From T3 I'll get this one:
http://www.nationalexpress.com/home.aspx

and then to Ibis hothel netar railway station

I can see there are other arriving at the same time... how do they reach
Brighton?

see you tomorrow, Luigi Pirelli
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] From Heathrow to Brighton tomorrow... others?

2013-09-11 Thread Gino Pirelli
Hi Saber,

I hope to arrive to Ibis hotel at 20:30... do you think I'm in time to
reach all of you to Falmer?
I'll be by bicycle from Ibis!
Or do you think to wait in the Hotel?

thanks


On 11 September 2013 13:14, Saber Razmjooei 
saber.razmjo...@lutraconsulting.co.uk wrote:

 Let me know if you all arrive at Brighton station at the same time, so I
 can
 ask a colleague to come and pick you up from there!

 When you buy your train ticket from Gatwick Airport, make sure you get
 ticket (off-peak same day return: £9.70) to Falmer! Saves you a quid and
 time for queuing in Brighton station!

 Cheers,
 Saber

 -Original Message-
 From: qgis-developer-boun...@lists.osgeo.org
 [mailto:qgis-developer-boun...@lists.osgeo.org] On Behalf Of Victor Olaya
 Sent: 11 September 2013 11:49
 To: Gino Pirelli
 Cc: qgis-developer@lists.osgeo.org
 Subject: Re: [Qgis-developer] From Heathrow to Brighton tomorrow... others?

 I am arriving at Gatwick instead, around 11am. I see other people arriving
 around the same time (Matteo, Larissa...and maybe some others who did not
 enter arrival time in the wiki). Shall we coordinate to take the train?

 2013/9/11 Gino Pirelli lui...@gmail.com:
  Hi,
 
  I'll be at Heathrow's airport tomorrow (more or less 17:30).. I think
  I'll get the bus to Brighton (york place). From T3 I'll get this one:
  http://www.nationalexpress.com/home.aspx
 
  and then to Ibis hothel netar railway station
 
  I can see there are other arriving at the same time... how do they
  reach Brighton?
 
  see you tomorrow, Luigi Pirelli
 
  ___
  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


 --
 This email and any files transmitted with it are confidential and intended
 solely for the use of the individual or entity to whom they are addressed.
 If you have received this email in error please notify the system manager.
 This message contains confidential information and is intended only for the
 individual named. If you are not the named addressee you should not
 disseminate, distribute or copy this e-mail. Please notify the sender
 immediately
 by e-mail if you have received this e-mail by mistake and delete this
 e-mail from your system. If you are not the intended recipient you are
 notified
 that disclosing, copying, distributing or taking any action in reliance on
 the contents of this information is strictly prohibited.

 Whilst reasonable care has been taken to avoid virus transmission, no
 responsibility for viruses is taken and it is your responsibility to carry
 out
 such checks as you feel appropriate.

 Saber Razmjooei and Peter Wells trading as Lutra Consulting.

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] From Heathrow to Brighton tomorrow... others?

2013-09-11 Thread Gino Pirelli
Brighton (York place) seems a bus stop... I think is the nearest to railway
stations:

http://coach.nationalexpress.com/nxbooking/stop-location-map?location=Brighton%20(York%20Place)

see you, Luigi Pirelli


On 11 September 2013 13:45, Saber Razmjooei 
saber.razmjo...@lutraconsulting.co.uk wrote:

 Hi Marco,

 That was the plan but we managed to move everything to Sussex Uni.
 I am only aware of Brighton Coach station. Not sure if it has a stop closer
 to Brighton Train station. It is worth asking the driver. Gino mentioned
 York Place, but I guess it is for coaches leaving Brighton.
 Finding the train station should be straight forward.

 The coach might also have wifi!


 See you tomorrow.
 Saber



 -Original Message-
 From: Marco Bernasocchi [mailto:ma...@bernawebdesign.ch]
 Sent: 11 September 2013 12:21
 To: Gino Pirelli
 Cc: qgis-developer@lists.osgeo.org; Saber Razmjooei
 Subject: Re: [Qgis-developer] From Heathrow to Brighton tomorrow... others?

 Hi Gino I arrive at heatrow also but at 11. I also go with national
 express.
 they have electricity plugs apparently :)

 Saber, I bought a ticket to Coach Station, (near Pier) because back then
 the
 wiki stated that we would meet at little bay. do I better get of that bus
 somewhere else?

 ciao see you tomorrow

 On 09/11/2013 12:25 PM, Gino Pirelli wrote:
  Hi,
 
  I'll be at Heathrow's airport tomorrow (more or less 17:30).. I think
  I'll get the bus to Brighton (york place). From T3 I'll get this one:
  http://www.nationalexpress.com/home.aspx
 
  and then to Ibis hothel netar railway station
 
  I can see there are other arriving at the same time... how do they
  reach Brighton?
 
  see you tomorrow, Luigi Pirelli
 
 
  ___
  Qgis-developer mailing list
  Qgis-developer@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-developer
 


 --
 Marco Bernasocchi
 http://opengis.ch


 --
 This email and any files transmitted with it are confidential and intended
 solely for the use of the individual or entity to whom they are addressed.
 If you have received this email in error please notify the system manager.
 This message contains confidential information and is intended only for the
 individual named. If you are not the named addressee you should not
 disseminate, distribute or copy this e-mail. Please notify the sender
 immediately
 by e-mail if you have received this e-mail by mistake and delete this
 e-mail from your system. If you are not the intended recipient you are
 notified
 that disclosing, copying, distributing or taking any action in reliance on
 the contents of this information is strictly prohibited.

 Whilst reasonable care has been taken to avoid virus transmission, no
 responsibility for viruses is taken and it is your responsibility to carry
 out
 such checks as you feel appropriate.

 Saber Razmjooei and Peter Wells trading as Lutra Consulting.

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] From Heathrow to Brighton tomorrow... others?

2013-09-11 Thread Gino Pirelli
perfect... I hope to find you there...


On 11 September 2013 13:47, Saber Razmjooei 
saber.razmjo...@lutraconsulting.co.uk wrote:

 Hi Gino,

 We should be there I guess until at least 22:00. Depending on when people
 want to leave.

 Cheers,

 Saber

 ** **

 *From:* Gino Pirelli [mailto:lui...@gmail.com]
 *Sent:* 11 September 2013 12:40
 *To:* Saber Razmjooei
 *Cc:* Victor Olaya; qgis-developer@lists.osgeo.org

 *Subject:* Re: [Qgis-developer] From Heathrow to Brighton tomorrow...
 others?

 ** **

 Hi Saber,

 ** **

 I hope to arrive to Ibis hotel at 20:30... do you think I'm in time to
 reach all of you to Falmer?

 I'll be by bicycle from Ibis!

 Or do you think to wait in the Hotel?

 ** **

 thanks

 ** **

 On 11 September 2013 13:14, Saber Razmjooei 
 saber.razmjo...@lutraconsulting.co.uk wrote:

 Let me know if you all arrive at Brighton station at the same time, so I
 can
 ask a colleague to come and pick you up from there!

 When you buy your train ticket from Gatwick Airport, make sure you get
 ticket (off-peak same day return: £9.70) to Falmer! Saves you a quid and
 time for queuing in Brighton station!

 Cheers,
 Saber


 -Original Message-
 From: qgis-developer-boun...@lists.osgeo.org
 [mailto:qgis-developer-boun...@lists.osgeo.org] On Behalf Of Victor Olaya
 Sent: 11 September 2013 11:49
 To: Gino Pirelli
 Cc: qgis-developer@lists.osgeo.org
 Subject: Re: [Qgis-developer] From Heathrow to Brighton tomorrow... others?

 I am arriving at Gatwick instead, around 11am. I see other people arriving
 around the same time (Matteo, Larissa...and maybe some others who did not
 enter arrival time in the wiki). Shall we coordinate to take the train?

 2013/9/11 Gino Pirelli lui...@gmail.com:
  Hi,
 
  I'll be at Heathrow's airport tomorrow (more or less 17:30).. I think
  I'll get the bus to Brighton (york place). From T3 I'll get this one:
  http://www.nationalexpress.com/home.aspx
 
  and then to Ibis hothel netar railway station
 
  I can see there are other arriving at the same time... how do they
  reach Brighton?
 
  see you tomorrow, Luigi Pirelli
 
  ___
  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

 

 --
 This email and any files transmitted with it are confidential and intended
 solely for the use of the individual or entity to whom they are addressed.
 If you have received this email in error please notify the system manager.
 This message contains confidential information and is intended only for the
 individual named. If you are not the named addressee you should not
 disseminate, distribute or copy this e-mail. Please notify the sender
 immediately
 by e-mail if you have received this e-mail by mistake and delete this
 e-mail from your system. If you are not the intended recipient you are
 notified
 that disclosing, copying, distributing or taking any action in reliance on
 the contents of this information is strictly prohibited.

 Whilst reasonable care has been taken to avoid virus transmission, no
 responsibility for viruses is taken and it is your responsibility to carry
 out
 such checks as you feel appropriate.

 Saber Razmjooei and Peter Wells trading as Lutra Consulting.

 ** **

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Sessions in Brighton

2013-09-10 Thread Gino Pirelli
hei,

what's the session bouldering and Domain for attribute, someone can explain
better?
Ther's a session about QT QML but wasn't in the wiki.

I whaold appriciate a session on a geneal view of QGIS arquitecture... but
I can't propose it as speaker, but just as student :)

see you in Brighton, Luigi Pirelli


On 10 September 2013 18:37, Hugo Mercier hugo.merc...@oslandia.com wrote:


 Le 10/09/2013 18:18, Matthias Kuhn a écrit :
  Hi Hugo,
 
  It's added, thank you for pointing out.
 
  I will happily make a short presentation of my globe development of the
  last weeks there.
 
  Matthias
 

 Thanks for the addition and thanks for your proposition !


 --
 Hugo Mercier
 Oslandia
 ___
 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] QgsLegend: How to have display Pixmaps with different size?

2013-09-07 Thread Gino Pirelli
Hi

I'm working/investigating hwo to add WMS legend (GetLegendGraphics) in the
legend tree (QgsLegend : QTreeWidget)

**the context:
I've a WMS legend that is a pixmap because of is obtained usiging
GetLegendGraphic WMS call.
I want to show this legend as in the attached image:

https://dl.dropboxusercontent.com/u/12837459/WMSLegend.png

**problems:
as you can see in the image I'm able to display the legend pixmap, doing
setIcon for the Item (Aka QgsLegendSymbolgyItem) and setSize in QTreeWidget
(AKA QgsLegend)
In this way all the icons are set to the same Size (WRONG!)

**the QT way?:
in QT literature the solution is adding a QStyleItemDelegate or
QItemDelegate to the QTreeWidget (QgsLegend). In this delegate I can choose
how to display and size all I want overloading paint and sizeHint methods.

**The architectural problem:
The problem I found is that adding an ItemDelegate it works for all
elements displayed in the Tree, but the actual architecture of the Legend
draw it's element in different code sites... (QgsLegend has different
architecture form the Legend in Composer)

**Solutions?
There is someone that solved or approached this problem?

Thank you and see you in Brighton, Luigi Pirelli (luigi.pire...@faunalia.it)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] LWGEOM Processing provider (aka Sextante)

2013-08-27 Thread Gino Pirelli
Hi,

for the LWGEOM provider users... now is available the provider for
QGIS Processing (aka Sextante)

please try it (only with postgis = 2.1)

Luigi Pirelli (luigi.pire...@faunalia.it)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Room booking in Brighton

2013-08-11 Thread Gino Pirelli
probabilly that's the problem, at this moment I've no one to share
with, so I ask :)...

who want to share with me and has already booked?

let me know...

ciao Luigi Pirelli (aka @ginetto)


On 11 August 2013 07:48, Saber Razmjooei
saber.razmjo...@lutraconsulting.co.uk wrote:
 Hi Gino,

 If you know who you are sharing room with, one of you can contact the hotel
 directly and arrange for a shared room.

 Cheers
 Saber


 On 2013-08-10 23:36, Gino Pirelli wrote:

 Hi

 before booking IBIS hotel (ok on 14th seems sold out) how to manage
 room sharing? we are 40 and most of us want to share the room.

 There is someone that want to share with me and have already booked?
 how to share payment?

 please let me know

 Luigi Pirelli

 On 9 August 2013 08:47, Paolo Cavallini cavall...@faunalia.it wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Il 08/08/2013 15:32, Matthias Kuhn ha scritto:

 fully booked, as you point out, I'm afraid I'll have to spend the
 nights in some lonely park in a tent with Paolo...


 ok, so ready for the tent :)

 - --
 Paolo Cavallini - Faunalia
 www.faunalia.eu
 Full contact details at www.faunalia.eu/pc
 Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.14 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAlIEkHcACgkQ/NedwLUzIr6s1QCfQe9wv67YLaQ14xPg7g1D39Nd
 JRYAoKvZf2dTQgUtAhaIMVAs1AqC8E+c
 =lJo2
 -END PGP SIGNATURE-
 ___
 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



 --
 This email and any files transmitted with it are confidential and intended
 solely for the use of the individual or entity to whom they are addressed.
 If you have received this email in error please notify the system manager.
 This message contains confidential information and is intended only for the
 individual named. If you are not the named addressee you should not
 disseminate, distribute or copy this e-mail. Please notify the sender
 immediately by e-mail if you have received this e-mail by mistake and delete
 this e-mail from your system. If you are not the intended recipient you are
 notified that disclosing, copying, distributing or taking any action in
 reliance on the contents of this information is strictly prohibited.

 Whilst reasonable care has been taken to avoid virus transmission, no
 responsibility for viruses is taken and it is your responsibility to carry
 out such checks as you feel appropriate.

 Saber Razmjooei and Peter Wells trading as Lutra Consulting.
 ___
 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] Room booking in Brighton

2013-08-10 Thread Gino Pirelli
Hi

before booking IBIS hotel (ok on 14th seems sold out) how to manage
room sharing? we are 40 and most of us want to share the room.

There is someone that want to share with me and have already booked?
how to share payment?

please let me know

Luigi Pirelli

On 9 August 2013 08:47, Paolo Cavallini cavall...@faunalia.it wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Il 08/08/2013 15:32, Matthias Kuhn ha scritto:

 fully booked, as you point out, I'm afraid I'll have to spend the
 nights in some lonely park in a tent with Paolo...

 ok, so ready for the tent :)

 - --
 Paolo Cavallini - Faunalia
 www.faunalia.eu
 Full contact details at www.faunalia.eu/pc
 Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.14 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAlIEkHcACgkQ/NedwLUzIr6s1QCfQe9wv67YLaQ14xPg7g1D39Nd
 JRYAoKvZf2dTQgUtAhaIMVAs1AqC8E+c
 =lJo2
 -END PGP SIGNATURE-
 ___
 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] before a RFC... how to develop WMS retry?

2013-07-29 Thread Gino Pirelli
Hi

I'm evaluating a work about managing tile download retry during a WMS request.

Analyzing the code there are different solutions
A) implementing a new requet in QgsWmsProvider::tileReplyFinished if
ther is an error (probabilly it's better to re-organize the logic of
this routine because there are too many exit points)
B) adding a configuration method in QgsNetworkAccessManager(subclass
of QNetworkAccessManager) adding managing of retry. In this case all
QGis can use this feature.

I noticed that the option parameter:
Settings-Options-Network-Timeout for network requests (ms)
configure only  QgsHttpTransaction::httpTransaction(...) call that is
ONLY used inside mapserver core plugin code (option name is at lest
not comprensible)

Timeout could be another configuration parameter added to
QgsNetworkAccessManager.
Timeout managing could be managed as here:
http://qt-project.org/forums/viewthread/15222
that is the same solution used in QgsHttpTransaction

thanks, Lugi Pirelli (luigi.pire...@faunalia.it)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] QgsFields has not method values()

2013-07-28 Thread Gino Pirelli
Hi

what was the result of QgsFields.values()? I've no documentation in
master and in 1.8!

I've this error in a plugin:

 File /home/ginetto/.qgis2/python/plugins/rt_postgres_extractor/WizPage1.py,
line 187, in fillLayerAttrsCombo
self.layerAttrsCombo.addItems(  self.getFieldNames4Combo(flds.values()) )
AttributeError: 'QgsFields' object has no attribute 'values'

from this code:

pr = layer.dataProvider()
flds = pr.fields()
self.layerAttrsCombo.addItems(  self.getFieldNames4Combo(flds.values()) )

where layer is a QgsVectorLayer = pr is a QgsVectorDataProvider

ciao ginetto
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QgsFields has not method values()

2013-07-28 Thread Gino Pirelli
I know! i was changing to 2.0 api... Natan shown me that
QgsVectorDataProvider.fields() changed from QMap to QList... QMap has
values() method, but QList no... but solution is to erase values()
call beacuse called funcion need a QFields list.

thanks anyway, ginetto

On 28 July 2013 13:34, Alexander Bruy alexander.b...@gmail.com wrote:
 Hi,

 plugin you used is not update to QGIS 2 API changes.

 2013/7/28 Gino Pirelli lui...@gmail.com:
 Hi

 what was the result of QgsFields.values()? I've no documentation in
 master and in 1.8!

 I've this error in a plugin:

  File 
 /home/ginetto/.qgis2/python/plugins/rt_postgres_extractor/WizPage1.py,
 line 187, in fillLayerAttrsCombo
 self.layerAttrsCombo.addItems(  self.getFieldNames4Combo(flds.values()) )
 AttributeError: 'QgsFields' object has no attribute 'values'

 from this code:

 pr = layer.dataProvider()
 flds = pr.fields()
 self.layerAttrsCombo.addItems(  self.getFieldNames4Combo(flds.values()) )

 where layer is a QgsVectorLayer = pr is a QgsVectorDataProvider

 ciao ginetto
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer



 --
 Alexander Bruy
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QgsFields has not method values()

2013-07-28 Thread Gino Pirelli
well... a better solution:
change: flds = pr.fields() in
 flds = pr.fieldNameMap()
and leave: self.layerAttrsCombo.addItems(
self.getFieldNames4Combo(flds.values()) )

ciao ginetto

On 28 July 2013 13:41, Gino Pirelli lui...@gmail.com wrote:
 I know! i was changing to 2.0 api... Natan shown me that
 QgsVectorDataProvider.fields() changed from QMap to QList... QMap has
 values() method, but QList no... but solution is to erase values()
 call beacuse called funcion need a QFields list.

 thanks anyway, ginetto

 On 28 July 2013 13:34, Alexander Bruy alexander.b...@gmail.com wrote:
 Hi,

 plugin you used is not update to QGIS 2 API changes.

 2013/7/28 Gino Pirelli lui...@gmail.com:
 Hi

 what was the result of QgsFields.values()? I've no documentation in
 master and in 1.8!

 I've this error in a plugin:

  File 
 /home/ginetto/.qgis2/python/plugins/rt_postgres_extractor/WizPage1.py,
 line 187, in fillLayerAttrsCombo
 self.layerAttrsCombo.addItems(  self.getFieldNames4Combo(flds.values()) 
 )
 AttributeError: 'QgsFields' object has no attribute 'values'

 from this code:

 pr = layer.dataProvider()
 flds = pr.fields()
 self.layerAttrsCombo.addItems(  self.getFieldNames4Combo(flds.values()) )

 where layer is a QgsVectorLayer = pr is a QgsVectorDataProvider

 ciao ginetto
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer



 --
 Alexander Bruy
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] fieldNameMap() crashes QGIS

2013-07-28 Thread Gino Pirelli
On 28 July 2013 16:13, Alexander Bruy alexander.b...@gmail.com wrote:
 l = iface.mapCanvas().currentLayer()
 fm = l.dataProvider().fieldNameMap()

I confirm using python console... not using a plugin that use this function.

signal received in Quantum-GIS/python/core/conversions.sip:906


This is the Debug and gdb backtrace:



Debug: src/core/qgsscalecalculator.cpp: 48: (mapUnits) Map units returned as 1
Debug: src/core/qgsscalecalculator.cpp: 48: (mapUnits) Map units returned as 1
Debug: src/core/qgsscalecalculator.cpp: 48: (mapUnits) Map units returned as 1
0x7fffcd84d94e in convertFrom_QMap_0100QString_1800
(sipCppV=0x442b930, sipTransferObj=0x0) at
/home/ginetto/PROGRAMMING/Quantum-GIS/python/core/conversions.sip:906
(gdb) c
Fatal: QGIS died on signal 11
Stacktrace (piped through c++filt):
/mnt/data/PROGRAMMING/APPLICATION/bin/qgis(dumpBacktrace()+0xec)[0x5698e9]
/mnt/data/PROGRAMMING/APPLICATION/bin/qgis(myMessageOutput(QtMsgType,
char const*)+0x1fd)[0x569b10]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType,
char const*)+0x30)[0x7311f630]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x77a98)[0x7311fa98]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qFatal(char const*,
...)+0x94)[0x7311fc24]
/mnt/data/PROGRAMMING/APPLICATION/bin/qgis(qgisCrash(int)+0x1f)[0x5697fb]
/lib/x86_64-linux-gnu/libc.so.6(+0x324f0)[0x705e24f0]
/usr/lib/python2.7/dist-packages/qgis/core.so(+0x5f594e)[0x7fffcd84d94e]
/usr/lib/python2.7/dist-packages/sip.so(+0x6d41)[0x7fffceaa2d41]
/usr/lib/python2.7/dist-packages/qgis/core.so(+0x4f7f64)[0x7fffcd74ff64]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5ad2)[0x7fffced09422]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x848)[0x7fffced0a2e8]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x32)[0x7fffced0a422]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x499a)[0x7fffced082ea]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x848)[0x7fffced0a2e8]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x458e)[0x7fffced07ede]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x848)[0x7fffced0a2e8]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x458e)[0x7fffced07ede]
/usr/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5b7b)[0x7fffced094cb]

Program received signal SIGABRT, Aborted.
0x705e2475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Bugs in QGIS Master

2013-07-25 Thread Gino Pirelli
Hi

I don't know what's your windows system... generally on gnome or kde
using Alt+7 and cliking on the window allow you to pan the gui along
the window.

this doesn't append to me in gnome3 or unity... but probabilly i've to
find the correct key combination.

I don't know using osx window manager

another workaround is to change application font sizes of your desktop
configuration.

ciao ginetto (luigi.pire...@faunalia.it)

On 25 July 2013 08:28, Oscar van Vliet ovv...@gmail.com wrote:
 Dear QGIS developers,

 Thanks for all the hard work, I have been using the almost 2.0 builds with
 some satisfaction. Unfortunately, all is not well. I am using yesterday's
 Master build, and there seems to be a few bugs still.


 First of all, the dialog window for Raster|Analysis|DEM is too tall for my
 Macbook, which only has 800 pixels vertically. You might consider
 rearranging it a little. I can still use it by starting the analysis by
 hitting Enter, but I cannot actually see the bottom row of buttons or the
 resize widget.


 Second, I have some errors in the Raster|Conversion|Rasterise dialog that
 make it unusable for me.

 I am trying to rasterise a vector layer that I saved as a selection from a
 layer that I had previously vectorised.

 I understand this dialog is just a front for GDAL tools, but the bridge
 seems to be broken: I get the following python error when I try to select a
 filename for the rasterised output layer:

 Traceback (most recent call last):
   File
 /Applications/GIS/QGIS_2.0-dev_SnoLeo.app/Contents/MacOS/../Resources/python/plugins/GdalTools/tools/doRasterize.py,
 line 102, in fillOutputFileEdit
 outputFile = fileDialogFunc(self, self.tr( Select the raster file to
 save the results to ), Utils.FileFilter.allRastersFilter(), lastUsedFilter)
   File
 /Applications/GIS/QGIS_2.0-dev_SnoLeo.app/Contents/MacOS/../Resources/python/plugins/GdalTools/tools/GdalTools_utils.py,
 line 413, in getSaveFileName
 return self.getDialog(parent, caption, QFileDialog.AcceptSave,
 QFileDialog.AnyFile, filter, selectedFilter, useEncoding)
   File
 /Applications/GIS/QGIS_2.0-dev_SnoLeo.app/Contents/MacOS/../Resources/python/plugins/GdalTools/tools/GdalTools_utils.py,
 line 362, in getDialog
 dialog.selectNameFilter(selectedFilter)
 TypeError: QFileDialog.selectNameFilter(QString): argument 1 has unexpected
 type 'QPyNullVariant'

 Python versie:
 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
 [GCC 4.2.1 (Apple Inc. build 5646)]


 QGIS versie:
 1.9.0-Master Master, 5c2e3f3

 Python pad:
 ['/Applications/GIS/QGIS_2.0-dev_SnoLeo.app/Contents/MacOS/../Resources/python',
 '/Users/XX/.qgis2/python', '/Users/XX/.qgis2/python/plugins',
 '/Applications/GIS/QGIS_2.0-dev_SnoLeo.app/Contents/MacOS/../Resources/python/plugins',
 '/Library/Frameworks/SQLite3.framework/Versions/B/Python/2.6',
 '/Library/Python/2.6/site-packages/numpy-override',
 '/Library/Frameworks/GDAL.framework/Versions/1.10/Python/2.6/site-packages',
 '/Library/Frameworks/cairo.framework/Versions/1/Python/2.6',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload',
 '/Library/Python/2.6/site-packages',
 '/Library/Python/2.6/site-packages/PIL',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode',
 '/Applications/GIS/QGIS_2.0-dev_SnoLeo.app/Contents/Resources/python/plugins/fTools/tools',
 '/Users/XX/YY/ZZ']


 Then if I try to run it with the existing size, I get another python error.
 If I choose the option with pixel size, the action just seems to hang
 without resolving or any error message.


 I hope this makes sense. I have installed all of the required packages from
 kyngchaos, AFAIK. Feel free to contact me for additional data.


 Best wishes,

  Oscar


 ___
 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] Tools to support code porting to new c++ and python APIs

2013-07-25 Thread Gino Pirelli
Hi,

due to my work on porting qgis plugins to new APIs I looked for a tool
helping me to find code modifications.

I didn't find it! so I wrote a really bad draft tool to recursively
grep most of modifications stated in this two web pages:

A) http://hub.qgis.org/wiki/quantum-gis/API_changes_for_version_20
(partially supported... i've to complete it)
B) http://hub.qgis.org/wiki/quantum-gis/Python_plugin_API_changes_from_18_to_20

python code can be found here:

https://github.com/luipir/qgis20_api_check

Inside the code I brutally replicated the suggestion stated in the A
and B websites (I did't find a good way to automatically parse their
content to auto-generate the check script... but I didn't spent time
on it)

brutally grep (without sophisticated regular expressions) generate a
lot of fake messages, but the script helped me to evaluate the
complexity of the work and to point directly where to modify

I hope it could speed-up porting

regardsd, Luigi Pirelli (luigi.pire...@faunalia.it)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] roughly ported RemoteDebug plugin to 2.0

2013-07-08 Thread Gino Pirelli
that was the roughly :)

ok, modified str and pulled

thank you Luigi Pirelli (luigi.pire...@faunalia.it)



On 6 July 2013 11:08, Matthias Kuhn matthias.k...@gmx.ch wrote:
 Hi Gino,

 I already had a pull request for the same, but your branch looks much
 more complete.
 So I will happily dismiss mine, once you issued a pull request for
 yours.

 Just a sidenote: There is no need to convert a value to a type /str/
 and then to a type /unicode/ a simple unicode(value) instead of
 unicode(str(value)) is fine.

 Looking forward to having an updated version in the repo.

 Matthias



 On Fre 05 Jul 2013 18:34:30 CEST, Gino Pirelli wrote:
 Hi,

 to support my porting work of qgis's plugins, I found really useful
 the RemoteDebug plugin developed by Pirmin Kalberer of SourcePole:

 I roughly ported it without good testing... but it seems to work.

 you can find the fork here: https://github.com/luipir/qgis-remote-debug
 and some instruction to set it up.

 generally the plugin hang up qgis if it's not capable to communicate
 with the pydev debug server...

 I hope it could be useful to speed-up plugin porting.

 ciao Luigi Pirelli (luigi.pire...@faunalia.it)
 ___
 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] DockableMIrroMap ported to QGis 2.0

2013-07-05 Thread Gino Pirelli
thanks to Regione Toscana-SITA you can find DockableMirroMap plugin
ported to qgis 2.0

if you find it useful, please test it and refer problems as usual in:

plugin home is: http://plugins.qgis.org/plugins/DockableMirrorMap/

thanks, Luigi Pirelli (luigi.pire...@faunalia.it)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] roughly ported RemoteDebug plugin to 2.0

2013-07-05 Thread Gino Pirelli
Hi,

to support my porting work of qgis's plugins, I found really useful
the RemoteDebug plugin developed by Pirmin Kalberer of SourcePole:

I roughly ported it without good testing... but it seems to work.

you can find the fork here: https://github.com/luipir/qgis-remote-debug
and some instruction to set it up.

generally the plugin hang up qgis if it's not capable to communicate
with the pydev debug server...

I hope it could be useful to speed-up plugin porting.

ciao Luigi Pirelli (luigi.pire...@faunalia.it)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] New feature's needed, create geometry from attribute

2013-07-03 Thread Gino Pirelli
thanks to Regione Toscana you can find rt_qspider ported to qgis 2.0

if you find it useful, please test it and refer problems as usual in:
http://hub.qgis.org/projects/rtqspider

plugin home is: http://plugins.qgis.org/plugins/rt_qspider/

thanks, Luigi Pirelli (luigi.pire...@faunalia.it)


On 2 July 2013 09:12, Andrea Peri aperi2...@gmail.com wrote:

  Perhaps you could be interested in our plugin:
 RT QSpider.

 It create a shapefile from a dbf with coordinate on two field int or
 textual.

 The plugin is actually for 1.8 only, bt we plan early to evolve to qgis 2.0

 Regards,


 On 01/07/2013 09:48, HAUBOURG wrote:

  Hi all, let me precise the need:

 Numerical vertex edit and wkt plugin are usefull when dealing with one
 geometry. 

 Geom calculation with field update can create eventually a WKB, but it’s
 absolutely not user friendly, and there is actually no way to load a layer
 from that in a file based layer. 

 ** **

 Think of a user getting a excel or calc spreadsheet with XY inside. The
 only way to import it directly as a spatial layer (not talking about using
 sqlite or postgis.. too complex for common users not even aware of data
 source types) is too export it to csv and import it with delimited text
 plugin. 

 That is always a pain since no tool exports csv in the same way when
 dealing with numerical / text types, decimal separators… 

 XLS, calc, dbf do type correctly fields and avoid any file conversion (if
 no formula or problem in field names today). Importing directly the
 datasource, and being able to spatialize it afterwards , only if needed
 (join pure attribute data is also a use case), would be nice. 

 ** **

 So is the need for my corp.

 My question : I would like to avoid data duplication (again) , is that
 feasible using pluginlayerType in python API todayu, or do I need some core
 modifications ? Of course, that need to be reloaded correctly with a
 project file. 

 ** **

 Régis

 ** **

 ** **

 ** **

  

 Cordialement,

 Régis Haubourg

 --
 --
 Régis Haubourg

 Administrateur de données Géographiques
 Département des Systèmes d'Information (DCSI)
 Agence de l'eau Adour Garonne
 90 rue du Férétra,
 31078 Toulouse Cedex4
 Tél: 05 61 36 82 58
 Mail: regis.haubo...@eau-adour-garonne.fr

 [image: cid:image002.jpg@01CE5BAA.92C70ED0]http://www.eau-adour-garonne.fr
 

 * *

 Accédez aux données sur l'eau  :

 http://adour-garonne.eaufrance.fr/ 

 ** **

 *De :* kimaidou [mailto:kimai...@gmail.com kimai...@gmail.com]
 *Envoyé :* dimanche 30 juin 2013 22:00
 *À :* Anita Graser
 *Cc :* Alexander Bruy; qgis-developer; HAUBOURG
 *Objet :* Re: [Qgis-developer] New feature's needed, create geometry from
 attribute

 ** **

 Hi

 What about using the field calculator ? I think I have seen a method in
 the geometry tools : something like geomfromwkt ? If needed, we could
 simply add a way to modifiy the features geometry with the field
 calculator, and it will do the trick. 

 ** **

 ** **

 2013/6/30 Anita Graser anitagra...@gmx.at

 The Quick WKT plugin does something very similar.

 Anita

 ** **

 On Sun, Jun 30, 2013 at 3:06 PM, Alexander Bruy alexander.b...@gmail.com
 wrote:

 Hi, what about NumericalVertexEdit plugin? If I understand correctly, it
 do what you need.

 2013/6/30 Régis Haubourg regis.haubo...@eau-adour-garonne.fr:

  Hi all,
  After some training courses here, a very common use case is not satisfied
  easily:
 
  The only entry to create geometry from text (XY or WKT) is the delimited
  text plugin.
  It appears that having a separate fonction create point like in
 Mapinfo or
  Arcgis would be really handy, and could avoid the need of csv import.
 
  I was thinking of making a plugin for this, but I'm wondering what is the
  best approach.
   1- duplicate layer into a memory layer. Easy, requires MemoryLayerSaver
 to
  make data persistent, is not dynamic with datasource.
   2- create a pluginLayer? I'm not sure it will do what I need. I would
 like
  the project to keep a reference to the datasource (xls, whatever ogr/
  postgres/ sqlite/ spatialite) and replace or create geometry on load by
  reading XY columns or WKT column.
 
  Is that feasable in a plugin,  as a proof of concept, or does it require
  core classes modifications (C++ work , so I won't do it by myself)
 
  Thanks for your tips,
  Régis

 --

 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 
 

[Qgis-developer] plugin rt_mapserver_exporter ported to 2.0 (experimental)

2013-06-20 Thread Gino Pirelli
Hi,

I'm Luigi Pirelli (luigi.pire...@faunalia.it). Working for Faunalia, I
ported rt_mapserver_exporter plugin originally wrote by Giuseppe
Sucameli (thank you Giuseppe)

I tested it in linux (Ubuntu 12.10 + ubuntuGIS repos) and win WinXP
(SP3). I used mapscript of the ubuntuGIS ( 6.2.1-2~quantal2 ) and, for
Win the version that can be found in:
http://home.gdal.org/tmp/mapscript-python-6.2.1-2.tar.bz2

The code can be downloaded in the 2.0 branch of the git repo:
https://github.com/faunalia/rt_mapserver_exporter/tree/2.0

To test it, as usual, just clone repo in: ~/.qgis2/python/plugins/

should be useful having more feedback about problems...

thanks to Frank Warmerdam supporting me on the win platform.

please let me know,

bye Luigi Pirelli - (luigi.pire...@faunalia.it)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


  1   2   >