Re: [Qgis-user] Action in Qgis

2016-04-18 Thread Redoute
Am 18.04.2016 um 21:18 schrieb Piotr Kania:

> NIF = '[% "NumContrib" %]';

I think this currently doesn't work because of this bug:


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Action in Qgis

2016-04-18 Thread Piotr Kania

Here:
http://qgis.pt/blog/2014/06/18/accoes-em-python-no-qgis/

I found nice example of qgis action, I tried to use it in qgis, but it 
doesn't work:


NIF = '[% "NumContrib" %]';
nomeLayer = u'Situacao Actual - Props. e Predios'
tab = QgsMapLayerRegistry.instance().mapLayersByName(nomeLayer)[0];
#selecao per atributo;
sFilterExp = u'"NumContrib" = %s' % NIF;
it = tab.getFeatures(QgsFeatureRequest().setFilterExpression (sFilterExp 
) );

tab.setSelectedFeatures( [f.id() for f in it ] );

Can someone explain how to adjust it? It should select all clicked 
values in attribute table



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] What's the meaning of {1 ?} {2, ?} {3, ?} on attribute table title bar?

2016-04-18 Thread Carlos Dávila
In addition to layer name and number of total/filtered/selected 
features, {1 ?} {2,?} {3,?} also appears at the end of attribute table 
title bar as a fixed part. What's does it mean?

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS Security warning: project macros have been disabled.

2016-04-18 Thread Matthias Kuhn
Hi Marian,

What setting do you have for "Enable Macros" in Settings -> Options ->
General?
I realized that the setting "Ask" does not work (it asks but will fail),
but with the setting "Allow" it did run ok.

Matthias

On 04/18/2016 07:16 PM, Tudorache, Marian wrote:
> Yes I know but it does not work anymore. I have used this in QGIS 2.8
>
> This is the script that I want to be executed in Open Project area
>
> execfile(u'/opt/support_sw/current/spam/python/Controllers/spam_menu.py'.encode('UTF-8'))
>
> The script does not start and I get this warning message: QGIS Security 
> warning: project macros have been disabled.
> I have the same script in 2.8 and it runs without any problem.
>
> Let's rephrase my question. Is something new in QGIS 2.10 which broke this 
> old functionality? Or should change the way how to call a script?
>
>
> Thanks,
> Marian
>
> -Original Message-
> From: Kai Borgolte [mailto:kai.borgo...@gmx.de]
> Sent: April-16-16 3:06 AM
> To: Tudorache, Marian; qgis-user@lists.osgeo.org
> Subject: Re: [Qgis-user] QGIS Security warning: project macros have been 
> disabled.
>
> Am 15.04.2016 um 22:31 schrieb Tudorache, Marian:
>
>> Is anything new in QGIS 2.10 which affects the macros launching?
> In Settings, Options on the General tab there is the option "Enable macros". 
> This is not new.
>
>
> This electronic message, as well as any transmitted files included in the 
> electronic message, may contain privileged or confidential information and is 
> intended solely for the use of the individual(s) or entity to which it is 
> addressed. If you have received this electronic message in error please 
> notify the sender immediately and delete the electronic message. Any 
> unauthorized copying, disclosure or distribution of the electronic message is 
> strictly forbidden. NAV CANADA accepts no liability for any damage caused by 
> any virus and/or other malicious code transmitted by this electronic 
> communication.
>
> Le présent message électronique et tout fichier qui peut y être joint peuvent 
> contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
> exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
> reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
> immédiatement et supprimez le. Toute reproduction, divulgation ou 
> distribution du présent message électronique est strictement interdite. NAV 
> CANADA n’assume aucune responsabilité en cas de dommage causé par tout virus 
> ou autre programme malveillant transmis par ce message électronique.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

-- 
Matthias Kuhn
OPENGIS.ch - https://www.opengis.ch
Spatial • (Q)GIS • PostGIS • Open Source

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS Security warning: project macros have been disabled.

2016-04-18 Thread Tudorache, Marian
Yes I know but it does not work anymore. I have used this in QGIS 2.8

This is the script that I want to be executed in Open Project area

execfile(u'/opt/support_sw/current/spam/python/Controllers/spam_menu.py'.encode('UTF-8'))

The script does not start and I get this warning message: QGIS Security 
warning: project macros have been disabled.
I have the same script in 2.8 and it runs without any problem.

Let's rephrase my question. Is something new in QGIS 2.10 which broke this old 
functionality? Or should change the way how to call a script?


Thanks,
Marian

-Original Message-
From: Kai Borgolte [mailto:kai.borgo...@gmx.de]
Sent: April-16-16 3:06 AM
To: Tudorache, Marian; qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Security warning: project macros have been 
disabled.

Am 15.04.2016 um 22:31 schrieb Tudorache, Marian:

> Is anything new in QGIS 2.10 which affects the macros launching?

In Settings, Options on the General tab there is the option "Enable macros". 
This is not new.


This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Simplest QGIS Web Client

2016-04-18 Thread Paolo Cavallini
Il 18/04/2016 10:21, Edi Piqoni ha scritto:

> I have some QGIS files and I want to serve them, so a browser can open them.
> What is the current best solution (I see *QGIS-Web-Client
> * but its last update is on
> June 11, 2014, and I was wondering if that is what everyone is using or
> whether there are other alternatives?)
> 
> I've used leaflet.js before, but I was looking for a solution that would
> allow me to drop the files in some folder and serve them automatically,
> without too much programming involved.

best for this is the plugin qgis2web
all the best.

-- 
Paolo Cavallini - www.faunalia.eu
QGIS & PostGIS courses: http://www.faunalia.eu/training.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Simplest QGIS Web Client

2016-04-18 Thread Edi Piqoni

Hi everybody,

I have some QGIS files and I want to serve them, so a browser can open them.
What is the current best solution (I see *QGIS-Web-Client 
* but its last update is on 
June 11, 2014, and I was wondering if that is what everyone is using or 
whether there are other alternatives?)


I've used leaflet.js before, but I was looking for a solution that would 
allow me to drop the files in some folder and serve them automatically, 
without too much programming involved.


Best,
Edi
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user