Re: [Qgis-developer] Make valid in master

2014-01-16 Thread Larry Shaffer
Hi Andrea,

On Thu, Jan 16, 2014 at 12:39 AM, Andrea Peri aperi2...@gmail.com wrote:

 It should be applied only when the test IsValid fail.
 This should limit the slowness.
 Also pay attention that something the result of a MakeValid on an Invalid
 poligon could be a MultiPolygon or also a Collection.
 So to use it in an automatic manner need to apply also a
 ST_Multi(CollectionExtract(ST_MakeValid(geometry),3)).
 To be sure that it is always a geometry of the same kind.


Thank you. I was wondering how to do that!

I suppose that would be for the QgsGeometry class function(s) to handle,
thereby just returning an array of same geom type passed in, or returning
whether the fix was actually done and assigning any results to a referenced
variable.

Regards,

Larry



 A.




 2014/1/16 Larry Shaffer lar...@dakotacarto.com

 Hi Paolo,


 On Wed, Jan 15, 2014 at 11:35 PM, Paolo Cavallini 
 cavall...@faunalia.itwrote:

 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.


 I have recently made a Homebrew formula for Mac that allows liblwgeom to
 be built without Postgres/PostGIS installs (a bit of a hack, actually). So,
 the standalone lib is now readily available on Mac OS X as well [0].

 +1 for this to be included in QgsGeometry or similar class.

 It would help solve labeling issues where the extents-clipped geometry is
 invalid. Would slow rendering down, of course, but would be good to have as
 an option for faster machines and print jobs. Note: the validity fix would
 be applied to the duplicates of feature geometries, which are used by PAL.

 [0]
 https://github.com/Homebrew/homebrew/blob/master/Library/Formula/liblwgeom.rb

 Larry




 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




 --
 -
 Andrea Peri
 . . . . . . . . .
 qwerty àèìòù
 -

___
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-16 Thread Giuseppe Sucameli
Hi,
including it into processing is better than putting it as a separated
plugin, it depends on processing.
If there are no objections, please open a new pull request.
Regards.

Sent from mobile. Sorry for being short.
--
Giuseppe Sucameli
Il 16/gen/2014 07:36 Paolo Cavallini cavall...@faunalia.it ha scritto:

 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

[Qgis-developer] matplotlib ascii errors when using OSGeo4W install

2014-01-16 Thread Josef K
I recently reinstalled QGIS 2.0 and 2.1 from the OSGeo4W advanced install.
Now I get some ascii errors when importing some matplotlib modules. I have
narrowed it down to the import of matplotlib.fontmanager:

*import matplotlib.font_managerTraceback (most recent call last):  File
input, line 1, in module  File
C:/OSGEO4~1/apps/qgis-dev/./python\qgis\utils.py, line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)  File
C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib\font_manager.py,
line 1356, in module_rebuild()  File
C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib\font_manager.py,
line 1341, in _rebuildfontManager = FontManager()  File
C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib\font_manager.py,
line 1004, in __init__self.ttflist = createFontList(self.ttffiles)
File
C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib\font_manager.py,
line 584, in createFontListprop = ttfFontProperty(font)  File
C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib\font_manager.py,
line 398, in ttfFontPropertysfnt4 =
sfnt4.decode('ascii').lower()UnicodeDecodeError: 'ascii' codec can't decode
byte 0x8a in position 14: ordinal not in range(128)*

I have tried to reinstall matplotlib (from OSGEo4w 64-bit). No difference.

Any ideas?

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

Re: [Qgis-developer] New Save as... dialog

2014-01-16 Thread Werner Macho

Hi Paolo!

* What do you mean by lot of empty space in the middle here is only a 
very small stripe
* mostly emtpy - it is filled on demand depending on how many options 
are provided by the format. - try to save as SpatiaLite


The only (currently) unfortunate thing is that the More Options button 
is not shrinking the window again if you press it again .. So once the 
extended options are opened you should leave them switched on.

If anyone has a good idea howto solve it .. suggestions welcome.

The original intention was to make the dialog as small as possible and 
not annoy novice users with extended options they might never need. Per 
default there should be no need to use the More Options button. Every 
format should have reasonable defaults now (if not tell me and I am 
going to change it).


I am not 100% happy with that layout either but it was the best we 
(Matthias and me) could make at that moment.


kind regards
Werner

On 2014-01-15 12:18, Paolo Cavallini wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all.
I noticed the current dialog for Save as... for vectors should be improved:
* there is a lot of empty space in the middle
* the More Options  button is non-standard, as it opens a side block with 
panels,
mostly empty
* IMHO the general appearance should be similar between this dialog and the Save
as... for rasters.
Should I open a ticket on this?
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/

iEYEARECAAYFAlLWbqAACgkQ/NedwLUzIr7KdgCggWG368yvvGW4jm7utShg5KHk
rl8An2ypZmnsbC6sbjpFP1hMLPY18Ho3
=zC+w
-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] Issue with standalone python script and PostGIS Layers

2014-01-16 Thread Stott James
Hello all,

I have a standalone python script that creates a bunch of PDFs for me.

Recently this script has developed an issue. It uses QGIS-dev so it could be 
related to some of the changes in master recently as it works fine with QGIS 
2.0.

It makes about 42 PDFs then it stops.

It is not actually crashing as such, as you can see it running in task manager. 
It stays running using between 0 and 2% processor, and fluctuates a little with 
memory use (around 108840kB). But it does not produce any more PDFs. It is like 
it is stuck.

From the log file that my script creates, I know that it is hanging with this 
line of code:

vlayer = QgsVectorLayer(uri.uri(), layerName, postgres)

If I try and connect to the database using DB Manager in QGIS or pgAdmin III 
while the script is still running, I get an error saying there is already too 
many clients already. If I kill the process in windows task manager, I am then 
able to connect to the database using DB manager.

Has anyone any suggestions as to what is wrong here? Is this a bug?

I updated QGIS dev this morning using the OSGeo4W installer (its revision is 
eb9ce3a).

James Stott

GIS-koordinator
Administrasjonsavdelinga
Fylkesmannen i Rogaland

Telefon: 51568793
james.st...@fylkesmannen.nomailto:james.st...@fylkesmannen.no
http://www.temakart-rogaland.no

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

[Qgis-developer] QGIS 2.0.1: Changing layer properties with python console

2014-01-16 Thread Guillaume
Hello,
I'm working on a plugin that will aim to ensure that the following steps either 
transparent to the user with one click:1. Creating a table with 
predefined fields2. Record in this table in postgis, then open in Qgis
3. Changing the properties (especially the properties of the fields tab) this 
layer to:   - Set Edit widget of fields   - Associate a form 
created with Qt Creator
For steps 1 and 2 is OK.
However despite researches in the qgis' Cookbook and forums, I haven't find 
functions that allow me to carry out step 3 using the python console ...
Have you any idea ?
Thanks for the answers in advance!
Guillaume ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Qgis web client search

2014-01-16 Thread Bernhard Ströbl

Hi,

I have no idea, where this is located on Windows...
but you need to adapt the wsgi files you downloaded from github with QWC 
to your db settings (see section 6.2)!


Bernhard

P.S. please try to reply to the list

Am 16.01.2014 10:17, schrieb Mira Maric:

Hi!
I do the following:
I download mod_wsgi.so from
http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi an put it in:
C:\OSGeo4W\apache\modules
  In Apache config file I added line:
 -LoadModule wsgi_module modules/mod_wsgi.so

I restart apache and turn it on, it's work OK. Now I don't know  where
to do this, where is file for this settings?
I am using Windows!

   6.1. Configuration of mod_wsgi
   ==

You need to enable mod_wsgi as root. (Ubuntu: a2enmod mod_wsgi).

You need to configure apache with the following lines (e.g. in file
/etc/apache2/sites-available/default):

   #mod_wsgi
   WSGIDaemonProcess gis processes=5 threads=15 display-name=%{GROUP}
   WSGIScriptAlias /wsgi/ /home/www/wsgi/
   WSGIScriptAliasMatch ^/wsgi/([^/]+) /home/www/wsgi/$1.wsgi



Thanks!






2014/1/16 Mira Maricmmmx...@gmail.com:

Hi!
I do the following:
I download mod_wsgi.so from
http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi an put it in:
C:\OSGeo4W\apache\modules
  In Apache config file I added line:
 -LoadModule wsgi_module modules/mod_wsgi.so

I restart apache and turn it on, it's work OK. Now I don't know  where
to do this








Uncaught SyntaxError: Unexpected token ILLEGAL in search.wsgi:1

2014/1/16 Bernhard Ströblbernhard.stro...@jena.de:

Hi,

did you configure the wsgi scripts to match your database and did you
provide the search tables in the database?
Both is described in the README (section 6) [1]

Bernhard

[1] https://github.com/qgis/QGIS-Web-Client

Am 16.01.2014 07:33, schrieb Mira Maric:


  1.


 First I added line in Apache config file:
 -LoadModule wsgi_module modules/mod_wsgi.so

  2.


 In GlobalOption.js I set var useGeoNamesSearchBox = false; var
 searchBoxQueryURL
 =http://localhost:89/qgis-web-client-master/wsgi/search.wsgi?query=;;
 var searchBoxGetGeomURL
 =http://localhost:89/qgis-web-client-master/wsgi/getSearchGeom.wsgi;;

When i try to search, i do not get anything! Is there any example for
searching setup?







__ Information from ESET Mail Security, version of virus signature 
database 9296 (20140115) __

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


Re: [Qgis-developer] Qgis web client search

2014-01-16 Thread Mira Maric
I set up Apache config file:
insert following lines:
- LoadModule wsgi_module modules/mod_wsgi.so
and

 WSGIScriptAlias /wsgi C:\OSGeo4W\apache\htdocs\qgis-web-client-master\wsgi
 WSGIScriptAliasMatch ^/wsgi/([^/]+)
C:\OSGeo4W\apache\htdocs\qgis-web-client-master\$1.wsgi


, after this I create tables in Posgis and modify connection string in
search.wsgi and getSearchGeom.wsgi.

Now when I run web page and try to search in search box I get this error:

Resource interpreted as Script but transferred with MIME type text/plain:
 
http://localhost:89/qgis-web-client-master/wsgi/search.wsgi?query=searchtables=query=89cb=stcCallback1001;.
ext-all.js:7
Uncaught SyntaxError: Unexpected token ILLEGAL search.wsgi:1



2014/1/16 Bernhard Ströbl bernhard.stro...@jena.de:
 Hi,

 I have no idea, where this is located on Windows...
 but you need to adapt the wsgi files you downloaded from github with QWC to
 your db settings (see section 6.2)!

 Bernhard

 P.S. please try to reply to the list

 Am 16.01.2014 10:17, schrieb Mira Maric:

 Hi!
 I do the following:
 I download mod_wsgi.so from
 http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi an put it in:
 C:\OSGeo4W\apache\modules
   In Apache config file I added line:
  -LoadModule wsgi_module modules/mod_wsgi.so

 I restart apache and turn it on, it's work OK. Now I don't know  where
 to do this, where is file for this settings?
 I am using Windows!

6.1. Configuration of mod_wsgi
==

 You need to enable mod_wsgi as root. (Ubuntu: a2enmod mod_wsgi).

 You need to configure apache with the following lines (e.g. in file
 /etc/apache2/sites-available/default):

#mod_wsgi
WSGIDaemonProcess gis processes=5 threads=15 display-name=%{GROUP}
WSGIScriptAlias /wsgi/ /home/www/wsgi/
WSGIScriptAliasMatch ^/wsgi/([^/]+) /home/www/wsgi/$1.wsgi



 Thanks!






 2014/1/16 Mira Maricmmmx...@gmail.com:

 Hi!
 I do the following:
 I download mod_wsgi.so from
 http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi an put it in:
 C:\OSGeo4W\apache\modules
   In Apache config file I added line:
  -LoadModule wsgi_module modules/mod_wsgi.so

 I restart apache and turn it on, it's work OK. Now I don't know  where
 to do this








 Uncaught SyntaxError: Unexpected token ILLEGAL in search.wsgi:1

 2014/1/16 Bernhard Ströblbernhard.stro...@jena.de:

 Hi,

 did you configure the wsgi scripts to match your database and did you
 provide the search tables in the database?
 Both is described in the README (section 6) [1]

 Bernhard

 [1] https://github.com/qgis/QGIS-Web-Client

 Am 16.01.2014 07:33, schrieb Mira Maric:


   1.


  First I added line in Apache config file:
  -LoadModule wsgi_module modules/mod_wsgi.so

   2.


  In GlobalOption.js I set var useGeoNamesSearchBox = false; var
  searchBoxQueryURL

 =http://localhost:89/qgis-web-client-master/wsgi/search.wsgi?query=;;
  var searchBoxGetGeomURL

 =http://localhost:89/qgis-web-client-master/wsgi/getSearchGeom.wsgi;;

 When i try to search, i do not get anything! Is there any example for
 searching setup?






 __ Information from ESET Mail Security, version of virus signature
 database 9296 (20140115) __

 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


Re: [Qgis-developer] Qgis web client search

2014-01-16 Thread Bernhard Ströbl

Hi,

try to enter the url of the wsgi-script directly in your browser and see 
what it returns, check QWC's log file for any errors of the wsgi script.


Bernhard

Am 16.01.2014 12:09, schrieb Mira Maric:

I set up Apache config file:
insert following lines:
- LoadModule wsgi_module modules/mod_wsgi.so
and

  WSGIScriptAlias /wsgi C:\OSGeo4W\apache\htdocs\qgis-web-client-master\wsgi
  WSGIScriptAliasMatch ^/wsgi/([^/]+)
C:\OSGeo4W\apache\htdocs\qgis-web-client-master\$1.wsgi


, after this I create tables in Posgis and modify connection string in
search.wsgi and getSearchGeom.wsgi.

Now when I run web page and try to search in search box I get this error:

Resource interpreted as Script but transferred with MIME type text/plain:
  
http://localhost:89/qgis-web-client-master/wsgi/search.wsgi?query=searchtables=query=89cb=stcCallback1001;.
ext-all.js:7
Uncaught SyntaxError: Unexpected token ILLEGAL search.wsgi:1



2014/1/16 Bernhard Ströblbernhard.stro...@jena.de:

Hi,

I have no idea, where this is located on Windows...
but you need to adapt the wsgi files you downloaded from github with QWC to
your db settings (see section 6.2)!

Bernhard

P.S. please try to reply to the list

Am 16.01.2014 10:17, schrieb Mira Maric:


Hi!
I do the following:
I download mod_wsgi.so from
http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi an put it in:
C:\OSGeo4W\apache\modules
   In Apache config file I added line:
  -LoadModule wsgi_module modules/mod_wsgi.so

I restart apache and turn it on, it's work OK. Now I don't know  where
to do this, where is file for this settings?
I am using Windows!

6.1. Configuration of mod_wsgi
==

You need to enable mod_wsgi as root. (Ubuntu: a2enmod mod_wsgi).

You need to configure apache with the following lines (e.g. in file
/etc/apache2/sites-available/default):

#mod_wsgi
WSGIDaemonProcess gis processes=5 threads=15 display-name=%{GROUP}
WSGIScriptAlias /wsgi/ /home/www/wsgi/
WSGIScriptAliasMatch ^/wsgi/([^/]+) /home/www/wsgi/$1.wsgi



Thanks!






2014/1/16 Mira Maricmmmx...@gmail.com:


Hi!
I do the following:
I download mod_wsgi.so from
http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi an put it in:
C:\OSGeo4W\apache\modules
   In Apache config file I added line:
  -LoadModule wsgi_module modules/mod_wsgi.so

I restart apache and turn it on, it's work OK. Now I don't know  where
to do this








Uncaught SyntaxError: Unexpected token ILLEGAL in search.wsgi:1

2014/1/16 Bernhard Ströblbernhard.stro...@jena.de:


Hi,

did you configure the wsgi scripts to match your database and did you
provide the search tables in the database?
Both is described in the README (section 6) [1]

Bernhard

[1] https://github.com/qgis/QGIS-Web-Client

Am 16.01.2014 07:33, schrieb Mira Maric:



   1.


  First I added line in Apache config file:
  -LoadModule wsgi_module modules/mod_wsgi.so

   2.


  In GlobalOption.js I set var useGeoNamesSearchBox = false; var
  searchBoxQueryURL

=http://localhost:89/qgis-web-client-master/wsgi/search.wsgi?query=;;
  var searchBoxGetGeomURL

=http://localhost:89/qgis-web-client-master/wsgi/getSearchGeom.wsgi;;

When i try to search, i do not get anything! Is there any example for
searching setup?










__ Information from ESET Mail Security, version of virus signature 
database 9297 (20140116) __

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


Re: [Qgis-developer] Qgis web client search

2014-01-16 Thread Mira Maric
://localhost:89/qgis-web-client-master/wsgi/search.wsgi?query=;;
   var searchBoxGetGeomURL


 =http://localhost:89/qgis-web-client-master/wsgi/getSearchGeom.wsgi;;

 When i try to search, i do not get anything! Is there any example for
 searching setup?








 __ Information from ESET Mail Security, version of virus signature
 database 9297 (20140116) __


 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


Re: [Qgis-developer] Qgis web client search

2014-01-16 Thread Bernhard Ströbl
 Maric:




1.


   First I added line in Apache config file:
   -LoadModule wsgi_module modules/mod_wsgi.so

2.


   In GlobalOption.js I set var useGeoNamesSearchBox = false; var
   searchBoxQueryURL


=http://localhost:89/qgis-web-client-master/wsgi/search.wsgi?query=;;
   var searchBoxGetGeomURL


=http://localhost:89/qgis-web-client-master/wsgi/getSearchGeom.wsgi;;

When i try to search, i do not get anything! Is there any example for
searching setup?










__ Information from ESET Mail Security, version of virus signature
database 9297 (20140116) __





__ Information from ESET Mail Security, version of virus signature 
database 9297 (20140116) __

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


Re: [Qgis-developer] matplotlib ascii errors when using OSGeo4W install

2014-01-16 Thread Josef K
OK, somehow the problem is fixed. I really do not know what happened and
why it starts working but along the way I tried removing the .matplotlib
folder in my user local settings. I also tried a fresh QGIS install from
the 64-bit standalone installer (2.0.1-3) and then the same from the 32-bit
standalone installer. Matplotlib was OK again after the 32-bit install,
even _after_ I uninstalled the 32-bit version.
regards
Josef

2014/1/16 Josef K groundwater...@gmail.com

 I recently reinstalled QGIS 2.0 and 2.1 from the OSGeo4W advanced install.
 Now I get some ascii errors when importing some matplotlib modules. I have
 narrowed it down to the import of matplotlib.fontmanager:

 *import matplotlib.font_managerTraceback (most recent call last):  File
 input, line 1, in module  File
 C:/OSGEO4~1/apps/qgis-dev/./python\qgis\utils.py, line 453, in _import
   mod = _builtin_import(name, globals, locals, fromlist, level)  File
 C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib\font_manager.py,
 line 1356, in module_rebuild()   File
 C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib\font_manager.py,
 line 1341, in _rebuildfontManager = FontManager()  File
 C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib\font_manager.py,
 line 1004, in __init__ self.ttflist = createFontList(self.ttffiles)
 File
 C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib\font_manager.py,
 line 584, in createFontListprop = ttfFontProperty(font)   File
 C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib\font_manager.py,
 line 398, in ttfFontPropertysfnt4 =
 sfnt4.decode('ascii').lower()UnicodeDecodeError: 'ascii' codec can't decode
 byte 0x8a in position 14: ordinal not in range(128) *

 I have tried to reinstall matplotlib (from OSGEo4w 64-bit). No difference.


 Any ideas?

 regards
 Josef

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

Re: [Qgis-developer] Qgis web client search

2014-01-16 Thread Andreas Neumann
Hi,

If you get the source code of the Python File than it means that the
wsgi module is not enabled or correctly configured.

But as Bernhard said - at the beginning you really have to work in
manual mode - not directly in QGIS web client. You will have to make
sure that the database is properly set up, the database connection and
credentials work and that the script returns a valid JSON response.

If that works you can continue testing it in QGIS web client.

Andreas

Am 16.01.2014 12:09, schrieb Mira Maric:
 I set up Apache config file:
 insert following lines:
 - LoadModule wsgi_module modules/mod_wsgi.so
 and
 
  WSGIScriptAlias /wsgi C:\OSGeo4W\apache\htdocs\qgis-web-client-master\wsgi
  WSGIScriptAliasMatch ^/wsgi/([^/]+)
 C:\OSGeo4W\apache\htdocs\qgis-web-client-master\$1.wsgi
 
 
 , after this I create tables in Posgis and modify connection string in
 search.wsgi and getSearchGeom.wsgi.
 
 Now when I run web page and try to search in search box I get this error:
 
 Resource interpreted as Script but transferred with MIME type text/plain:
  
 http://localhost:89/qgis-web-client-master/wsgi/search.wsgi?query=searchtables=query=89cb=stcCallback1001;.
 ext-all.js:7
 Uncaught SyntaxError: Unexpected token ILLEGAL search.wsgi:1
 
 
 

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


Re: [Qgis-developer] Issue with standalone python script and PostGIS Layers

2014-01-16 Thread Tim Sutton
Hi


On Thu, Jan 16, 2014 at 11:06 AM, Stott James fmro...@fylkesmannen.nowrote:

  Hello all,



 I have a standalone python script that creates a bunch of PDFs for me.



 Recently this script has developed an issue. It uses QGIS-dev so it could
 be related to some of the changes in master recently as it works fine with
 QGIS 2.0.



 It makes about 42 PDFs then it stops.



 It is not actually crashing as such, as you can see it running in task
 manager. It stays running using between 0 and 2% processor, and fluctuates
 a little with memory use (around 108840kB). But it does not produce any
 more PDFs. It is like it is stuck.



 From the log file that my script creates, I know that it is hanging with
 this line of code:



 vlayer = QgsVectorLayer(uri.uri(), layerName, postgres)



 If I try and connect to the database using DB Manager in QGIS or pgAdmin
 III while the script is still running, I get an error saying there is
 already too many clients already. If I kill the process in windows task
 manager, I am then able to connect to the database using DB manager.



 Has anyone any suggestions as to what is wrong here? Is this a bug?



 I updated QGIS dev this morning using the OSGeo4W installer (its revision
 is eb9ce3a).




If you are creating postgis layers in a loop, are you making sure to
destroy them again nicely in your loop? Anyway if it used to work before
maybe there was a regression somewhere

Regards

Tim


  James Stott



 GIS-koordinator

 Administrasjonsavdelinga

 Fylkesmannen i Rogaland



 Telefon: 51568793

 james.st...@fylkesmannen.no

 http://www.temakart-rogaland.no



 ___
 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] QGis 2.0.1 - Group layer SR selection panel

2014-01-16 Thread Geo DrinX
Hello all,

there is something wrong, or too complex, in the panel in object.

In fact, if I create a layer group and I want to give a unique SR to all
layers under the group, in the panel it is not possible to select the SR
directly in the recently used SR list.

I tried using double click, single click ...  nothing to do  :(

The only way to do it is to ... select the SR from the mondial reference
systems, that are not ordinated.

Please, tell me that it will be changed in the next version of QGis !


Thank you

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

Re: [Qgis-developer] Issue with standalone python script and PostGIS Layers

2014-01-16 Thread Stott James
Thanks for the response Tim.

I have not been destroying my layers. This has not been an issue when running 
the plugin with 2.0.

This was the first thing I thought about in the version running against master 
so I added the following code to close the postgis layers as it once I am 
finished with them:

QgsMapLayerRegistry.instance().removeMapLayer(layer_id)
This has not made it difference. It still hangs at the same place and I still 
get the warning that there is already too many clients when trying to connect 
to PostGIS with DB Manager or pgAdmin.

Shall I open a bug?

Fra: Tim Sutton [mailto:li...@linfiniti.com]
Sendt: 16. januar 2014 13:30
Til: Stott James
Kopi: qgis-developer@lists.osgeo.org
Emne: Re: [Qgis-developer] Issue with standalone python script and PostGIS 
Layers

Hi

On Thu, Jan 16, 2014 at 11:06 AM, Stott James 
fmro...@fylkesmannen.nomailto:fmro...@fylkesmannen.no wrote:
Hello all,

I have a standalone python script that creates a bunch of PDFs for me.

Recently this script has developed an issue. It uses QGIS-dev so it could be 
related to some of the changes in master recently as it works fine with QGIS 
2.0.

It makes about 42 PDFs then it stops.

It is not actually crashing as such, as you can see it running in task manager. 
It stays running using between 0 and 2% processor, and fluctuates a little with 
memory use (around 108840kB). But it does not produce any more PDFs. It is like 
it is stuck.

From the log file that my script creates, I know that it is hanging with this 
line of code:

vlayer = QgsVectorLayer(uri.uri(), layerName, postgres)

If I try and connect to the database using DB Manager in QGIS or pgAdmin III 
while the script is still running, I get an error saying there is already too 
many clients already. If I kill the process in windows task manager, I am then 
able to connect to the database using DB manager.

Has anyone any suggestions as to what is wrong here? Is this a bug?

I updated QGIS dev this morning using the OSGeo4W installer (its revision is 
eb9ce3a).


If you are creating postgis layers in a loop, are you making sure to destroy 
them again nicely in your loop? Anyway if it used to work before maybe there 
was a regression somewhere

Regards

Tim

James Stott

GIS-koordinator
Administrasjonsavdelinga
Fylkesmannen i Rogaland

Telefon: 51568793
james.st...@fylkesmannen.nomailto:james.st...@fylkesmannen.no
http://www.temakart-rogaland.no


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.orgmailto: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.nethttp://freenode.net
==
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] QGis 2.0.1 - Group layer SR selection panel

2014-01-16 Thread Salvatore Larosa
Hi Roberto,

On Thu, Jan 16, 2014 at 2:19 PM, Geo DrinX geodr...@gmail.com wrote:

 Hello all,

 there is something wrong, or too complex, in the panel in object.

 In fact, if I create a layer group and I want to give a unique SR to all
 layers under the group, in the panel it is not possible to select the SR
 directly in the recently used SR list.

 I tried using double click, single click ...  nothing to do  :(

 The only way to do it is to ... select the SR from the mondial reference
 systems, that are not ordinated.

 Please, tell me that it will be changed in the next version of QGis !


There is a bug [0] in the QgsProjectionSelector class and there is already
a PR [1] for fixing it.
So the upcoming release should have that patch!

Cheers,
-SL

[0] - http://hub.qgis.org/issues/8298
[1] - https://github.com/qgis/QGIS/pull/1063



 Thank you

 Roberto

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




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Issue with standalone python script and PostGIS Layers

2014-01-16 Thread Tim Sutton
Hi


On Thu, Jan 16, 2014 at 3:23 PM, Stott James fmro...@fylkesmannen.nowrote:

  Thanks for the response Tim.



 I have not been destroying my layers. This has not been an issue when
 running the plugin with 2.0.



 This was the first thing I thought about in the version running against
 master so I added the following code to close the postgis layers as it once
 I am finished with them:



 QgsMapLayerRegistry.instance().removeMapLayer(layer_id)

 This has not made it difference. It still hangs at the same place and I
 still get the warning that there is already too many clients when trying to
 connect to PostGIS with DB Manager or pgAdmin.



 Shall I open a bug?


Yes it sounds like a bug to me.

Regards

Tim




 *Fra:* Tim Sutton [mailto:li...@linfiniti.com]
 *Sendt:* 16. januar 2014 13:30
 *Til:* Stott James
 *Kopi:* qgis-developer@lists.osgeo.org
 *Emne:* Re: [Qgis-developer] Issue with standalone python script and
 PostGIS Layers



 Hi



 On Thu, Jan 16, 2014 at 11:06 AM, Stott James fmro...@fylkesmannen.no
 wrote:

 Hello all,



 I have a standalone python script that creates a bunch of PDFs for me.



 Recently this script has developed an issue. It uses QGIS-dev so it could
 be related to some of the changes in master recently as it works fine with
 QGIS 2.0.



 It makes about 42 PDFs then it stops.



 It is not actually crashing as such, as you can see it running in task
 manager. It stays running using between 0 and 2% processor, and fluctuates
 a little with memory use (around 108840kB). But it does not produce any
 more PDFs. It is like it is stuck.



 From the log file that my script creates, I know that it is hanging with
 this line of code:



 vlayer = QgsVectorLayer(uri.uri(), layerName, postgres)



 If I try and connect to the database using DB Manager in QGIS or pgAdmin
 III while the script is still running, I get an error saying there is
 already too many clients already. If I kill the process in windows task
 manager, I am then able to connect to the database using DB manager.



 Has anyone any suggestions as to what is wrong here? Is this a bug?



 I updated QGIS dev this morning using the OSGeo4W installer (its revision
 is eb9ce3a).





 If you are creating postgis layers in a loop, are you making sure to
 destroy them again nicely in your loop? Anyway if it used to work before
 maybe there was a regression somewhere



 Regards



 Tim



  James Stott



 GIS-koordinator

 Administrasjonsavdelinga

 Fylkesmannen i Rogaland



 Telefon: 51568793

 james.st...@fylkesmannen.no

 http://www.temakart-rogaland.no




 ___
 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
 ==




-- 
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] Issue with standalone python script and PostGIS Layers

2014-01-16 Thread Stott James
Done

http://hub.qgis.org/issues/9357

Fra: Tim Sutton [mailto:li...@linfiniti.com]
Sendt: 16. januar 2014 14:49
Til: Stott James
Kopi: qgis-developer@lists.osgeo.org
Emne: Re: [Qgis-developer] Issue with standalone python script and PostGIS 
Layers

Hi

On Thu, Jan 16, 2014 at 3:23 PM, Stott James 
fmro...@fylkesmannen.nomailto:fmro...@fylkesmannen.no wrote:
Thanks for the response Tim.

I have not been destroying my layers. This has not been an issue when running 
the plugin with 2.0.

This was the first thing I thought about in the version running against master 
so I added the following code to close the postgis layers as it once I am 
finished with them:

QgsMapLayerRegistry.instance().removeMapLayer(layer_id)
This has not made it difference. It still hangs at the same place and I still 
get the warning that there is already too many clients when trying to connect 
to PostGIS with DB Manager or pgAdmin.

Shall I open a bug?

Yes it sounds like a bug to me.

Regards

Tim


Fra: Tim Sutton [mailto:li...@linfiniti.commailto:li...@linfiniti.com]
Sendt: 16. januar 2014 13:30
Til: Stott James
Kopi: qgis-developer@lists.osgeo.orgmailto:qgis-developer@lists.osgeo.org
Emne: Re: [Qgis-developer] Issue with standalone python script and PostGIS 
Layers

Hi

On Thu, Jan 16, 2014 at 11:06 AM, Stott James 
fmro...@fylkesmannen.nomailto:fmro...@fylkesmannen.no wrote:
Hello all,

I have a standalone python script that creates a bunch of PDFs for me.

Recently this script has developed an issue. It uses QGIS-dev so it could be 
related to some of the changes in master recently as it works fine with QGIS 
2.0.

It makes about 42 PDFs then it stops.

It is not actually crashing as such, as you can see it running in task manager. 
It stays running using between 0 and 2% processor, and fluctuates a little with 
memory use (around 108840kB). But it does not produce any more PDFs. It is like 
it is stuck.

From the log file that my script creates, I know that it is hanging with this 
line of code:

vlayer = QgsVectorLayer(uri.uri(), layerName, postgres)

If I try and connect to the database using DB Manager in QGIS or pgAdmin III 
while the script is still running, I get an error saying there is already too 
many clients already. If I kill the process in windows task manager, I am then 
able to connect to the database using DB manager.

Has anyone any suggestions as to what is wrong here? Is this a bug?

I updated QGIS dev this morning using the OSGeo4W installer (its revision is 
eb9ce3a).


If you are creating postgis layers in a loop, are you making sure to destroy 
them again nicely in your loop? Anyway if it used to work before maybe there 
was a regression somewhere

Regards

Tim

James Stott

GIS-koordinator
Administrasjonsavdelinga
Fylkesmannen i Rogaland

Telefon: 51568793
james.st...@fylkesmannen.nomailto:james.st...@fylkesmannen.no
http://www.temakart-rogaland.no


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.orgmailto: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.nethttp://freenode.net
==



--
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.nethttp://freenode.net
==
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

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

2014-01-16 Thread Geo DrinX
Hi Minoru,


You can do it with latest code on GitHub.
 https://github.com/minorua/Qgis2threejs



I tested it   :)

I have an idea and a suggestion:

if a level was a WMS PNG24 or PNG32 of a DTM, do you think it would be
possible to use it to create 3D with your plugin?

This would be a very useful feature :)

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

Re: [Qgis-developer] New Save as... dialog

2014-01-16 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Il 16/01/2014 09:57, Werner Macho ha scritto:
 Hi Paolo!
 
 * What do you mean by lot of empty space in the middle here is only a very 
 small
 stripe
 * mostly emtpy - it is filled on demand depending on how many options are 
 provided
 by the format. - try to save as SpatiaLite

Hi Werner,
I apologize if I sounded too harsh - I did not mean it.
Let me explain what I mean:

http://www.faunalia.eu/~paolo/vector.png
http://www.faunalia.eu/~paolo/raster.png

* in vector, after Scale I have some empty space
* in raster all options are in collapsible submenus, whereas in vector one 
should
press More options  and it finds them on the side; I do not know which 
solution is
better (I incline for the raster one, but I'm not a GUI expert), but I think 
they
should be consistent
* CRS selector is different
* I see no point in having an empty collapsible box (Datasource Options, Layer
Options for Shapefiles)
* minor stuff could be made more consistent (e.g. Save as is over the box in 
vector,
and on the side in raster; Capitals should be only for the first word)

Thanks!
- -- 
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/

iEYEARECAAYFAlLYF0MACgkQ/NedwLUzIr46UACgul5z37BsjDZTF9wakB65xoY1
3OEAoIHZqF3y8NMhlxUgn5CQ1aOqNLM+
=VWI1
-END PGP SIGNATURE-
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] New Save as... dialog

2014-01-16 Thread Anita Graser

Thanks for bringing this up Paolo!

Am 16.01.2014, 18:30 Uhr, schrieb Paolo Cavallini cavall...@faunalia.it:

Let me explain what I mean:
http://www.faunalia.eu/~paolo/vector.png
http://www.faunalia.eu/~paolo/raster.png

* in vector, after Scale I have some empty space
* in raster all options are in collapsible submenus, whereas in vector  
one should press More options  and it finds them on the side; I donot  
know which solution is better (I incline for the raster one, butI'm not  
a GUI expert), but I think they should be consistent


+1 There should definitely be consistency between the vector and raster  
save as dialogs.
Imho, the raster solution where all options are aligned in one column is  
preferable.
I also see quite a big empty area in the left column when I open the  
vector save as dialog. I can decrease the height of the dialog manually  
but it jumps back to the bigger size once I open more options.



* CRS selector is different


In case of CRS selector, I think I prefer the raster solution. Here's why:  
1. The raster solution has only one dropdown box where the vector solution  
needs a dropdown and a text box; 2. The vector solution is confusing  
because the CRS name in the (greyed out) text box is not updated when the  
user changes between layer, project, and selected CRS.


* I see no point in having an empty collapsible box (Datasource Options,  
Layer Options for Shapefiles)


+ 1 for no empty collapsible boxes.

* minor stuff could be made more consistent (e.g. Save as is over the  
box in vector,

and on the side in raster; Capitals should be only for the first word)


The raster dialog lacks the very useful Add saved file to project  
checkbox.


Another small thing: I don't know about your experience, but I would very  
much like to have the Add saved file to project checkbox ticked by  
default.


Best wishes,
Anita

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


Re: [Qgis-developer] New Save as... dialog

2014-01-16 Thread Werner Macho
Hi!

No problem with harsh .. I did not even understand it in that way :)

 +1 There should definitely be consistency between the vector and raster
 save as dialogs.
 Imho, the raster solution where all options are aligned in one column is
 preferable.
 I also see quite a big empty area in the left column when I open the vector
 save as dialog. I can decrease the height of the dialog manually but it
 jumps back to the bigger size once I open more options.

The more options are usually not needed - it should only be necessary
to open it if you know what you are doing.

 * CRS selector is different


 In case of CRS selector, I think I prefer the raster solution. Here's why:
 1. The raster solution has only one dropdown box where the vector solution
 needs a dropdown and a text box; 2. The vector solution is confusing because
 the CRS name in the (greyed out) text box is not updated when the user
 changes between layer, project, and selected CRS.

I agree with the change in the CRS selector ..

 * I see no point in having an empty collapsible box (Datasource Options,
 Layer Options for Shapefiles)

If GDAL is extended with new options not available in the
preselectable options (or you have your own newer version of GDAL
installed) there is always the possibility to enter these new options
manual in these boxes (sometimes the commands can be quite long -
hence the space to overlook the full command). If you know a way of
hiding these boxes (again - more options should not be necessary to be
opened) it would be nice to make them smaller .. I did find no way.
 + 1 for no empty collapsible boxes.
which will mean that we loose functionality

 * minor stuff could be made more consistent (e.g. Save as is over the box
 in vector,
 and on the side in raster; Capitals should be only for the first word)

Thats a thing I will take care of ..

 The raster dialog lacks the very useful Add saved file to project
 checkbox.

 Another small thing: I don't know about your experience, but I would very
 much like to have the Add saved file to project checkbox ticked by
 default.

Would be nice .. If I find out how I will add it ..

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


[Qgis-developer] QgsMapCanvas::paintEvent() too frequent

2014-01-16 Thread Radim Blazek
QgsMapCanvas::paintEvent() is called too frequently on my X11, for example:
- 11 times when mouse enters map canvas (if QGIS does not have focus)
- 10 times when mouse leaves map canvas
- 13 times when minimized QGIS is restored
etc.

Does anybody know why and how it could be reduced?

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


Re: [Qgis-developer] New Save as... dialog

2014-01-16 Thread Anita Graser

Am 16.01.2014, 20:15 Uhr, schrieb Werner Macho werner.ma...@gmail.com:

If GDAL is extended with new options not available in the
preselectable options (or you have your own newer version of GDAL
installed) there is always the possibility to enter these new options
manual in these boxes (sometimes the commands can be quite long -
hence the space to overlook the full command). If you know a way of
hiding these boxes (again - more options should not be necessary to be
opened) it would be nice to make them smaller .. I did find no way.

+ 1 for no empty collapsible boxes.

which will mean that we loose functionality


I think we might not be talking about the same thing here.

Check http://www.faunalia.eu/~paolo/vector.png

Datasource Options and Layer Options are empty and could be hidden.

Custom Options contains two input fields for custom layer and datasource  
options. Those are fine!


Best wishes,
Anita


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


Re: [Qgis-developer] New Save as... dialog

2014-01-16 Thread Werner Macho
Ok .. Now I know what you mean ..
Hide it if there is nothing inside..

I see

On Thu, Jan 16, 2014 at 10:28 PM, Anita Graser anitagra...@gmx.at wrote:
 Am 16.01.2014, 20:15 Uhr, schrieb Werner Macho werner.ma...@gmail.com:

 If GDAL is extended with new options not available in the
 preselectable options (or you have your own newer version of GDAL
 installed) there is always the possibility to enter these new options
 manual in these boxes (sometimes the commands can be quite long -
 hence the space to overlook the full command). If you know a way of
 hiding these boxes (again - more options should not be necessary to be
 opened) it would be nice to make them smaller .. I did find no way.

 + 1 for no empty collapsible boxes.

 which will mean that we loose functionality


 I think we might not be talking about the same thing here.

 Check http://www.faunalia.eu/~paolo/vector.png

 Datasource Options and Layer Options are empty and could be hidden.

 Custom Options contains two input fields for custom layer and datasource
 options. Those are fine!


 Best wishes,
 Anita


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


Re: [Qgis-developer] [QGIS-UX] New Save as... dialog

2014-01-16 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Il 16/01/2014 19:55, Anita Graser ha scritto:

 In case of CRS selector, I think I prefer the raster solution. Here's why: 1. 
 The
 raster solution has only one dropdown box where the vector solution needs a 
 dropdown
 and a text box; 2. The vector solution is confusing because the CRS name in 
 the
 (greyed out) text box is not updated when the user changes between layer, 
 project,
 and selected CRS.

BTW, I think we should use the same selector throughout, e.g. LayerNewNew 
shapefile
layer, New spatialite layer, Layer propertiesGeneral, etc.

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/

iEYEARECAAYFAlLYSaUACgkQ/NedwLUzIr5N3wCZAcP2IDNn6LkGiefhJJY32gnm
s8UAnihdRRCYLDKsYQ5x7Ie5lh9dc8OY
=ncIf
-END PGP SIGNATURE-
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] New Save as... dialog

2014-01-16 Thread Ramon Andiñach

On 17/01/2014, at 02:55 , Anita Graser wrote:

 The raster dialog lacks the very useful Add saved file to project checkbox.
 
 Another small thing: I don't know about your experience, but I would very 
 much like to have the Add saved file to project checkbox ticked by default.

+1 from an interested user. Excellent suggestion. Wish I'd made it myself :)

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


[Qgis-developer] Difference for transform reference system between QGIS and GDAL

2014-01-16 Thread Luiz Motta
Hi all,

I had differences for transform the reference system of geometries between
GDAL and QGIS.

I made the transform using GDAL into geometry with reference system  SAD 69
UTM (EPSG 29191) to WGS 84 (EPSG 4326) .

When i add in QGIS the geometries with WGS84 and SAD 69  using 'on the fly'
(WGS84), has diferences positions of coordinate (see picture).

The QGIS reads the reference system of shapefile different than GDAL (see
layer property).

I would like understand how using GDAL for transform geometries this
reference system of this shapefile ?

How can difference reading shapefile by QGIS and GDAL ?


Data for help me:
1) python script using GDAL:
http://pastebin.com/ujeHJLx5

2) Shapefile with SAD69 UTM
https://dl.dropboxusercontent.com/u/14847115/diff_qgis-gdal/sad69_utm.zip

3) Picture of QGIS with a difference between geometries
https://dl.dropboxusercontent.com/u/14847115/diff_qgis-gdal/diff_transform.png

The code of python print the two geometries in WKT format.
I use the QuickWKT plugin for view these geometries

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

Re: [Qgis-developer] Difference for transform reference system between QGIS and GDAL

2014-01-16 Thread Andre Joost

Am 17.01.2014 03:01, schrieb Luiz Motta:

Hi all,

I had differences for transform the reference system of geometries between
GDAL and QGIS.

I made the transform using GDAL into geometry with reference system  SAD 69
UTM (EPSG 29191) to WGS 84 (EPSG 4326) .

When i add in QGIS the geometries with WGS84 and SAD 69  using 'on the fly'
(WGS84), has diferences positions of coordinate (see picture).

The QGIS reads the reference system of shapefile different than GDAL (see
layer property).

I would like understand how using GDAL for transform geometries this
reference system of this shapefile ?

How can difference reading shapefile by QGIS and GDAL ?


The shapefiles .prj file has no +towgs84 parameters, so GDAL sets them 
to zero.


QGIS assigns the EPSG:29191 to the file, which has +towgs84 parameters.

HTH,
André Joost
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Mmqgis error making a buffer

2014-01-16 Thread Geodrinx
Hello All,

with QGis 2.01-7 MacOSX  and  mmqgis plugin, making a buffer, I had an error:

Traceback (most recent call last):
  File /Users/hacked-crew/.qgis2/python/plugins/mmqgis/mmqgis_dialogs.py, 
line 385, in run
message = mmqgis_buffers(self.iface, layername, mmqgis_buffers_radius, 
unit, shape, savename, True)
  File /Users/hacked-crew/.qgis2/python/plugins/mmqgis/mmqgis_library.py, 
line 930, in mmqgis_buffers
field_index = layer.fieldNameIndex(radius)
TypeError: QgsVectorLayer.fieldNameIndex(QString): argument 1 has unexpected 
type 'int'

Versione Python:
2.7.2 (default, Oct 11 2012, 20:14:37) 
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)]


Versione di QGIS:
2.0.1-Dufour Dufour, f738351

Someone can help me to understand what is the problem ?

Thank you

Roberto



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


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

2014-01-16 Thread Minoru Akagi
Hi Roberto,

The way of getting elevation values from 3 or 4 bands image data seems
a little strange. AFAIK, at least it is not common, and WCS is a more
ordinary way to get elevation data through internet access. Using QGIS
API (QgsRasterDataProvider) in addition to GDAL API to support more
data sources (1 band rasters) may be a good idea.

Minoru

2014/1/16 Geo DrinX geodr...@gmail.com:
 Hi Minoru,


 You can do it with latest code on GitHub.
 https://github.com/minorua/Qgis2threejs



 I tested it   :)

 I have an idea and a suggestion:

 if a level was a WMS PNG24 or PNG32 of a DTM, do you think it would be
 possible to use it to create 3D with your plugin?

 This would be a very useful feature :)

 Roberto


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


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

2014-01-16 Thread Geodrinx
Hi Minoru,


 Using QGIS
 API (QgsRasterDataProvider) in addition to GDAL API to support more
 data sources (1 band rasters) may be a good idea.

Great !  :)

Roberto

 
 Minoru
 
 2014/1/16 Geo DrinX geodr...@gmail.com:
 Hi Minoru,
 
 
 You can do it with latest code on GitHub.
 https://github.com/minorua/Qgis2threejs
 
 
 
 I tested it   :)
 
 I have an idea and a suggestion:
 
 if a level was a WMS PNG24 or PNG32 of a DTM, do you think it would be
 possible to use it to create 3D with your plugin?
 
 This would be a very useful feature :)
 
 Roberto
 
 
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer