Re: [Qgis-user] How to run SEXTANTE algorithms outside of QGIS Python console?

2013-05-15 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Il 14/05/2013 23:04, Martin Lacayo ha scritto:

 Our software (naturalcapitalproject.org) is developed on Linux but
 packaged for Windows.

Hi Martin,
could you please let us know more about this?
I do not see any reference to QGIS.
All the best.
- -- 
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.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlGTJgEACgkQ/NedwLUzIr60JgCeMZzOh+96CESwhbjdKFZ9Hlg4
BycAnicpMj4TZosMXotgIg9Xo+luGxtu
=j3ao
-END PGP SIGNATURE-
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Adding GRASS Vector layer

2013-05-15 Thread Paulo van Breugel
I don't know about OSX, but on Linux GRASS GIS 7.0 is not yet supported in QGIS 
(grass-gdal plugin is not yet working I believe). Try if a vector layer in 
GRASS 6.4 works.




Sent from Samsung tabletKurt Springs ferret_b...@mac.com wrote:I'm not sure 
about right.  I have to use data that comes off of two different projections 
systems, therefore two different folders, which I have done before.  In fact, 
the map I'm working on is already using different folders for the raster DEMs 
and the Vector rivers, lakes, and ocean.  They are all in my grassdata folder 
under my home directory.

Kurt
On May 14, 2013, at 4:45 PM, Alfonso Flaquer wrote:

 Maybe is a dumb question, but did You set the right grass folder in qgis?
 
 AfLa
 
 El 14-05-2013, a las 15:01, Kurt Springs ferret_b...@mac.com escribió:
 
 Hi all,
 
 I am trying to add a point vector layer from GRASS to my QGIS map.  The 
 GRASS layer was generated from a an ascii file, and I could see the points 
 in GRASS.  When I went to import into QGIS it says No layers available in 
 this map.  I know I've done this before.  Anyone have any ideas on what's 
 wrong, and more importantly, how to fix it?
 
 I generated the vector layers on GRASS 7.0 and am using William 
 Kyngesburye's QGIS 1.8.0-2 on my OS X 10.7.5 Lion.
 
 Kurt
 ___
 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


Re: [Qgis-user] statist plugin

2013-05-15 Thread Alexander Bruy
Hi Matteo,

this plugin (and many others) is broken due API changes in QGIS 1.9.
I'll fix all my plugins API will be really freezed.

On Tue, 14 May 2013 15:09:24 +0200
matteo matteo.ghe...@gmail.com wrote:

 Hi guys,
 I downloaded the statist plugin but I receive some errors like:
 
 
 Errore durante l'esecuzione di codice Python:
 Traceback (most recent call last):
File /home/matteo/.qgis2/python/plugins/statist/statistdialog.py, 
 line 110, in reloadFields
  self.cmbFields.addItems(utils.getFieldNames(layer, [QVariant.Int, 
 QVariant.Double]))
File /home/matteo/.qgis2/python/plugins/statist/statist_utils.py, 
 line 57, in getFieldNames
  for idx, field in fieldMap.iteritems():
 AttributeError: 'QgsFields' object has no attribute 'iteritems'
 Versione Python:
 2.7.3 (default, Aug  1 2012, 05:27:35)
 [GCC 4.6.3]
 Versione di QGIS:
 1.9.0-Master Master, exported
 Percorso Python: ['/home/matteo/.qgis2/python/plugins/sextante_taudem', 
 '/home/matteo/.qgis2/python/plugins/sextante', '/usr/share/qgis/python', 
 '/home/matteo/.qgis2/python', '/home/matteo/.qgis2/python/plugins', 
 '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', 
 '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', 
 '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', 
 '/usr/local/lib/python2.7/dist-packages', 
 '/usr/lib/python2.7/dist-packages', 
 '/usr/lib/python2.7/dist-packages/PIL', 
 '/usr/lib/python2.7/dist-packages/gst-0.10', 
 '/usr/lib/python2.7/dist-packages/gtk-2.0', 
 '/usr/lib/pymodules/python2.7', 
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', 
 '/usr/lib/python2.7/dist-packages/ubuntuone-client', 
 '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel', 
 '/usr/lib/python2.7/dist-packages/ubuntuone-couch', 
 '/usr/lib/python2.7/dist-packages/ubuntuone-installer', 
 '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol', 
 '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', 
 '/home/matteo/.qgis2/python/plugins/mmqgis/forms', 
 '/usr/share/qgis/python/plugins/fTools/tools', 
 '/home/matteo/Universita/brema/gis']
 
 
 
 I looked at the two files but I'm not able to find any error.
 
 Ideas?
 
 Thanks in advance
 
 
 Matteo
 
 


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


Re: [Qgis-user] statist plugin

2013-05-15 Thread matteo

Il 15/05/2013 08:38, Alexander Bruy ha scritto:

Hi Matteo,

this plugin (and many others) is broken due API changes in QGIS 1.9.
I'll fix all my plugins API will be really freezed.



Hi Alexander,
thanks for the answer. I didn't know that!

Cheers,

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


Re: [Qgis-user] Nested group in python

2013-05-15 Thread David J. Bakeman
On 05/14/2013 03:02 PM, David J. Bakeman wrote:
 On 05/14/2013 02:56 PM, Etienne Tourigny wrote:


 On Tue, May 14, 2013 at 6:21 PM, David J. Bakeman
 dbake...@comcast.net mailto:dbake...@comcast.net wrote:

 Is it possible to create a group within a group in python?

 li = qgis.utils.iface.legendInterface()
 g1 = li.addGroup(g1)
 g2 = li.addGroup(g2,g2)


 did you try this? 

 g2 = li.addGroup(g2, g1)
 Sorry for the typo yes that is exactly what I tried.  Does it work for
 you?
I built master from source and it doesn't work there either.

P.S. I think this response is in plain text so shouldn't get rejected.



 The above seems like it should work but it doesn't.

 Thanks.

 ___
 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


[Qgis-user] Error reading PostGIS raster

2013-05-15 Thread Luís de Sousa
Dear all,

Since  I'm not able to log in to the bug tracker anymore
http://osgeo-org.1560.x6.nabble.com/Can-t-log-on-to-the-issue-tracker-td5053171.html
  
I'm posting this error here. When I try to access PostGIS with the raster
plugin I'm getting this error:

/missing FROM-clause entry for table geo
LINE 3:   CASE WHEN geo.r_raster_column IS NOT NULL THEN geo.r_r...
^

Query:
SELECT 
cla.relname, nsp.nspname, cla.relkind = 'v', pg_get_userbyid(relowner),
cla.reltuples, cla.relpages, 
CASE WHEN geo.r_raster_column IS NOT NULL THEN geo.r_raster_column ELSE
att.attname END, 
geo.pixel_types,
geo.scale_x,
geo.scale_y,
geo.out_db,
geo.srid

FROM (select oid, pg_class.* from (select relname from pg_class except
select relname from pg_class,raster_overviews where relname=o_table_name) as
exclude,pg_classwhere exclude.relname=pg_class.relname) AS cla 
JOIN pg_namespace AS nsp ON 
nsp.oid = cla.relnamespace

JOIN pg_attribute AS att ON 
att.attrelid = cla.oid AND 
att.atttypid = 'raster'::regtype OR 
att.atttypid IN (SELECT oid FROM pg_type WHERE
typbasetype='raster'::regtype ) 

 

WHERE cla.relkind IN ('v', 'r')  AND (nspname != 'information_schema' AND
nspname !~ 'pg_')  
ORDER BY nsp.nspname, cla.relname, att.attname/

This is with Postgis Raster to QGIS 0.5.4.

Thank you and regards,

Luís



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Error-reading-PostGIS-raster-tp5053349.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] Issues with Print Composer and QGIS Server

2013-05-15 Thread Jan David Bendrien
Hello Marco,

2. Is there a fix for this: When we define a grid in QGIS Desktop, nothing
is shown in the pdf (or, if labelling is active, sometimes, only one
lonely
zero below the map). There is no grid.

 Try a newer version. 

We did this. We are running QGIS Server 1.9 including all changes up to
13.5.2013.
But the problem persists.

Greetings,
Jan David



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Issues-with-Print-Composer-and-QGIS-Server-tp5053093p5053351.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] Nested group in python

2013-05-15 Thread Alexia Mondot

I work on qgis 1.9 and in the API, there is :

virtual int addGroup 
http://www.qgis.org/api/classQgsLegendInterface.html#a25a8cf67b140383bab0c75e90a3eb3f8 
(QString name, bool expand=true, QTreeWidgetItem *parent=0)=0

I've run this function in Python, and it works for me.

You can try :

li = qgis.utils.iface.legendInterface()
g1 = li.addGroup(g1)
g2 = li.addGroup(g2,True, g2)



On 05/15/2013 09:25 AM, David J. Bakeman wrote:

On 05/14/2013 03:02 PM, David J. Bakeman wrote:

On 05/14/2013 02:56 PM, Etienne Tourigny wrote:


On Tue, May 14, 2013 at 6:21 PM, David J. Bakeman
dbake...@comcast.net mailto:dbake...@comcast.net wrote:

 Is it possible to create a group within a group in python?

 li = qgis.utils.iface.legendInterface()
 g1 = li.addGroup(g1)
 g2 = li.addGroup(g2,g2)


did you try this?

g2 = li.addGroup(g2, g1)

Sorry for the typo yes that is exactly what I tried.  Does it work for
you?

I built master from source and it doesn't work there either.

P.S. I think this response is in plain text so shouldn't get rejected.



 The above seems like it should work but it doesn't.

 Thanks.

 ___
 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




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


Re: [Qgis-user] Issues with Print Composer and QGIS Server

2013-05-15 Thread Andreas Neumann

Hi,

Are you testing from QGIS Web Client? And are your units in degrees?

If yes, there is a problem that the grid interval is kind of hard-coded 
in the file site/scripts/QGISExtensions.js - search for 
grid_interval. This is only optimized for meters.


One need to fix this issue for degree based units or make it 
user-defineable in GlobalOptions.js - you can issue a bug/feature 
request for this in hub.qgis.org.


Sorry about that - initially this was only for our inhouse purpose 
where we do not deal with degree-based projection systems.


Andreas

On Wed, 15 May 2013 02:37:45 -0700 (PDT), Jan David Bendrien wrote:

Hello Marco,

2. Is there a fix for this: When we define a grid in QGIS Desktop, 
nothing

is shown in the pdf (or, if labelling is active, sometimes, only one

lonely

zero below the map). There is no grid.



Try a newer version.


We did this. We are running QGIS Server 1.9 including all changes up 
to

13.5.2013.
But the problem persists.

Greetings,
Jan David



--
View this message in context:

http://osgeo-org.1560.x6.nabble.com/Issues-with-Print-Composer-and-QGIS-Server-tp5053093p5053351.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


--
--
Andreas Neumann
Böschacherstrasse 10A
8624 Grüt (Gossau ZH)
Switzerland
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Unsubmit

2013-05-15 Thread Michał Bełcik
Dear all

I would like to unsubmit from the list.

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


Re: [Qgis-user] Issues with Print Composer and QGIS Server

2013-05-15 Thread Jan David Bendrien
Hi Andreas,

 Are you testing from QGIS Web Client? And are your units in degrees?
yes. yes.

 If yes, there is a problem that the grid interval is kind of hard-coded
 in the file site/scripts/QGISExtensions.js - search for
 grid_interval. This is only optimized for meters.

Aah. This might be the answer. I will check this soon.

 One need to fix this issue for degree based units or make it
 user-defineable in GlobalOptions.js - you can issue a bug/feature
 request for this in hub.qgis.org.

If this is indeed the problem, I can submit a bug report.

Greetings,
Jan David



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Issues-with-Print-Composer-and-QGIS-Server-tp5053093p5053361.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] Unsubmit

2013-05-15 Thread Werner Macho
Hi Michal

You can easily do it by yourself by going to the link at the bottom of
every posting
(http://lists.osgeo.org/mailman/listinfo/qgis-user)
and unsibscribe there .. that's the normal way of unsubscribing ..

hope this helps

kind regards
Werner


On Wed, May 15, 2013 at 12:03 PM, Michał Bełcik belcikmic...@gmail.comwrote:

 Dear all

 I would like to unsubmit from the list.

 Best


 ___
 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] Issues with Print Composer and QGIS Server

2013-05-15 Thread Jan David Bendrien
Hi all,

I could confirm that this is the problem.
When I statically set grid_interval to 10 it works.
I will submit a bug report.

Thanks for the support.

Greetings,
Jan David



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Issues-with-Print-Composer-and-QGIS-Server-tp5053093p5053373.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


[Qgis-user] QGIS talk at Geospatial World Forum

2013-05-15 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all.:
Due to a last minute change, there will be a talk on QGIS
http://wiki.osgeo.org/wiki/Geospatial_World_Forum_2013#Schedule
It's a big conference, not FOSS-oriented, so I hope this will bring
new people to know QGIS. Given the very little time available, I would
appreciate if you could help me spreading the word.
All the best.
- -- 
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.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlGTf9cACgkQ/NedwLUzIr7nMwCglGpMScakI1VatK7b9uIj6Uzl
QQQAnj8zcfb6P2BbqSXN/5w5K8pU1y+F
=vGg2
-END PGP SIGNATURE-
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] update QGIS user manual - contributors

2013-05-15 Thread Larissa Junek
Hi,

we have just started to update the user manual for QGIS 2.0 in english
and we would like to ask the community to join this effort and help us,
since there is a huge amount of changes to work on but there is only a
small group of documenters.

see:
http://hub.qgis.org/wiki/17/ManualTasks#Updates-QGIS-20-User-Guide

If you have some time to spend, please join the community-team list and
tell us, what you can and would like to contribute to the manual update.

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


Re: [Qgis-user] Short(er)cut to Field Calculator or alternate technique?

2013-05-15 Thread Jeffrey Durrence
Stephanie,

Thanks for this suggestion!  I've seen this plugin mentioned previously but 
have not had the time to experiment with it.  I'll try it out. 

Jeffrey

- Original Message -
 From: Stephane Goldstein s@gmx.com
 To: Jeffrey Durrence jeffrey.durre...@mcleanengineering.com, 
 qgis-user@lists.osgeo.org
 Sent: Tuesday, May 14, 2013 4:04:18 PM
 Subject: Re: [Qgis-user] Short(er)cut to Field Calculator or alternate 
 technique?
 
 Hi.
 
 Maybe the MultiEdit plugin can save you some time.
 
 
 
 
 
 - Original Message -
 
 From: Jeffrey Durrence
 
 Sent: 05/14/13 08:25 PM
 
 To: qgis-user@lists.osgeo.org
 
 Subject: [Qgis-user] Short(er)cut to Field Calculator or alternate
 technique?
 
 Hi,
 
 One of my most frequent needs is to visually identify and select
 groups of vector objects and assign attribute values to these
 groups.  Here's my typical work flow...
 
 1.  Select multiple items (point and click multiple, polygon,
 rectangle, etc)
 2.  Go to layer attribute table
 3.  Select field calculator
 4.  Within field calculator, choose only update selected features
 and update existing field.  Enter the value and apply.
 5.  Close the attribute layer (if I don't take this step, I spend
 lots of time waiting on the attribute table's display to update with
 my new attribute values).
 6.  Save the layer
 7.  Return to step 1
 
 I could save myself a good bit of time if there was a direct shortcut
 to the field calculator from the main qgis display.  The only reason
 that I'm opening the attribute table now is to reveal the shortcut
 to the field calculator.
 
 Is there a way to start this tool from the main qgis window without
 opening the attribute table?  I've looked around, but I can't find a
 way to do this.
 
 Thanks for your help,
 
 Jeffrey
 
 My platform...
 Ubuntu 12.04 64 Bit,
 QGIS version: 1.8.0-Lisboa
 QGIS code revision: exported
 Compiled against: Qt4.8.1
 Running against Qt 4.8.1
 Compiled against GDAL/OGR 1.9.2
 Running against GDAL/OGR 1.9.2
 GEOS Version 3.3.3
 PostgreSQL Client Version 9.1.6
 SpatiaLite Version 3.1.0-RC2
 QWT Version 5.2.2
 
 
 --
 Jeffrey Durrence
 McLean Engineering Company
 jeffrey.durre...@mcleanengineering.com
 ___
 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] Short(er)cut to Field Calculator or alternate technique?

2013-05-15 Thread Jeffrey Durrence
Nathan,

Thanks for this update!  I'll have to try out the master on a different box.   
After causing myself some extra stress chasing dev versions on my primary 
workstation, I've resorted to being content with as much stable/vanilla 
packaging on my primary workstations.

Jeffrey

- Original Message -
 From: Nathan Woodrow madman...@gmail.com
 To: Jeffrey Durrence jeffrey.durre...@mcleanengineering.com
 Cc: qgis-user qgis-user@lists.osgeo.org
 Sent: Tuesday, May 14, 2013 8:42:09 PM
 Subject: Re: [Qgis-user] Short(er)cut to Field Calculator or alternate 
 technique?
 
 
 Jeffrey,
 
 
 That is a good point. Done in
 https://github.com/qgis/Quantum-GIS/commit/1bfa7e9636d89f780ca06177b3aebc7dab2b2dbb
 
 
 - Nathan
 
 
 
 On Wed, May 15, 2013 at 5:25 AM, Jeffrey Durrence 
 jeffrey.durre...@mcleanengineering.com  wrote:
 
 
 Hi,
 
 One of my most frequent needs is to visually identify and select
 groups of vector objects and assign attribute values to these
 groups. Here's my typical work flow...
 
 1. Select multiple items (point and click multiple, polygon,
 rectangle, etc)
 2. Go to layer attribute table
 3. Select field calculator
 4. Within field calculator, choose only update selected features
 and update existing field. Enter the value and apply.
 5. Close the attribute layer (if I don't take this step, I spend lots
 of time waiting on the attribute table's display to update with my
 new attribute values).
 6. Save the layer
 7. Return to step 1
 
 I could save myself a good bit of time if there was a direct shortcut
 to the field calculator from the main qgis display. The only reason
 that I'm opening the attribute table now is to reveal the shortcut
 to the field calculator.
 
 Is there a way to start this tool from the main qgis window without
 opening the attribute table? I've looked around, but I can't find a
 way to do this.
 
 Thanks for your help,
 
 Jeffrey
 
 My platform...
 Ubuntu 12.04 64 Bit,
 QGIS version: 1.8.0-Lisboa
 QGIS code revision: exported
 Compiled against: Qt4.8.1
 Running against Qt 4.8.1
 Compiled against GDAL/OGR 1.9.2
 Running against GDAL/OGR 1.9.2
 GEOS Version 3.3.3
 PostgreSQL Client Version 9.1.6
 SpatiaLite Version 3.1.0-RC2
 QWT Version 5.2.2
 
 
 --
 Jeffrey Durrence
 McLean Engineering Company
 jeffrey.durre...@mcleanengineering.com
 ___
 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] Short(er)cut to Field Calculator or alternate technique?

2013-05-15 Thread Alexandre Neto
The QuickMultiAttributeEdit plugin might be the tool you need.

http://plugins.qgis.org/plugins/QuickMultiAttributeEdit/

Notice that this is not the same as MultiEdit plugin.


Good luck

Alexandre Neto

On Wed, May 15, 2013 at 3:45 PM, Jeffrey Durrence 
jeffrey.durre...@mcleanengineering.com wrote:

 Nathan,

 Thanks for this update!  I'll have to try out the master on a different
 box.   After causing myself some extra stress chasing dev versions on my
 primary workstation, I've resorted to being content with as much
 stable/vanilla packaging on my primary workstations.

 Jeffrey

 - Original Message -
  From: Nathan Woodrow madman...@gmail.com
  To: Jeffrey Durrence jeffrey.durre...@mcleanengineering.com
  Cc: qgis-user qgis-user@lists.osgeo.org
  Sent: Tuesday, May 14, 2013 8:42:09 PM
  Subject: Re: [Qgis-user] Short(er)cut to Field Calculator or alternate
 technique?
 
 
  Jeffrey,
 
 
  That is a good point. Done in
 
 https://github.com/qgis/Quantum-GIS/commit/1bfa7e9636d89f780ca06177b3aebc7dab2b2dbb
 
 
  - Nathan
 
 
 
  On Wed, May 15, 2013 at 5:25 AM, Jeffrey Durrence 
  jeffrey.durre...@mcleanengineering.com  wrote:
 
 
  Hi,
 
  One of my most frequent needs is to visually identify and select
  groups of vector objects and assign attribute values to these
  groups. Here's my typical work flow...
 
  1. Select multiple items (point and click multiple, polygon,
  rectangle, etc)
  2. Go to layer attribute table
  3. Select field calculator
  4. Within field calculator, choose only update selected features
  and update existing field. Enter the value and apply.
  5. Close the attribute layer (if I don't take this step, I spend lots
  of time waiting on the attribute table's display to update with my
  new attribute values).
  6. Save the layer
  7. Return to step 1
 
  I could save myself a good bit of time if there was a direct shortcut
  to the field calculator from the main qgis display. The only reason
  that I'm opening the attribute table now is to reveal the shortcut
  to the field calculator.
 
  Is there a way to start this tool from the main qgis window without
  opening the attribute table? I've looked around, but I can't find a
  way to do this.
 
  Thanks for your help,
 
  Jeffrey
 
  My platform...
  Ubuntu 12.04 64 Bit,
  QGIS version: 1.8.0-Lisboa
  QGIS code revision: exported
  Compiled against: Qt4.8.1
  Running against Qt 4.8.1
  Compiled against GDAL/OGR 1.9.2
  Running against GDAL/OGR 1.9.2
  GEOS Version 3.3.3
  PostgreSQL Client Version 9.1.6
  SpatiaLite Version 3.1.0-RC2
  QWT Version 5.2.2
 
 
  --
  Jeffrey Durrence
  McLean Engineering Company
  jeffrey.durre...@mcleanengineering.com
  ___
  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


Re: [Qgis-user] How to run SEXTANTE algorithms outside of QGIS Python console?

2013-05-15 Thread Martin Lacayo
Hi Paolo,

I just disabled digest mode, but hopefully this will be part of the same thread.

My question is more specifically about SEXTANTE, if there is a better
forum for this please let me know.

My question is how to run SEXTANTE algorithms outside of QGIS Python
console. Is this possible? The closest answer I found was on
StackExchange here:

http://gis.stackexchange.com/questions/28701/how-to-run-sextante-algorithms-outside-of-qgis-python-console

The code provided runs, but when I add a call to sextante.runalg it
raises an error related to iface, which seems to be something from
QgisInterface.instance(). Specifically I get an AttributeError because
iface == None. Another related post indicated that this kind of error
is because the code is being run outside of QGIS and therefore there
is no iface that could be referenced. In the code there is a commented
out line that looks like a QGIS instance is wanted, but it wasn't
working. Any suggestions?

What would be most helpful is if someone could modify the code to
include a single SEXTANTE call that executes any algorithm, preferable
one from GRASS.

Thank you.

Here is the code:

import sys
from PyQt4.QtGui import QApplication
from sextante.core.Sextante import Sextante

def main():
 main function or something 
# as per 
http://qgis.org/pyqgis-cookbook/intro.html#using-pyqgis-in-custom-application
from qgis.core import *
import qgis.utils

app = QApplication(sys.argv)
# supply path to where is your qgis installed
QgsApplication.setPrefixPath(C:/OSGeo4W/apps/qgis, True)
# load providers
QgsApplication.initQgis()
# how???
# qgis.utils.iface = QgisInterface.instance()
Sextante.initialize()
run_script(qgis.utils.iface)

def run_script(iface):
 this shall be called from Script Runner
Sextante.alglist()
Sextante.alghelp(saga:slopeaspectcurvature)

if __name__==__main__:
main()



-Martin

 Date: Wed, 15 May 2013 08:06:57 +0200
 From: Paolo Cavallini cavall...@faunalia.it
 To: qgis-user@lists.osgeo.org
 Subject: Re: [Qgis-user] How to run SEXTANTE algorithms outside of
 QGIS Python console?
 Message-ID: 51932601.9080...@faunalia.it
 Content-Type: text/plain; charset=ISO-8859-1

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Il 14/05/2013 23:04, Martin Lacayo ha scritto:

 Our software (naturalcapitalproject.org) is developed on Linux but
 packaged for Windows.

 Hi Martin,
 could you please let us know more about this?
 I do not see any reference to QGIS.
 All the best.
 - --
 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.12 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAlGTJgEACgkQ/NedwLUzIr60JgCeMZzOh+96CESwhbjdKFZ9Hlg4
 BycAnicpMj4TZosMXotgIg9Xo+luGxtu
 =j3ao
 -END PGP SIGNATURE-


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


[Qgis-user] sextante QGIS geoalgorithms

2013-05-15 Thread matteo

Hi guys,
none of the geoalgorithms of Qgis work through the sextante toolbox. For 
example the reproject layer gives:



Traceback (most recent call last):

File /home/matteo/.qgis2/python/plugins/sextante/core/GeoAlgorithm.py, 
line 145, in execute


self.processAlgorithm(progress)

File 
/home/matteo/.qgis2/python/plugins/sextante/algs/ftools/ReprojectLayer.py, 
line 71, in processAlgorithm


features = QGisLayers.features(layer)

File /home/matteo/.qgis2/python/plugins/sextante/core/QGisLayers.py, 
line 206, in features


return Features(layer)

File /home/matteo/.qgis2/python/plugins/sextante/core/QGisLayers.py, 
line 214, in __init__


self.layer.dataProvider().rewind()

AttributeError: 'QgsVectorDataProvider' object has no attribute 'rewind'




Other algorithms give similar errors.

Cheers,

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


Re: [Qgis-user] Nested group in python

2013-05-15 Thread David J. Bakeman
On 05/15/2013 02:41 AM, Alexia Mondot wrote:
 I work on qgis 1.9 and in the API, there is :

 virtual int addGroup
 http://www.qgis.org/api/classQgsLegendInterface.html#a25a8cf67b140383bab0c75e90a3eb3f8
 (QString name, bool expand=true, QTreeWidgetItem *parent=0)=0
 I've run this function in Python, and it works for me.

 You can try :
 li = qgis.utils.iface.legendInterface()
 g1 = li.addGroup(g1)
 g2 = li.addGroup(g2,True, g2)

I never attempted that since addGroup() returns an index at least
according to the documentation not a pointer.  In fact if you do the
following (qgis 1.8) it gets listed in group g1 not g2

g3 = li.addGroup(g3, True, g2)

 On 05/15/2013 09:25 AM, David J. Bakeman wrote:
 On 05/14/2013 03:02 PM, David J. Bakeman wrote:
 On 05/14/2013 02:56 PM, Etienne Tourigny wrote:
 On Tue, May 14, 2013 at 6:21 PM, David J. Bakeman
 dbake...@comcast.net mailto:dbake...@comcast.net wrote:

 Is it possible to create a group within a group in python?

 li = qgis.utils.iface.legendInterface()
 g1 = li.addGroup(g1)
 g2 = li.addGroup(g2,g2)


 did you try this? 

 g2 = li.addGroup(g2, g1)
 Sorry for the typo yes that is exactly what I tried.  Does it work for
 you?
 I built master from source and it doesn't work there either.

 P.S. I think this response is in plain text so shouldn't get rejected.

 The above seems like it should work but it doesn't.

 Thanks.

 ___
 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





 ___
 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] sextante QGIS geoalgorithms

2013-05-15 Thread Victor Olaya
Matteo

I am afraid you are using an old version of SEXTANTE, not compatible
with the new QGIS API

Remove all 'sextante' folders from you .qgis2 folder, and that will
make QGIS use just the core version.

Cheers
Victor

2013/5/15 matteo matteo.ghe...@gmail.com:
 Hi guys,
 none of the geoalgorithms of Qgis work through the sextante toolbox. For
 example the reproject layer gives:


 Traceback (most recent call last):

 File /home/matteo/.qgis2/python/plugins/sextante/core/GeoAlgorithm.py,
 line 145, in execute

 self.processAlgorithm(progress)

 File
 /home/matteo/.qgis2/python/plugins/sextante/algs/ftools/ReprojectLayer.py,
 line 71, in processAlgorithm

 features = QGisLayers.features(layer)

 File /home/matteo/.qgis2/python/plugins/sextante/core/QGisLayers.py, line
 206, in features

 return Features(layer)

 File /home/matteo/.qgis2/python/plugins/sextante/core/QGisLayers.py, line
 214, in __init__

 self.layer.dataProvider().rewind()

 AttributeError: 'QgsVectorDataProvider' object has no attribute 'rewind'




 Other algorithms give similar errors.

 Cheers,

 Matteo

 ___
 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