[Qgis-user] Problem loading plugin only on Qgis startup

2015-04-09 Thread Amedeo Fadini
Hi evrybody,

I started to create plugin from plugin builder, it works fine when I
enable it from Manage and install plugins  when Qgis desktop is
already open, but if I close Qgis with my plugin enabled, when it
starts next time raisa an error at startup:


error calling class_factory() method

and

ImportError: No module named resources_rc

So I need to  relaod it with plugin reloader, then it works fine

Of course the file resources_rc.py exists and I compiled it with pyrcc4,

the first line of my plugin file are:

---
import sys
# Import the PyQt and QGIS libraries
from PyQt4.QtCore import QSettings, QTranslator, qVersion, QCoreApplication
from PyQt4.QtGui import QAction, QIcon
from PyQt4.Qt import QApplication
from qgis.core import *

# Initialize Qt resources from file resources.py
import resources_rc
# Import the code for the dialog
from ctr_import_dialog import ImportCtrDialog
import os.path
---

Maybe I need some other modules or I'm not using the right order?

Suggestions are welcome


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


Re: [Qgis-user] qgis-server vs layer id

2015-04-09 Thread Burghardt.Scholle
Hi Nathan,

oh, good to know. I'll try the workaround for now. I thought the layer id would 
have a greater importance :-).

Many thanks
Burghardt

***

mailto:burghardt.scho...@stadt.wolfsburg.de



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


Re: [Qgis-user] QGIS/ArcGIS python interference

2015-04-09 Thread Luigi Pirelli
hi Torsten

I had a similar problem to run an external water model (of a client)
requiring a different set of python libs and linked libraries... I use
python subprocess command, that is more or less the same mechanism
applied by Processing Toolbox to run some external command providers.
In this way you can communicate with your application using stdin,
stdout and stderr... and receive exit codes.
More complex interprocess communication can be obtained parsing
stdout, or piping on common files... or a lot of other mechanism.

a good support by qgis can be obtained creating a Processing script
that execute subprocess command of your application. This script can
manage processing progressbar basing on result read from stdout.

I hope this can help you

regards, Luigi Pirelli

**
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Elance: https://www.elance.com/s/edit/luigipirelli/
* GitHub: https://github.com/luipir
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* Mastering QGIS:
https://www.packtpub.com/application-development/mastering-qgis
**


On 9 April 2015 at 22:02, Torsten Lange torsten.la...@mail.de wrote:
 Hello qgis-user fellows,

 I would like to pose a more general question here, because obviously my
 previous mails seemed just too OT ;)

 Due to some severe problems when coincidently accessing/editing spatial data
 (not the same data but in the same directory) with ArcGIS on remote (samba)
 drives - which our IT sofar never couldn't really explain - I started using
 QGIS to easy the situation for my colleagues and me.

 However, beside the sporty challenge for me to fastly adopt the productive
 operation of the QGIS including some still apparent drawbacks I sometimes
 just depend on functionallity that only ArcGIS provides. In our geological
 driven case thats for sure the very sophisticated Spline with Barrier
 function. We currently changed our workflow that previously based on a
 ArcView 3.x plugin, but which caused more and more trouble since
 Windows7/64bit rules the hardware in the department.

 At one time I agreed to program a workflow that does all the necessary
 preprocessing and final gridding depending on quite a number of input
 parameters. Of course, I had no plan to cut me off as a (quite happy) QGIS
 user who by using QGIS in fact did an altruistic favour to the colleagues
 but esp. to the IT dep. ;)

 So, I wrote a general python script using arcpy/spatial analyst... that
 accepts the input parameters as dictionary provided on command line or using
 a seperate python script defining a class holding the input parameter. I
 created a QGIS dialog plugin that collects all those parameters in an
 appropriate manner in the form of:

 start /i cmd /c python myWorkflow.py -d configDict = {'inputIsoLineFile':
 rU:\... etc etc}

 I also learned I had to copy the xxx64bit.pth-File (don't remember the
 correct name right now) from the ArcGIS-Python directory to the QGIS python
 site-packages directory.

 Now, beside some error messages (some gdal dll in QGISetc are not real
 32bit or so), which seem to have no real impact on the run itself, I got
 my first grids, which I sent to a post processing befor leaving the desktop.


 This to getting work cost me a lot of extra time. I mean, I did this en
 passent while fullfilling my main work. So I'm really interested in what
 would be your approach to that! In fact to me it seems much more easy if I
 could start a cmd session that has no inherits from what so ever and comes
 with the environment as if I would start it from the Windows menu.

 Sorry for the long description, appreciating some thoughts of you!
 Torsten
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] qgis-server vs layer id

2015-04-09 Thread Alessandro Pasotti
Hi Andreas,

the fix for layer IDs should not be particularly hard, I don't know
about the persistent cache, do you have a kind of QEP with some more
details on your proposed caching behavior?


2015-04-09 9:03 GMT+02:00 Andreas Neumann a.neum...@carto.net:
 Hi,

 I would prefer if this issue could be fixed within QGIS Server. I also have
 the same problem when copying projects.

 We could combine this effort with a more persistent project/layer cache of
 QGIS server, so the cache would survive Apache restarts.

 I would be available for co-financing if others would join the effort.

 Andreas


 On 09.04.2015 08:53, Nathan Woodrow wrote:

 Hey Burghardt,

 As a workaround for now it's pretty easy to read the xml file and replace
 the layer ids using Python.  QGIS doesn't care about the format of the id as
 long as it's a strings so you could replace them all with a GUID if you
 wanted.

 - Nathan

 On Thu, 9 Apr 2015 at 16:46 burghardt.scho...@stadt.wolfsburg.de wrote:

 Dear list,

 I enjoy working with templates for QGIS projects. This brings when working
 with QGIS Desktop many advantages, but leads to problems with the QGIS Web
 Client. When I save a project file under a different name, the id of the
 layer, unfortunately, is maintained. If I use both project files in the
 qgis-server, this creates problems with caching of layer. That is
 particularly evident when identical layer named differently or otherwise be
 symbolized.
 This topic is discussed on several occasions in the past [1,2] and has
 been referred to as bug or limitation. In [2] it's said that the
 combination of project name and layer ID could be a solution for the
 problem. Up to and including version 2.8.1, the change has not yet been
 carried out. Is there an effort to change the creation of the layer ID in a
 future release?

 Kind regards
 Burghardt

 [1]
 http://osgeo-org.1560.x6.nabble.com/Qgis-server-returns-map-from-another-project-that-is-defined-in-URL-td5153101.html#a5153150
 [2] http://hub.qgis.org/issues/7956

 ***
 mailto:burghardt.scho...@stadt.wolfsburg.de


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



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



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



-- 
Alessandro Pasotti
w3:   www.itopen.it
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Grid extent resctriction on some SAGA algorithms too extrict

2015-04-09 Thread RNanclares
Hi there,
i was trying to conduct some hydrological analysis using SAGA through the
Processing Toolbox and as always when i try to run the 'Channel Network'
algorithm i get the warning input layers do not have the same grid extent.
Even when the layers have roughly (roughly in this case means up to the
ninth decimal place) the same extent.

I've tried to clip the rasters to exactly the same extent without any
success so i assume there are only a few solutions left which aren't easy or
practical.

Then i found the script, /SagaAlgorithm212.py/, and the function responsible
for this check /checkParameterValuesBeforeExecuting/. IMO the grid extent
should be checked up to the 7 or 8 decimal places not the full mantissa (16
decimal places in my case, for and EPSG:4326 raster layer).

-100.00013869,17.99986095 :
-98.999861031065,19.000138968900
-100.00013840,17.99986089 :
-98.99986018,19.00013876

Is there any reason behind this behavior? Could the extent check be less
strict?

Cheers!



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Grid-extent-resctriction-on-some-SAGA-algorithms-too-extrict-tp5200669.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS/ArcGIS python interference

2015-04-09 Thread Torsten Lange
Hi Luigi,

I think I got the idea of what you meant. Actually, in the very beginning befor 
using the QGIS plugin functionality I wrote a pure PyQT-Dialog which I called 
using the QGIS processing script connector. With the inputs I fed a simple 
python script, which however didn't applied any ArcGis-Python module. Ok, it 
might be worth, to go that step back to this more simple approach.

Thanks much for your thoughts!
Torsten

 Am 09-Apr-2015 22:21:54 +0200 schrieb lui...@gmail.com: 
hi Torsten

 I had a similar problem to run an external water model (of a client)
 requiring a different set of python libs and linked libraries... I use
 python subprocess command, that is more or less the same mechanism
 applied by Processing Toolbox to run some external command providers.
 In this way you can communicate with your application using stdin,
 stdout and stderr... and receive exit codes.
 More complex interprocess communication can be obtained parsing
 stdout, or piping on common files... or a lot of other mechanism.

 a good support by qgis can be obtained creating a Processing script
 that execute subprocess command of your application. This script can
 manage processing progressbar basing on result read from stdout.

 I hope this can help you

 regards, Luigi Pirelli

 
**
 * LinkedIn: https://www.linkedin.com/in/luigipirelli
 * Elance: https://www.elance.com/s/edit/luigipirelli/
 * GitHub: https://github.com/luipir
 * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
 * Mastering QGIS:
https://www.packtpub.com/application-development/mastering-qgis
 
**

 On 9 April 2015 at 22:02, Torsten Lange  wrote:
  Hello qgis-user fellows,
 
  I would like to pose a more general question here, because obviously my
  previous mails seemed just too OT ;)
 
  Due to some severe problems when coincidently accessing/editing spatial data
  (not the same data but in the same directory) with ArcGIS on remote (samba)
  drives - which our IT sofar never couldn't really explain - I started using
  QGIS to easy the situation for my colleagues and me.
 
  However, beside the sporty challenge for me to fastly adopt the productive
  operation of the QGIS including some still apparent drawbacks I sometimes
  just depend on functionallity that only ArcGIS provides. In our geological
  driven case thats for sure the very sophisticated Spline with Barrier
  function. We currently changed our workflow that previously based on a
  ArcView 3.x plugin, but which caused more and more trouble since
  Windows7/64bit rules the hardware in the department.
 
  At one time I agreed to program a workflow that does all the necessary
  preprocessing and final gridding depending on quite a number of input
  parameters. Of course, I had no plan to cut me off as a (quite happy) QGIS
  user who by using QGIS in fact did an altruistic favour to the colleagues
  but esp. to the IT dep. ;)
 
  So, I wrote a general python script using arcpy/spatial analyst... that
  accepts the input parameters as dictionary provided on command line or using
  a seperate python script defining a class holding the input parameter. I
  created a QGIS dialog plugin that collects all those parameters in an
  appropriate manner in the form of:
 
  start /i cmd /c python myWorkflow.py -d configDict = {'inputIsoLineFile':
  rU:\... etc etc}
 
  I also learned I had to copy the xxx64bit.pth-File (don't remember the
  correct name right now) from the ArcGIS-Python directory to the QGIS python
  site-packages directory.
 
  Now, beside some error messages (some gdal dll in QGISetc are not real
  32bit or so), which seem to have no real impact on the run itself, I got
  my first grids, which I sent to a post processing befor leaving the desktop.
 
 
  This to getting work cost me a lot of extra time. I mean, I did this en
  passent while fullfilling my main work. So I'm really interested in what
  would be your approach to that! In fact to me it seems much more easy if I
  could start a cmd session that has no inherits from what so ever and comes
  with the environment as if I would start it from the Windows menu.
 
  Sorry for the long description, appreciating some thoughts of you!
  Torsten
  ___
  Qgis-user mailing list
  Qgis-user@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] QGIS/ArcGIS python interference

2015-04-09 Thread Torsten Lange
Hello qgis-user fellows,

I would like to pose a more general question here, because obviously my 
previous mails seemed just too OT ;)

Due to some severe problems when coincidently accessing/editing spatial data 
(not the same data but in the same directory) with ArcGIS on remote (samba) 
drives - which our IT sofar never couldn't really explain - I started using 
QGIS to easy the situation for my colleagues and me.

However, beside the sporty challenge for me to fastly adopt the productive 
operation of the QGIS including some still apparent drawbacks I sometimes just 
depend on functionallity that only ArcGIS provides. In our geological driven 
case thats for sure the very sophisticated Spline with Barrier function. We 
currently changed our workflow that previously based on a ArcView 3.x plugin, 
but which caused more and more trouble since Windows7/64bit rules the hardware 
in the department.

At one time I agreed to program a workflow that does all the necessary 
preprocessing and final gridding depending on quite a number of input 
parameters. Of course, I had no plan to cut me off as a (quite happy) QGIS user 
who by using QGIS in fact did an altruistic favour to the colleagues but esp. 
to the IT dep. ;)

So, I wrote a general python script using arcpy/spatial analyst... that accepts 
the input parameters as dictionary provided on command line or using a seperate 
python script defining a class holding the input parameter. I created a QGIS 
dialog plugin that collects all those parameters in an appropriate manner in 
the form of:

start /i cmd /c python myWorkflow.py -d configDict = {'inputIsoLineFile': 
rU:\... etc etc}

I also learned I had to copy the xxx64bit.pth-File (don't remember the correct 
name right now) from the ArcGIS-Python directory to the QGIS python 
site-packages directory.

Now, beside some error messages (some gdal dll in QGISetc are not real 
32bit or so), which seem to have no real impact on the run itself, I got my 
first grids, which I sent to a post processing befor leaving the desktop.

This to getting work cost me a lot of extra time. I mean, I did this en 
passent while fullfilling my main work. So I'm really interested in what would 
be your approach to that! In fact to me it seems much more easy if I could 
start a cmd session that has no inherits from what so ever and comes with the 
environment as if I would start it from the Windows menu.

Sorry for the long description, appreciating some thoughts of you!
Torsten
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS packages for CentOS 7

2015-04-09 Thread Philipp Höhn
Hi.

I have a similar question: Is there a repository for qgis-mapserver for 
ArchLinux? I couldn't find any but would really like to use it on our machine.

Kind regards,
Philipp


 On 09 Apr 2015, at 11:03, Otto Dassau das...@gbd-consult.de wrote:
 
 Hi,
 
 are there current QGIS packages available in a repository for CentOS 7? I
 tried the fedora.vitu.ch/EL/qgis.repo from the download page, but it doesn't
 work - at least for CentOS 7.
 
 http://fedora.vitu.ch/EL/7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error
 404 - Not Found
 
 Thanks a lot
 Otto
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] qgis-server vs layer id

2015-04-09 Thread Nathan Woodrow
Hey Burghardt,

As a workaround for now it's pretty easy to read the xml file and replace
the layer ids using Python.  QGIS doesn't care about the format of the id
as long as it's a strings so you could replace them all with a GUID if you
wanted.

- Nathan

On Thu, 9 Apr 2015 at 16:46 burghardt.scho...@stadt.wolfsburg.de wrote:

 Dear list,

 I enjoy working with templates for QGIS projects. This brings when working
 with QGIS Desktop many advantages, but leads to problems with the QGIS Web
 Client. When I save a project file under a different name, the id of the
 layer, unfortunately, is maintained. If I use both project files in the
 qgis-server, this creates problems with caching of layer. That is
 particularly evident when identical layer named differently or otherwise be
 symbolized.
 This topic is discussed on several occasions in the past [1,2] and has
 been referred to as bug or limitation. In [2] it's said that the
 combination of project name and layer ID could be a solution for the
 problem. Up to and including version 2.8.1, the change has not yet been
 carried out. Is there an effort to change the creation of the layer ID in a
 future release?

 Kind regards
 Burghardt

 [1] http://osgeo-org.1560.x6.nabble.com/Qgis-server-returns-map-
 from-another-project-that-is-defined-in-URL-td5153101.html#a5153150
 [2] http://hub.qgis.org/issues/7956

 ***
 mailto:burghardt.scho...@stadt.wolfsburg.de


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

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

Re: [Qgis-user] layer effects

2015-04-09 Thread Luigi Pirelli
and already fixed by Nyall... sorry for the late ;)

https://github.com/qgis/QGIS/commit/c34f035cf667525b0afafb19be2d45409d201a8c

Regards, Luigi Pirelli

**
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Elance: https://www.elance.com/s/edit/luigipirelli/
* GitHub: https://github.com/luipir
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* Mastering QGIS:
https://www.packtpub.com/application-development/mastering-qgis
**


On 9 April 2015 at 11:56, Paulo van Breugel p.vanbreu...@gmail.com wrote:
 You're right, created a bug report

 On Thu, Apr 9, 2015 at 11:38 AM, Luigi Pirelli lui...@gmail.com wrote:

 Hi Paulo,

 I'm not expert in cartography, so I can't directly help you... I would
 say that leaving this message here, in the user list, is not useful
 for Nyall and all qgis developers, may you create a bug report (if it
 is) or a message in qgis-developer?

 would be good also add more info about your platform

 regards, Luigi Pirelli


 **
 * LinkedIn: https://www.linkedin.com/in/luigipirelli
 * Elance: https://www.elance.com/s/edit/luigipirelli/
 * GitHub: https://github.com/luipir
 * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
 * Mastering QGIS:
 https://www.packtpub.com/application-development/mastering-qgis

 **


 On 9 April 2015 at 11:04, Paulo van Breugel p.vanbreu...@gmail.com
 wrote:
  Just compiled the latest QGIS dev to try out the layer effects. They are
  great!
 
  Only thing is that when I apply a layer effect I get the following
  warning:
 
  Diagrams: No attributes added.: You did not add any attributes to this
  diagram layer. Please specify the attributes to visualize on the
  diagrams or
  disable diagrams.
 
 
  However, diagrams are disabled


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


Re: [Qgis-user] qgis-server vs layer id

2015-04-09 Thread Andreas Neumann

Hi,

I would prefer if this issue could be fixed within QGIS Server. I also 
have the same problem when copying projects.


We could combine this effort with a more persistent project/layer cache 
of QGIS server, so the cache would survive Apache restarts.


I would be available for co-financing if others would join the effort.

Andreas

On 09.04.2015 08:53, Nathan Woodrow wrote:

Hey Burghardt,

As a workaround for now it's pretty easy to read the xml file and 
replace the layer ids using Python.  QGIS doesn't care about the 
format of the id as long as it's a strings so you could replace them 
all with a GUID if you wanted.


- Nathan

On Thu, 9 Apr 2015 at 16:46 burghardt.scho...@stadt.wolfsburg.de 
mailto:burghardt.scho...@stadt.wolfsburg.de wrote:


Dear list,

I enjoy working with templates for QGIS projects. This brings when
working with QGIS Desktop many advantages, but leads to problems
with the QGIS Web Client. When I save a project file under a
different name, the id of the layer, unfortunately, is maintained.
If I use both project files in the qgis-server, this creates
problems with caching of layer. That is particularly evident when
identical layer named differently or otherwise be symbolized.
This topic is discussed on several occasions in the past [1,2] and
has been referred to as bug or limitation. In [2] it's said
that the combination of project name and layer ID could be a
solution for the problem. Up to and including version 2.8.1, the
change has not yet been carried out. Is there an effort to change
the creation of the layer ID in a future release?

Kind regards
Burghardt

[1]

http://osgeo-org.1560.x6.nabble.com/Qgis-server-returns-map-from-another-project-that-is-defined-in-URL-td5153101.html#a5153150
[2] http://hub.qgis.org/issues/7956

***
mailto:burghardt.scho...@stadt.wolfsburg.de
mailto:burghardt.scho...@stadt.wolfsburg.de


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



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


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

Re: [Qgis-user] layer effects

2015-04-09 Thread Paulo van Breugel
You're right, created a bug report

On Thu, Apr 9, 2015 at 11:38 AM, Luigi Pirelli lui...@gmail.com wrote:

 Hi Paulo,

 I'm not expert in cartography, so I can't directly help you... I would
 say that leaving this message here, in the user list, is not useful
 for Nyall and all qgis developers, may you create a bug report (if it
 is) or a message in qgis-developer?

 would be good also add more info about your platform

 regards, Luigi Pirelli


 **
 * LinkedIn: https://www.linkedin.com/in/luigipirelli
 * Elance: https://www.elance.com/s/edit/luigipirelli/
 * GitHub: https://github.com/luipir
 * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
 * Mastering QGIS:
 https://www.packtpub.com/application-development/mastering-qgis

 **


 On 9 April 2015 at 11:04, Paulo van Breugel p.vanbreu...@gmail.com
 wrote:
  Just compiled the latest QGIS dev to try out the layer effects. They are
  great!
 
  Only thing is that when I apply a layer effect I get the following
 warning:
 
  Diagrams: No attributes added.: You did not add any attributes to this
  diagram layer. Please specify the attributes to visualize on the
 diagrams or
  disable diagrams.
 
 
  However, diagrams are disabled

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

Re: [Qgis-user] layer effects

2015-04-09 Thread Luigi Pirelli
Hi Paulo,

I'm not expert in cartography, so I can't directly help you... I would
say that leaving this message here, in the user list, is not useful
for Nyall and all qgis developers, may you create a bug report (if it
is) or a message in qgis-developer?

would be good also add more info about your platform

regards, Luigi Pirelli

**
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Elance: https://www.elance.com/s/edit/luigipirelli/
* GitHub: https://github.com/luipir
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* Mastering QGIS:
https://www.packtpub.com/application-development/mastering-qgis
**


On 9 April 2015 at 11:04, Paulo van Breugel p.vanbreu...@gmail.com wrote:
 Just compiled the latest QGIS dev to try out the layer effects. They are
 great!

 Only thing is that when I apply a layer effect I get the following warning:

 Diagrams: No attributes added.: You did not add any attributes to this
 diagram layer. Please specify the attributes to visualize on the diagrams or
 disable diagrams.


 However, diagrams are disabled
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS packages for CentOS 7

2015-04-09 Thread Otto Dassau
Hi,

are there current QGIS packages available in a repository for CentOS 7? I
tried the fedora.vitu.ch/EL/qgis.repo from the download page, but it doesn't
work - at least for CentOS 7.

http://fedora.vitu.ch/EL/7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error
404 - Not Found

Thanks a lot
Otto
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] layer effects

2015-04-09 Thread Paulo van Breugel
Just compiled the latest QGIS dev to try out the layer effects. They are
great!

Only thing is that when I apply a layer effect I get the following warning:

Diagrams: No attributes added.: You did not add any attributes to this
diagram layer. Please specify the attributes to visualize on the diagrams
or disable diagrams.


However, diagrams are disabled
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] qgis-server vs layer id

2015-04-09 Thread Burghardt.Scholle
Dear list,

I enjoy working with templates for QGIS projects. This brings when working with 
QGIS Desktop many advantages, but leads to problems with the QGIS Web Client. 
When I save a project file under a different name, the id of the layer, 
unfortunately, is maintained. If I use both project files in the qgis-server, 
this creates problems with caching of layer. That is particularly evident when 
identical layer named differently or otherwise be symbolized. 
This topic is discussed on several occasions in the past [1,2] and has been 
referred to as bug or limitation. In [2] it's said that the combination of 
project name and layer ID could be a solution for the problem. Up to and 
including version 2.8.1, the change has not yet been carried out. Is there an 
effort to change the creation of the layer ID in a future release?

Kind regards
Burghardt

[1] 
http://osgeo-org.1560.x6.nabble.com/Qgis-server-returns-map-from-another-project-that-is-defined-in-URL-td5153101.html#a5153150
[2] http://hub.qgis.org/issues/7956

***
mailto:burghardt.scho...@stadt.wolfsburg.de


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


Re: [Qgis-user] QGIS/ArcGIS python interference

2015-04-09 Thread Nathan Woodrow
Hey Torsten,

What seems to the issue?  You are trying to run a arcpy script from inside
qgis?

Nathan

On Fri, 10 Apr 2015 6:02 am Torsten Lange torsten.la...@mail.de wrote:

 Hello qgis-user fellows,

 I would like to pose a more general question here, because obviously my
 previous mails seemed just too OT ;)

 Due to some severe problems when coincidently accessing/editing spatial
 data (not the same data but in the same directory) with ArcGIS on remote
 (samba) drives - which our IT sofar never couldn't really explain - I
 started using QGIS to easy the situation for my colleagues and me.

 However, beside the sporty challenge for me to fastly adopt the productive
 operation of the QGIS including some still apparent drawbacks I sometimes
 just depend on functionallity that only ArcGIS provides. In our geological
 driven case thats for sure the very sophisticated Spline with Barrier
 function. We currently changed our workflow that previously based on a
 ArcView 3.x plugin, but which caused more and more trouble since
 Windows7/64bit rules the hardware in the department.

 At one time I agreed to program a workflow that does all the necessary
 preprocessing and final gridding depending on quite a number of input
 parameters. Of course, I had no plan to cut me off as a (quite happy) QGIS
 user who by using QGIS in fact did an altruistic favour to the colleagues
 but esp. to the IT dep. ;)

 So, I wrote a general python script using arcpy/spatial analyst... that
 accepts the input parameters as dictionary provided on command line or
 using a seperate python script defining a class holding the input
 parameter. I created a QGIS dialog plugin that collects all those
 parameters in an appropriate manner in the form of:

 start /i cmd /c python myWorkflow.py -d configDict = {'inputIsoLineFile':
 rU:\... etc etc}

 I also learned I had to copy the xxx64bit.pth-File (don't remember the
 correct name right now) from the ArcGIS-Python directory to the QGIS python
 site-packages directory.

 Now, beside some error messages (some gdal dll in QGISetc are not real
 32bit or so), which seem to have no real impact on the run itself, I
 got my first grids, which I sent to a post processing befor leaving the
 desktop.


 This to getting work cost me a lot of extra time. I mean, I did this en
 passent while fullfilling my main work. So I'm really interested in what
 would be your approach to that! In fact to me it seems much more easy if I
 could start a cmd session that has no inherits from what so ever and comes
 with the environment as if I would start it from the Windows menu.

 Sorry for the long description, appreciating some thoughts of you!
 Torsten ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] website template for local QGIS user groups

2015-04-09 Thread Otto Dassau
Dear local QGIS communities,

the QGIS Project now provides a clone of the QGIS U.S. User Group site [1]
at https://github.com/qgis/qgis-template.github.io. The aim is to provide a
generalized template, that local user groups can use for their website. 

The british [2] and italian [3] QGIS user group already started their site
based on the template. You are welcome to join but of course you don't have
to.

[1] http://qgis.us/
[2] http://qgis.uk/
[3] http://qgis.it/

If you have questions or need help, subscribe and send an email to the
Qgis-community-team list.

Kind Regards,
Otto
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] making mistakes with raster calculator

2015-04-09 Thread Claas Leiner

Vou can do it with:

(( 3_NDFI@1 = 0 ) * 0) + ((3_NDFI@1  0)*5)

Claas

Am 09.04.2015 um 00:09 schrieb Giacomo Fontanelli:

Dear forum

I use QGIS 2.8.1.

I have a raster map, Float32, pixel values range from -0.7 to 1.

I Would like to make a map with pixel having only two values:

pixels with values = 0 should be 0

pixels with values  0 should be 5.

the sintax

( 3_NDFI@1 = 0 ) =0 AND  ( 3_NDFI@1  0 ) =5

doesn't work because it produces a map with only 0 values.

In order to reach my goal I must do

( 3_NDFI@1 = 0 ) =0 AND  ( 3_NDFI@1  0 ) =1

then multiply result by 5.

What's the problem?
Is it possible to fulfil the purpose with only one raster operation?

Thank you very much




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


[Qgis-user] Georeferencer does not start

2015-04-09 Thread Karl Zinglersen
The Georeferencer plugin does not start in QGIS 2.8.1 nor latest dev
version.
The plugin is
- installed by default
- activation is checked in plugin manager and
- appear in C:/OSGeo4W64/apps/qgis/plugins/  dated to 26-02-2015
- appear as a button and menu item
But unlike some weeks ago, the georeferencer dialog does not appear when
pressing the button.

I have deleted the .dll and done an OSGEO4W reinstall of both 2.8.1. and
dev without luck.

Is this a bug, or could it be something on my Windows 7 or Symantec
Endpoint protection anti virus applications stopping the dialog box?
Although a check didn't reveal any logged problems there.
I have no problems with any other QGIS dialog boxes.

Karl

-- 
Karl Brix Zinglersen
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user