[Qgis-developer] Impossible to upload and share a plugin on QGIS plugin repository

2014-07-30 Thread Junior Delaz
Hi all I'm tring to upload and share my first plugin at [1] but encountered an error I don't really understand. It says: *There were errors reading plugin package (please check also your plugin's metadata). Cannot find __init__.py or metadata.txt in the compressed package: this does not seems a

Re: [Qgis-developer] [Qgis-user] Impossible to upload and share a plugin on QGIS plugin repository

2014-07-30 Thread Junior Delaz
metadata.txt xxx.py ... help ... Try to download a plugin from plugins.qgis.org and check the structure of the zip file. I hope this helps you. Regards, Zoltan On Wed, 30 Jul 2014, Junior Delaz wrote: Hi all I'm tring to upload and share my first plugin

Re: [Qgis-developer] Get signal on edited feature ?

2014-07-31 Thread Junior Delaz
Hello, For the first question, I think you have done something like logFeaturesAdded(Idofmylayer, features) instead of doing self.logFeaturesAdded(Idofmylayer, features).The function you created has three args : self, layerId, addfeatures. When using it you should give him three args. The second

[Qgis-developer] What does mean empty tables in attribute table item properties in a print composer?

2014-10-08 Thread Junior Delaz
Hi all, I try to understand the use case of empty tables in print composer and am still confused. Create a new print composer and add an attribute table item set its height enough to show more rows than the maximal values of features you set. Add a second frame to this item. Is this second frame

Re: [Qgis-developer] What does mean empty tables in attribute table item properties in a print composer?

2014-10-08 Thread Junior Delaz
:20 pm, Junior Delaz del...@gmail.com wrote: Hi all, I try to understand the use case of empty tables in print composer and am still confused. Create a new print composer and add an attribute table item set its height enough to show more rows than the maximal values of features you set

Re: [Qgis-developer] What does mean empty tables in attribute table item properties in a print composer?

2014-10-11 Thread Junior Delaz
when there is no row (on real empty tables). 2014-10-09 13:28 GMT+02:00 Nyall Dawson nyall.daw...@gmail.com: On 9 October 2014 08:53, Junior Delaz del...@gmail.com wrote: Thanks Nyall. This is what I suspected. Then, none of the empty tables options should work on the frames in the example

[Qgis-developer] Impossible to keep QGIS 2.4 while updating QGIS master (osgeo4W nightly build)

2014-11-26 Thread Junior Delaz
Hello, I use OsGeo4W to install both QGIS stable and master releases. Due to the bug of QGIS 2.6.0-1 that crashes QGIS and ruins some older project file, I decided to not yet upgrade to 2.6 (and keep 2.4) but still update nightly builds. The first time I got 2.7, I choose to keep 2.4. After the

Re: [Qgis-developer] Questions about Dialog for Select by Expression

2014-12-01 Thread Junior Delaz
Hi All Lene, The height of the expression frame should indeed have a minimum value, to avoid closing it. But this is not a new behaviour. In QGIS 2.4, you could already close totally this frame if you drag down enough. I think it's a bug and you can fill a ticket unless it's an intended

Re: [Qgis-developer] [Bulk] Re: [Qgis-user] Retrieve value from another layer related to its localisation

2015-01-15 Thread Junior Delaz
. ...a bit tricky but it should work. Regards 2015-01-15 14:25 GMT+01:00 Junior Delaz del...@gmail.com: Thanks Enrico for your reply and for the plugin. I was aware of RefFunctions and has already used it for relational questions. And I agree with Jean that such functions (and others

[Qgis-developer] Retrieve value from another layer related to its localisation

2015-01-15 Thread Junior Delaz
Hi all, I have two shapefiles : a line one (called section) and a point one (called station) shapefiles. The line shapefiles has fields like ID_section, ID_first, ID_last The point file has an ID_station. All these define a kind of network where a section begins on a station and ends up at

Re: [Qgis-developer] [Bulk] Re: [Qgis-user] Retrieve value from another layer related to its localisation

2015-01-15 Thread Junior Delaz
source and target features will be returned Number of feature tested is limited to 10 to avoid time wasting loops Example geomnearest('targetLayer','TargetField') geomnearest('targetLayer','$geometry') geomnearest('targetLayer','$distance') 2015-01-15 11:19 GMT+01:00 Junior Delaz del

Re: [Qgis-developer] Problem when using spatial index

2015-01-21 Thread Junior Delaz
Some users [1] have already encountered this issue and i understood that it may be related to non correspondance between the number of rows in the .dbf file and number of geometry (some rows had no geometry). A simple Save As.. to another shapefile has solved the problem. [1]

Re: [Qgis-developer] problem with 'toreal' in field calculator

2015-03-10 Thread Junior Delaz
hi, If your field is recognized by QGIS as a string one, trying to overwrite its values type will fail as they are intended to be string in THIS field. This is why when you create a new numeric field and make conversion, it's ok (this new field expect numeric values, so it'll recognize your

Re: [Qgis-developer] wrong attribute values for postgis data in Feature attribute form

2015-03-26 Thread Junior Delaz
Hi, Raymond, you can use the row_number function to add a primary key to your view. Something like : CREATE OR REPLACE view myview as SELECT row_number () over ()::integer as id, fieldA, Field ... from mytable . will add an unique integer field _id_ to your view. And this one can be used in

[Qgis-developer] Pyqt4 : which signal is sent when dialog comes to foreground?

2015-03-30 Thread Junior Delaz
Hi, I'm working on a Python plugin for QGIS and need your help to do something. I'm a beginner in Python and C++ and just used plugin-builder for the architecture. My main dialog is a non modal one and does list print composers in the project. It means that while it's opened, user can delete or

Re: [Qgis-developer] Re : [Qgis-user] Pyqt4 : which signal is sent when dialog comes to foreground?

2015-03-31 Thread Junior Delaz
-developer@lists.osgeo.org qgis-developer@lists.osgeo.org Objet : [Qgis-developer] [Qgis-user] Pyqt4 : which signal is sent when dialog comes to foreground? Date : mar., mars 31, 2015 07:56 On Mon, Mar 30, 2015 at 6:12 PM, Junior Delaz del...@gmail.com del...@gmail.com wrote: I've read

[Qgis-developer] Re : Re : [Qgis-user] Pyqt4 : which signal is sent when dialog comes to foreground?

2015-04-09 Thread Junior Delaz
Ok thank you for the feedbaxk Envoyé depuis mon HTC - Reply message - De : Matthias Kuhn matth...@opengis.ch Pour : Junior Delaz del...@gmail.com Cc : qgis-developer qgis-developer@lists.osgeo.org Objet : [Qgis-developer] Re : [Qgis-user] Pyqt4 : which signal is sent when dialog comes

Re: [Qgis-developer] Re : [Qgis-user] Pyqt4 : which signal is sent when dialog comes to foreground?

2015-04-05 Thread Junior Delaz
that with this connection style you will receive the signal after deletion and are able to continue using your current update method. Best Matthias On 03/31/2015 02:04 PM, Junior Delaz wrote: Matthias, Thanks. I just give it a try it and all goes well with composerAdded. But not really well

Re: [Qgis-developer] Re : [Qgis-user] Pyqt4 : which signal is sent when dialog comes to foreground?

2015-04-07 Thread Junior Delaz
12:33 AM, Junior Delaz wrote: Hi, I do understand nothing. After I read your message, Matthias, I told myself that using QT. QueuedConnection should be the easiest way. Then i wrote self.iface.composerWillBeRemoved.connect(self.refreshList, Qt.QueuedConnection) But each time i delete

Re: [Qgis-developer] Re : [Qgis-user] Pyqt4 : which signal is sent when dialog comes to foreground?

2015-04-07 Thread Junior Delaz
seems unstable. Matthias On 04/06/2015 12:33 AM, Junior Delaz wrote: Hi, I do understand nothing. After I read your message, Matthias, I told myself that using QT. QueuedConnection should be the easiest way. Then i wrote self.iface.composerWillBeRemoved.connect(self.refreshList

Re: [Qgis-developer] Re : [Qgis-user] Pyqt4 : which signal is sent when dialog comes to foreground?

2015-04-08 Thread Junior Delaz
... On 04/07/2015 11:51 PM, Junior Delaz wrote: But why does composerRemoved not work? You can find it in the code on github repo but not on QGIS API website... 2015-04-07 23:35 GMT+02:00 Matthias Kuhn matth...@opengis.ch: Oops, That should have been composerWillBeRemoved Sorry