Re: [Qgis-developer] What about QGis on Raspberry PI ... ?

2014-03-18 Thread rdmailings
On Mon, Mar 17, 2014 at 07:02:49PM -0700, Alex Mandel wrote:
> 
> There's no other reason it won't work.
> 
> On 03/17/2014 05:35 PM, Geo DrinX wrote:
> > This is also interesting :
> > 
> > http://qt-project.org/wiki/Qt-RaspberryPi

Mmm, but that is Qt5 isn't it? QGIS is still on Qt4?

while a very nice project, I'm not sure if the user experience will be 
ok on this low end (for X) devices. For example running a 'normal' webbrowser 
(other then Midori), already makes me pull my hair out..
On the other side: it is a very nice platform to make automated field work 
devices.

But plz try and show us, and make me look a conservative fool :-)

Regards,

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


[Qgis-developer] libxml2 missing in OSGEO4W

2014-03-18 Thread Jakob Lanstorp
In Ubuntu QGIS 2.3 I can in the Python console run import libxml2. If I try
the same on a OSGEO4W QGIS 2.2 I get: "ImportError: No module named
libxml2". If I look under OSGEO4W advanced install I can see that the
libxml2 library is included. But the library is not importable in the Python
console of QGIS?

How can I get the libxml2 library available in Windows QGIS 2.2?

 

Thanks,
Jakob



-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/libxml2-missing-in-OSGEO4W-tp5129607.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] how to run an external program from QGIS and catch its output?

2014-03-18 Thread Hugo Ledoux
I’m developing a plugin and I want to call an external program that
takes as input a string and outputs a string. Under Mac and Linux I
successfully used subprocess.Popen() but under Windows it doesn’t
work. For instance, from a Python console inside QGIS under Mac/Linux:

import subprocess
p = subprocess.Popen(['ls', '-al'], stdout=subprocess.PIPE)
print p.stdout.read()
total 17101
drwxr-xr-x   35 root  wheel 1258 Mar 13 09:11 .
drwxr-xr-x   35 root  wheel 1258 Mar 13 09:11 ..
-rw-rw-r--@   1 root  admin 6148 Dec  6 12:13 .DS_Store
d--x--x--x8 root  wheel  272 Nov  5 10:02 .DocumentRevisions-V100
…

But under Windows if I try to catch the output (which is a requirement for me) :
import subprocess
p = subprocess.Popen(['dir'], shell=True, stdout=subprocess.PIPE)
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\PROGRA~1\QGISVA~1\apps\Python27\lib\subprocess.py", line
703, in __init__
errread, errwrite) = self._get_handles(stdin, stdout, stderr)
  File "C:\PROGRA~1\QGISVA~1\apps\Python27\lib\subprocess.py", line
839, in _get_handles
p2cread = self._make_inheritable(p2cread)
  File "C:\PROGRA~1\QGISVA~1\apps\Python27\lib\subprocess.py", line
878, in _make_inheritable
_subprocess.DUPLICATE_SAME_ACCESS)
WindowsError: [Error 6] The handle is invalid

What’s the best way to call a program and catching the output (a
string) under Windows?

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

Re: [Qgis-developer] Postgis Spatial Views - problems with primary keys

2014-03-18 Thread Alexandre Neto
I have opened a ticket:

https://hub.qgis.org/issues/9803

Alexandre


On Tue, Mar 11, 2014 at 12:08 PM, Alexandre Neto wrote:

> Hello all,
>
> Regarding this matter, should I make a ticket? Or is the general
> understanding that the described behavior is ok as it is?
>
> Thanks,
>
> Alexandre Neto
>
>
> On Mon, Mar 10, 2014 at 2:39 PM, Alexandre Neto wrote:
>
>> Hi Jürgen,
>>
>>
>> On Mon, Mar 10, 2014 at 12:30 PM, Jürgen E.  wrote:
>>
>>>
>>> QGIS just offers all integer fields as candidate.  It doesn't select any.
>>>
>>
>> If you use add Postgis layer dialog, it uses one of integer fields by
>> default in the primary key column (not always the same).
>>
>>
>>> I think that changed before 2.0.1. QGIS used to identify which view
>>> field are
>>> primary keys in the underlying tables, but that makes sense if the view
>>> is a
>>> selection of that table, which is just a very small subset of possible
>>> views.
>>> E.g. for joins between two tables being a primary key in one of the
>>> table,
>>> doesn't mean that the attribute is also unique in the view.
>>>
>>
>> I have a Portuguese user that says that this 2.0.1 is working as before
>> (and that he won't change to 2.2 until it gets "fixed"), but personally I
>> can't confirm this.
>>
>> What was the downside of the later behavior? I.e. qgis identifying
>> several primary keys and try to guess what to use? Even if it is a small
>> subset of possible views, I think it would make user's life easier in some
>> cases.
>>
>> Also, as it is now, unless the view only have one integer field, the
>> browser became useless for adding views. We should, at least, change the
>> error message, informing the user that he must select a primary key
>> manually (only possible in the add postgis layer dialog).
>>
>> Thanks for your answer.
>>
>> Alexandre
>>
>>
>>> Jürgen
>>>
>>> --
>>> Jürgen E. Fischer norBIT GmbH   Tel.
>>> +49-4931-918175-31
>>> Dipl.-Inf. (FH)   Rheinstraße 13Fax.
>>> +49-4931-918175-50
>>> Software Engineer D-26506 Norden
>>> http://www.norbit.de
>>> QGIS PSC member (RM)  Germany  IRC: jef on
>>> FreeNode
>>>
>>> --
>>> norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
>>> Rheinstrasse 13, 26506 Norden
>>> GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502
>>>
>>> ___
>>> 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] Plugin for squaring off area feats

2014-03-18 Thread Zoltan Szecsei

Hi,
Does anyone know of a plugin for squaring off area features (where 
angles are "close enough" to 90degs)


Thanks,
Zoltan

--

===
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
GIS and Photogrammetric Services

P.O. Box 7, Muizenberg 7950, South Africa.

Mobile: +27-83-6004028
Fax:+27-86-6115323 www.geograph.co.za
===

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


Re: [Qgis-developer] [RASTER][Feature] Applying scale and offset to raster data - funded Ifremer

2014-03-18 Thread rldhont

Hi Etienne,

I have integrated your test and updated it.
I also updated SIP API and corrected my code to account for negative 
scale value.


Reviews are welcomed.

Regards,
René-Luc D'Hont
3Liz

Le 24/01/2014 17:16, Etienne Tourigny a écrit :

I have made some comments and will test it with some netcdf files.

It would be great to add this before feature freeze, but it is 
imperative that a test is in place, at least to make sure that it does 
not break anything with "normal" files.



On Fri, Jan 24, 2014 at 1:30 PM, rldhont > wrote:


Hi dev,

I would like my pull-request be merged before code freeze.
Radim Blazek helped me to finalize it, but he would like someone
else does the merge.

https://github.com/rldhont/Quantum-GIS/commit/916f2cd6fb3de6f46c8f0fd8b0f5ae4ccbaff8ff

This pull-request is also a BUGFIX #8417 incorrect value loaded
from netcdf file
http://hub.qgis.org/issues/8417

Who do I assign the pull-request ?

Regards,

René-Luc D'Hont
3Liz
___
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

Re: [Qgis-developer] how to run an external program from QGIS and catch its output?

2014-03-18 Thread p0cisk
Hello Hugo,
Try QProcess class. It has signals for process finish and reading from
stdout.

Regards
Piotr



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/how-to-run-an-external-program-from-QGIS-and-catch-its-output-tp5129610p5129650.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] how to run an external program from QGIS and catch its output?

2014-03-18 Thread Larry Shaffer
Hi Hugo,

On Tue, Mar 18, 2014 at 2:59 AM, Hugo Ledoux  wrote:

> I'm developing a plugin and I want to call an external program that
> takes as input a string and outputs a string. Under Mac and Linux I
> successfully used subprocess.Popen() but under Windows it doesn't
> work. For instance, from a Python console inside QGIS under Mac/Linux:
>
> import subprocess
> p = subprocess.Popen(['ls', '-al'], stdout=subprocess.PIPE)
> print p.stdout.read()
>

Though I have not tested whether this is better on Windows, try instead:

  print p.communicate()[0]

See:
http://docs.python.org/2.7/library/subprocess.html#subprocess.Popen.communicate

I had a similar file handle issues on Mac, and that fixed it (though it
seems like p.stdout.read() should just work).

Regards,

Larry

...
>
> But under Windows if I try to catch the output (which is a requirement for
> me) :
> import subprocess
> p = subprocess.Popen(['dir'], shell=True, stdout=subprocess.PIPE)

Traceback (most recent call last):
>   File "", line 1, in 
>   File "C:\PROGRA~1\QGISVA~1\apps\Python27\lib\subprocess.py", line
> 703, in __init__
> errread, errwrite) = self._get_handles(stdin, stdout, stderr)
>   File "C:\PROGRA~1\QGISVA~1\apps\Python27\lib\subprocess.py", line
> 839, in _get_handles
> p2cread = self._make_inheritable(p2cread)
>   File "C:\PROGRA~1\QGISVA~1\apps\Python27\lib\subprocess.py", line
> 878, in _make_inheritable
> _subprocess.DUPLICATE_SAME_ACCESS)
> WindowsError: [Error 6] The handle is invalid
>
> What's the best way to call a program and catching the output (a
> string) under Windows?
>
> Many thanks,
> Hugo
> ___
> 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] [Feature][RASTER] Generate band name with NetCDF EXTRA_DIM funded by Ifremer

2014-03-18 Thread rldhont

Hi dev,

I have open an issue http://hub.qgis.org/issues/9810 and a pull request 
https://github.com/qgis/QGIS/pull/1253


The NetCDF provided extra dimensional information. This information 
provides metadata on each band. These metadat can be used to explain the 
name of each band.


For example, the bands of a NetCDF file represents the temperature at a 
given depth. For the user, it is easier to select a band with depth 
information, rather than the number.


If the GDAL version is equal or greater than 1.10.0, the band name is 
generated with the extra_dim information.


Regards,
René-Luc D'Hont
3Liz


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


[Qgis-developer] Installed 2.2 - Cannot use GRASS, SAGA, OTB tools

2014-03-18 Thread Chrest, David
I uninstalled QGIS 2.0.1 and just installed 2.2 using the Windows
standalone installer 64 bit. I now am unable to use any of the 157 GRASS
tools.

I get the following messages in a Missing dependency window that pops up
when I try to use a GRASS tool:

Missing dependency. This algorithm cannot be run :-(

This algorithm requires GRASS to be run. Unfortunately, it seems that
GRASS is not installed in your system, or it is not correctly configured
to be used from QGIS.

Click here
  to know more about how to install and configure GRASS to be used
with QGIS.

So I click the "Click here" link and just gives me the User Guide home
page, which does not help much.

The same goes for all the SAGA tools (243), and OTB tools (76).

This is a huge loss. Do these not get installed with the Windows
standalone installer?

Any help in a fix would be greatly appreciated.

David

David Chrest, Research GIS Analyst

RTI International, 3040 Cornwallis Rd, PO Box 12194, Research Triangle
Park, NC  27709-2194

 

 

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

Re: [Qgis-developer] WMS load regression in 2.2

2014-03-18 Thread Nyall Dawson
On 17 March 2014 23:56, Luca Manganelli  wrote:
>
> on 32 bit Windows XP systems, loading WMS layers in QGIS 2.2 are
> considerately slower than in QGIS 2.0.
>
> On my tests, QGIS 2.2 takes more than a minute, while QGIS 2.0 loads the WMS
> in 1-2 seconds.
>
> To test, you can use our WMS server:
>
> http://webapps.comune.trento.it/ogc
>

Have you made a change to your WMS server? I can't replicate this -
for me loading the server in 2.2  32 bit only takes a few seconds.

However, I suspect that you may be encountering an issue I ran into
with connections to a WMS with many layers. This was fixed in
https://github.com/qgis/QGIS/commit/99d030d67594766c5acb452adb84cc0f803f201d
. I'm planning on backporting this fix to the 2.2 branch too so it
will be included in any potential 2.2 point releases.

Are you able to test with the current master dev version and report
your findings?

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


Re: [Qgis-developer] WMS load regression in 2.2

2014-03-18 Thread Ivan Minčík
On Mar 18, 2014 10:58 PM, "Nyall Dawson"  wrote:
>
> On 17 March 2014 23:56, Luca Manganelli  wrote:
> >
> > on 32 bit Windows XP systems, loading WMS layers in QGIS 2.2 are
> > considerately slower than in QGIS 2.0.
> >
> > On my tests, QGIS 2.2 takes more than a minute, while QGIS 2.0 loads
the WMS
> > in 1-2 seconds.
> >
> > To test, you can use our WMS server:
> >
> > http://webapps.comune.trento.it/ogc
> >
>
> Have you made a change to your WMS server? I can't replicate this -
> for me loading the server in 2.2  32 bit only takes a few seconds.
>
> However, I suspect that you may be encountering an issue I ran into
> with connections to a WMS with many layers. This was fixed in
>
https://github.com/qgis/QGIS/commit/99d030d67594766c5acb452adb84cc0f803f201d
> . I'm planning on backporting this fix to the 2.2 branch too so it
> will be included in any potential 2.2 point releases.

Nyall, please backport it to 2.2 branch.

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