[Qgis-developer] Next QGIS developer meeting

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

Dear all,

I apologize for crossposting. As you know, QGIS has run a long series of very
successful developer meetings, where we fixed hundreds of bugs, wrote thousands 
of
lines of code and documentation, and took important decisions for the future of 
the
project. The next meeting will bring us even a step further: we decided to join 
the
so-called "C Tribe" Code sprint, which will be held in Vienna  [2], after 
another
history of successful events (Toronto [7], New York [6], Montreal [5], Island 
Wood
[4], and Boston [3]).
For the first time, QGIS will join forces with leading developers of projects 
like
GDAL, PostGIS, MapServer, PDAL, and many more get together to discuss new ideas,
hack, decide, tackle large geospatial problems. It will be presumably the 
largest
event of its kind ever, and we expect fruitful interactions and exciting 
results.
The participation of QGIS developers, who donate their time freely for what 
will be a
long coding week, will be made possible by your donations and sponsorship.
You are therefore invited to sponsor the event with a sponsorship (details on 
[9]) or
a free donation of any amount.
As a sponsor you profit from a number of honours. For example your logo or 
portrait
at the top of the sprint website, your name in public Code Sprint email 
communication
on the OSGeo mailing lists, your name and logo in an official OSGeo News entry, 
and
many more. All details can be found at the sprint website [9]. Of course we are 
open
to discuss your personal ideas to tailor your individual package.
Don't hesitate to contact me if you have any questions.

Best regards,

Paolo Cavallini, on behalf of QGIS PSC

[1] http://www.osgeo.org
[2] http://vienna2014.sprint.osgeo.org
[3] http://wiki.osgeo.org/wiki/Boston_Code_Sprint_2013
[4] http://wiki.osgeo.org/wiki/IslandWood_Code_Sprint_2012
[5] http://wiki.osgeo.org/wiki/Montreal_Code_Sprint_2011
[6] http://wiki.osgeo.org/wiki/New_York_Code_Sprint_2010
[7] http://wiki.osgeo.org/wiki/Toronto_Code_Sprint_2009
[8] http://blog.opengeo.org/2013/04/03/why-we-sprint/
[9] http://vienna2014.sprint.osgeo.org/sponsoring.html
- -- 
Paolo Cavallini - www.faunalia.eu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlLG9swACgkQ/NedwLUzIr76NwCgosbTt1p8bPsZOZWbHqtir9xA
FuQAn2BBR/o83zJ+T6aiYv6dTmm93Kuy
=0rbV
-END PGP SIGNATURE-
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS Server SLD GetStyles method bug?

2014-01-03 Thread rldhont

Le 03/01/2014 18:09, Alessandro Pasotti a écrit :

2014/1/3 rldhont mailto:rldh...@gmail.com>>

Hi,

It's just because the STYLE parameter is mandatory in GetMap
Request and GetStyle is based on it.
If QGIS-Server will implement multi-styles, STYLE parameter will
be usefull like in GetMap.



Thanks,

just to be sure: are you saying that GetStyle implementation in QGIS 
Mapserver is based on GetMap and hence the parameter is needed (even 
if unused) or that the OGC standard says that GetStyle is kind of sub 
method of GetMap and it requires all mandatory parameters of GetMap?


Yes, but GetStyle is not an OGC defined method.

The method defined by OGC is GetStyles to retrieve all the layer's styles.

You can open a bug, and discussing about GetStyle and GetStyles request.

Reagrds,

René-Luc D'Hont
3Liz




--
Alessandro Pasotti
w3: www.itopen.it 


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

Re: [Qgis-developer] Wiki Cleanup

2014-01-03 Thread Geodrinx
... and, please, update the pyQGis documentation !

It is impossible to update or write the plugins, without a correct 
documentation  :)

Thank you

Roberto

Inviato da iPhone

Il giorno 03/gen/2014, alle ore 18:20, "Anita Graser"  ha 
scritto:

> Hi,
> 
> At today's PSC meeting, we decided that the QGIS Wiki 
> (http://hub.qgis.org/wiki/quantum-gis/) is in need of a serious cleanup. It's 
> generally not well maintained and much of its content is better covered in 
> the documentation and governance docs. In one week (on Jan, 10th), we will be 
> starting to remove content.
> 
> Please report any pages/content that you think should remain on the wiki.
> 
> If you find useful content but think it should be moved to a different 
> location, please let us know as well.
> 
> Of course we will do a backup before we start the cleaning process.
> 
> Best wishes,
> Anita
> 
> ___
> anitagraser.com
> ___
> 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] Wiki Cleanup

2014-01-03 Thread Anita Graser

Hi,

At today's PSC meeting, we decided that the QGIS Wiki  
(http://hub.qgis.org/wiki/quantum-gis/) is in need of a serious cleanup.  
It's generally not well maintained and much of its content is better  
covered in the documentation and governance docs. In one week (on Jan,  
10th), we will be starting to remove content.


Please report any pages/content that you think should remain on the wiki.

If you find useful content but think it should be moved to a different  
location, please let us know as well.


Of course we will do a backup before we start the cleaning process.

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 Server SLD GetStyles method bug?

2014-01-03 Thread Alessandro Pasotti
2014/1/3 rldhont 

>  Hi,
>
> It's just because the STYLE parameter is mandatory in GetMap Request and
> GetStyle is based on it.
> If QGIS-Server will implement multi-styles, STYLE parameter will be
> usefull like in GetMap.
>


Thanks,

just to be sure: are you saying that GetStyle implementation in QGIS
Mapserver is based on GetMap and hence the parameter is needed (even if
unused) or that the OGC standard says that GetStyle is kind of sub method
of GetMap and it requires all mandatory parameters of GetMap?


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

Re: [Qgis-developer] QGIS Server SLD GetStyles method bug?

2014-01-03 Thread rldhont

Hi,

It's just because the STYLE parameter is mandatory in GetMap Request and 
GetStyle is based on it.
If QGIS-Server will implement multi-styles, STYLE parameter will be 
usefull like in GetMap.


Regards,
René-Luc D'Hont
3Liz

Le 03/01/2014 17:58, Alessandro Pasotti a écrit :

Hi,

while testing for GetStyles on master I noticed that the server raises 
an exception if the parameter STYLE is not specified.


Digging in the code, it appears that Q_UNUSED( styleName );
https://github.com/qgis/QGIS/blob/master/src/mapserver/qgsprojectparser.cpp#L1669


is there any reason for requiring a parameter (STYLE) that is not 
cited in the official OGC specifications and it's not even used?


BTW: the server can be faked with an empty STYLE parameter, and the 
exception is raised here: 
https://github.com/qgis/QGIS/blob/master/src/mapserver/qgswmsserver.cpp#L588


Should I file a ticket?

--
Alessandro Pasotti
w3: www.itopen.it 


___
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] QGIS Server SLD GetStyles method bug?

2014-01-03 Thread Alessandro Pasotti
Hi,

while testing for GetStyles on master I noticed that the server raises an
exception if the parameter STYLE is not specified.

Digging in the code, it appears that Q_UNUSED( styleName );
https://github.com/qgis/QGIS/blob/master/src/mapserver/qgsprojectparser.cpp#L1669


is there any reason for requiring a parameter (STYLE) that is not cited in
the official OGC specifications and it's not even used?

BTW: the server can be faked with an empty STYLE parameter, and the
exception is raised here:
https://github.com/qgis/QGIS/blob/master/src/mapserver/qgswmsserver.cpp#L588

Should I file a ticket?

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

[Qgis-developer] RE : Re: QGIS Web Client improvements

2014-01-03 Thread yjacolin
Hello


Rather a SLD specification which add some new parameters to WMS services.

Y.


Envoyé depuis un mobile Samsung

 Message d'origine 
De : aperi2007  
Date :  
A : rldhont  
Cc : QGIS Developer Mailing List  
Objet : Re: [Qgis-developer] QGIS Web Client improvements 
 
On 03/01/2014 15:47, rldhont wrote:
>
> Yes, but you can query the style in SLD and have the CLASS name.
>
> Others clients like mapfish use it
>
> Regards,
> René-Luc D'Hont
Hi,

Is really interst this information.
I don't know this option.

Is a wms specs request ?

Thx,

Andrea.

___
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] [QGIS-Server] Adding Web Processing Service, partially funded

2014-01-03 Thread rldhont

Hi Vincent

Le 20/12/2013 12:28, Vincent Picavet a écrit :
Other question : do you rely on qgis.core only then for QGIS 
processing now ?


To run QGIS Processing algorithms, I only rely on qgis.core but it is 
necessary to intialize a QGSApplication and a QApplication.


+1 for that, simple, flexible and powerful. And Unix spirit too :-) If 
we want tighter integration, it is a matter of packaging PyWPS with 
QGIS. Or implement a way of sending bundled WPS scripts from QGIS to a 
PyWPS server. As for performances, I think having python for serving 
WPS is not damaging, since the performances issues are more related to 
the algorithms implementation than the WPS server itself. Vincent 


I'm working on a python class to easily publishing QGIS Processing 
server-side with PyWPS.

For example :
=
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from pywps.Process import WPSProcess
from qgisWPSProcess import qgisWPSProcess

qgis = qgisWPSProcess("qgis:fixeddistancebuffer")

saga = qgisWPSProcess("saga:shapesbuffer")

grass = qgisWPSProcess("grass:v.buffer.distance")
==
All theses processes has to be tested.

But I would like to add the ability to use a QGIS project to restrict 
processes on some layers.


Regards,
René-Luc D'Hont
3Liz
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] OSM address search

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

Il 02/01/2014 15:52, Régis Haubourg ha scritto:

> google's one. If porting it to core, we should allow users to choose which
> location service they want to use, with specific parameters..

sure, I think we all agree this is the way to go

all the best.

- -- 
Paolo Cavallini - www.faunalia.eu
Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlLG0IUACgkQ/NedwLUzIr42VQCfdLN+8St6syOXrWGbBa4YPGrk
APwAoKLGWM7atWUTXQtC/NVNkFNuW14I
=R/IV
-END PGP SIGNATURE-
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] QGIS Web Client improvements

2014-01-03 Thread aperi2007

Sorry, I don't understand before.

Obviously this mean that this solution is not for external wms where 
there isn't this little php addon.
Only for direct accessible server where is possible to add this 
php/python addon.


Also perhaps is better to add a vendor-specific parameter to the 
getcapabilites of qgis.

So you have no problem in evolutions of projects .qgs file formats

A.

On 03/01/2014 15:45, Alessandro Pasotti wrote:

2014/1/3 aperi2007 mailto:aperi2...@gmail.com>>

The RULE ?

It need to know exactly the class name,
but AFAIK the rule name is not available from the GetCapabilities

don't ?



Yes, but as I wrote, with a small Python/PHP helper that parses the 
project file we can get that information and bind the two.


The SVG legend (if contains proper attributes to build the FILTER) 
would work without an additional helper.



--
Alessandro Pasotti
w3: www.itopen.it 


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

Re: [Qgis-developer] [Feature][Processing] Headless

2014-01-03 Thread rldhont

Hi Salvatore,

Thanks! I'm working on a python class to easily publishing process based 
on PyWPS and QGIS-Processing.


I have updated my script exemple :
==
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys, os
import inspect

#first qgis
from qgis.core import *
#next PyQt4
from PyQt4.QtCore import *
from PyQt4.QtGui import *

# init QApplication for processing and set the customSettingFolder
#a = QApplication( sys.argv )
QgsApplication( sys.argv, False, "/my/custom/path" )

# supply path to where is your qgis installed
QgsApplication.setPrefixPath("/my/build", True)

# load providers
QgsApplication.initQgis()

p = QgsProject.instance()
p.read( QFileInfo( "/my/project.qgs" ) )
print p.title()

mlr = QgsMapLayerRegistry.instance()

qa = QApplication( sys.argv )
from processing.core.Processing import Processing
cmd_folder = os.path.split(inspect.getfile(inspect.currentframe()))[0]
if cmd_folder not in sys.path:
sys.path.insert(0, cmd_folder)
Processing.initialize()

from processing.tools import *
#general.alglist( 'znt' )

#general.alghelp( 'modeler:znt' )

paramalg = []

print "runalg start"
general.runalg( 'process:identifier', *paramalg )
print "runalg end"

# quit
QgsApplication.exitQgis()
#a.exit()
QApplication.exit()
==

Regards,
René-Luc D'Hont
3Liz

Le 02/01/2014 21:52, Salvatore Larosa a écrit :

Hi,

I just tested it and works wonderfully!
I also have tried it as web process for PyWPS and works very well!

Thanks a lot for this!

Best Regards,
-SL

On Mon, Dec 16, 2013 at 3:46 PM, rldhont  wrote:

Hi dev,

I just created a pull request to run QGIS-Processing headless.
I have tested it with a qgis and a modeler algorithm.

https://github.com/qgis/QGIS/pull/1031

Review and comments are welcome

To test QGIS Processing algorithm headlessly, you can use this
python code
__

import sys, os
import inspect

from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *


# supply path to where is your qgis installed
QgsApplication.setPrefixPath("/path/to/your/qgis/build", True)

# load providers
QgsApplication.initQgis()

# load a project
p = QgsProject.instance()
p.read( QFileInfo( "/path/to/a/project.qgs" ) )

# init QApplication for processing
a = QApplication( sys.argv )

# init QGIS Processing
from processing.core.Processing import Processing
cmd_folder = os.path.split(inspect.getfile(inspect.currentframe()))[0]
if cmd_folder not in sys.path:
sys.path.insert(0, cmd_folder)
Processing.initialize()

# import QGIS Processing tools
from processing.tools import *

# print an algorithms search
general.alglist( 'buffer')

# print an algorithm help
general.help( 'qgis:fixeddistancebuffer' )


# run an algorithm
alg = Processing.getAlgorithm( 'qgis:fixeddistancebuffer' )
general.runalg( 'qgis:fixeddistancebuffer',
'/vector/layer/input/uri', 0.1, 5, False,
'/vector/layer/output.shp' );

# quit
QgsApplication.exitQgis()


export

PYTHONPATH=/path/to/build/share/qgis/python:/path/to/build/share/qgis/python/plugins
export LD_LIBRARY_PATH=/path/to/build/lib
python my_scrpit.py
_

Regards
___
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] QGIS Web Client improvements

2014-01-03 Thread aperi2007

On 03/01/2014 15:47, rldhont wrote:


Yes, but you can query the style in SLD and have the CLASS name.

Others clients like mapfish use it

Regards,
René-Luc D'Hont

Hi,

Is really interst this information.
I don't know this option.

Is a wms specs request ?

Thx,

Andrea.

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


Re: [Qgis-developer] QGIS Web Client improvements

2014-01-03 Thread rldhont

Le 03/01/2014 15:41, aperi2007 a écrit :

The RULE ?

It need to know exactly the class name,
but AFAIK the rule name is not available from the GetCapabilities

don't ?


Yes, but you can query the style in SLD and have the CLASS name.

Others clients like mapfish use it

Regards,
René-Luc D'Hont
3Liz



A.

On 03/01/2014 15:27, Alessandro Pasotti wrote:

2014/1/3 Yves Jacolin mailto:yjaco...@free.fr>>

Hello,

Le vendredi 3 janvier 2014 13:14:57 aperi2007 a écrit :
> On 03/01/2014 13:06, Alessandro Pasotti wrote:
> > I also think it's not possible at the moment.
> > But I like the way it was implemented in other frameworks,
all I need
> > is a way to get the style image for a single "class". I guess
we need
> > to add a custom WMS method to the QGIS Server.
>
> This is possible using the optional parameter "scale" from wms
specs.
> Using it and the layers param.
> You could identify a single layer and get the legend at a
specific scale.
>
> Apy attention:
> if you do not specify the scale parameter the wms server will
return the
> render to ALL the scale.
> This mean tahat the renddering is
> a point a little scale and a polygon at large scale,
> it will return an mage with a point and a polygon.

Maybe I did not understand what alessandro said, but it seems to
me that it is
rather the RULE parameter for the GetLegendGraphic that allow you
to get the
legend for one class.

See https://github.com/qgis/QGIS/pull/901

Y.


Thanks Yves, this is exactly what I need.

This is only available in master but not in 2.0.1, correct?


--
Alessandro Pasotti
w3: www.itopen.it 




___
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] QGIS Web Client improvements

2014-01-03 Thread Alessandro Pasotti
2014/1/3 aperi2007 

>  The RULE ?
>
> It need to know exactly the class name,
> but AFAIK the rule name is not available from the GetCapabilities
>
> don't ?
>


Yes, but as I wrote, with a small Python/PHP helper that parses the project
file we can get that information and bind the two.

The SVG legend (if contains proper attributes to build the FILTER) would
work without an additional helper.


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

[Qgis-developer] [Plugin] QGIS Web Processing Client

2014-01-03 Thread rldhont

Hi Horst,

I have updated your QGIS Web Processing Client.
I have put the code on github : https://github.com/rldhont/qgis-wps-client

You can update the version on the QGIS plugin repository.

Hi devs,

You can test it and contribute.

Regards,
René-Luc D'Hont
3Liz
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS Web Client improvements

2014-01-03 Thread aperi2007

The RULE ?

It need to know exactly the class name,
but AFAIK the rule name is not available from the GetCapabilities

don't ?

A.

On 03/01/2014 15:27, Alessandro Pasotti wrote:

2014/1/3 Yves Jacolin mailto:yjaco...@free.fr>>

Hello,

Le vendredi 3 janvier 2014 13:14:57 aperi2007 a écrit :
> On 03/01/2014 13:06, Alessandro Pasotti wrote:
> > I also think it's not possible at the moment.
> > But I like the way it was implemented in other frameworks, all
I need
> > is a way to get the style image for a single "class". I guess
we need
> > to add a custom WMS method to the QGIS Server.
>
> This is possible using the optional parameter "scale" from wms
specs.
> Using it and the layers param.
> You could identify a single layer and get the legend at a
specific scale.
>
> Apy attention:
> if you do not specify the scale parameter the wms server will
return the
> render to ALL the scale.
> This mean tahat the renddering is
> a point a little scale and a polygon at large scale,
> it will return an mage with a point and a polygon.

Maybe I did not understand what alessandro said, but it seems to
me that it is
rather the RULE parameter for the GetLegendGraphic that allow you
to get the
legend for one class.

See https://github.com/qgis/QGIS/pull/901

Y.


Thanks Yves, this is exactly what I need.

This is only available in master but not in 2.0.1, correct?


--
Alessandro Pasotti
w3: www.itopen.it 


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

Re: [Qgis-developer] QGIS Web Client improvements

2014-01-03 Thread Alessandro Pasotti
2014/1/3 Yves Jacolin 

> Hello,
>
> Le vendredi 3 janvier 2014 13:14:57 aperi2007 a écrit :
> > On 03/01/2014 13:06, Alessandro Pasotti wrote:
> > > I also think it's not possible at the moment.
> > > But I like the way it was implemented in other frameworks, all I need
> > > is a way to get the style image for a single "class". I guess we need
> > > to add a custom WMS method to the QGIS Server.
> >
> > This is possible using the optional parameter "scale" from wms specs.
> > Using it and the layers param.
> > You could identify a single layer and get the legend at a specific scale.
> >
> > Apy attention:
> > if you do not specify the scale parameter the wms server will return the
> > render to ALL the scale.
> > This mean tahat the renddering is
> > a point a little scale and a polygon at large scale,
> > it will return an mage with a point and a polygon.
>
> Maybe I did not understand what alessandro said, but it seems to me that
> it is
> rather the RULE parameter for the GetLegendGraphic that allow you to get
> the
> legend for one class.
>
> See https://github.com/qgis/QGIS/pull/901
>
> Y.
>

Thanks Yves, this is exactly what I need.

This is only available in master but not in 2.0.1, correct?


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

Re: [Qgis-developer] QGIS Web Client improvements

2014-01-03 Thread Alessandro Pasotti
2014/1/3 Andreas Neumann 

> Hi,
>
> Thank you for your initiative, Alessandro. My comments are inline.
>


Hello Andreas, thanks for your clarifications, my comments follow.


>
> Am 03.01.2014 13:06, schrieb Alessandro Pasotti:
> > 2014/1/3 Bernhard Ströbl 
> >
> >> Hi Alessandro,
> >>
> >
> > Hello Bernard, thanks for your comments!
>
> [...]

> >
> > This is all the configuration you need:
> > https://github.com/elpaso/QGIS-Web-Client/blob/master/php/config.php
> >
> > I removed:
> > * the DB connection parameters (they are already in the project file)
> > * the search table name (it's now the layer name)
> > * the  displaytext, and search_category fields
> >
> > The idea is that you should not have to modify your table and create any
> > particular column to make it work (it might be usefult to do that in any
> > case for performance reasons).
>
> In my case I deliberately decoupled the search completely from the
> project - as a I want a lot of search options always available,
> regardless of the project, also if the search layer is not available in
> the project.
>
> Imagine a project only containing raster maps. You still want to be able
> to search for addresses, parcel numbers, streets, buildings, etc.
> without having to load all of these layers into the project.
>
>
I see you point, I believe that both should be possible but I suspect that
the zero-configuration approach should come first.
This because this way you have a working installation with less
configuration, you can always override the default behaviour to have more
complex search options.



> BTW: there is an alternative search method that uses the builtin layers
> already. See section 4.2 in
> https://raw.github.com/qgis/QGIS-Web-Client/master/README
>
> It uses QGIS server without any additional scripts necessary. It has a
> "drill-down"-like interface which feels different from the other search
> method.
>

I saw this search feature, and I'm using both (the Python-wsgi/PHP one and
GetFeatureInfo) as they are both useful, I see them as a "generic search"
and an "advanced search", we need both.


>
> So please just make sure that both versions will work - the decoupled
> search as it is now possible and your new idea of deriving search from
> the project.
>


Yes, absolutely agreed, my intention is to add features without breaking
the already existing (and yet amazing) features.



>
> >> Be aware of SQL injection!
> >
> >
> > Since most parameters are now taken directly from the project file, the
> > only parameters that need to be passed on the URL are the search text,
> the
> > layer name (which doesn't go directly in the query).
> > I'm using PDO prepare statements whenever possible to avoid injections
> and
> > a preg_replace to strip away everything  potentially harmful.
> >
> >
> >>
> >>
>
[...]

>
> > Then I would like to get layer from the ProjectSettings and automatically
> > select layers for the reference map.
>
> Again, there is a good reason to do it and there are reasons for not
> doing it. In my case I again wanted to decouple the reference map from
> the content of the QGIS project. The best reference map in my case was
> to use a topographic map series with different scales. I also wanted to
> use this reference map in a project where the reference maps layers
> aren't present in the project - e.g. in a project about different
> orthoimages.
>
> If you implement this in a configurable way, then I am fine with your
> change - but make sure that the current behaviour of decoupled reference
> map can be kept, if specified.
>
>
Again, I see you point :)
But again, I'm asking myself which is the easier/simple option to satisfy
the vast majority of use cases, I would by default start with the option
that works out of the box without the need to configure anything.
Then, show how to completely customize the reference map.

The overall feeling I've got  starting with QGIS Web Client is that the
search feature and reference map in QGIS Web Client start with the more
complex scenario and require too much user configuration to make it work
(even worse: the search requires a particular table structure and column
names!), on the contrary, we should start with the simplest scenario and
try to make it work with minimal configuration, then show a way to do the
most complicated things.


[...]


> >
> >>  6. this might be difficult or not possible: it would be nice to have an
> >>> interactive legend so that the user can directly click on a legend item
> >>> to filter->zoom to the features that match the selected legend item. I
> >>> feel this would require changes to the server side too
> >>>
> >>
> >> the legend as created with GetLegendGraphic is - well - a graphic. I
> >> cannot see how you could implement this
>
> If the legend graphic would be an intelligent SVG graphic (with some
> metadata in the SVG elements) rather than a stupid PNG I could see this
> as a possibility. It would need an extension in the GetLegendGraphi

Re: [Qgis-developer] QGIS Web Client improvements

2014-01-03 Thread Andreas Neumann
Hi,

Thank you for your initiative, Alessandro. My comments are inline.


Am 03.01.2014 13:06, schrieb Alessandro Pasotti:
> 2014/1/3 Bernhard Ströbl 
> 
>> Hi Alessandro,
>>
> 
> Hello Bernard, thanks for your comments!
> 
> 
>>
>> new ideas are always welcome. I comment below
>>
>> Am 03.01.2014 12:30, schrieb Alessandro Pasotti:
>>
>>  Hello,
>>>
>>> 1. remove as many as possible hardcoded values from wsgi search scripts
>>> (even if I prefer Python I did a re-implementation in PHP of these
>>> scripts mainly because my customer needs them, this implementation has
>>> no hardcoded values, no need for special columns and almost no
>>> configuration)
>>>
>>
>> +1 for the php implementation as on an average web server php is more
>> likely already installed than wsgi
>> Could you elaborate which hardcoded values and columns you removed?
>>
> 
> This is all the configuration you need:
> https://github.com/elpaso/QGIS-Web-Client/blob/master/php/config.php
> 
> I removed:
> * the DB connection parameters (they are already in the project file)
> * the search table name (it's now the layer name)
> * the  displaytext, and search_category fields
> 
> The idea is that you should not have to modify your table and create any
> particular column to make it work (it might be usefult to do that in any
> case for performance reasons).

In my case I deliberately decoupled the search completely from the
project - as a I want a lot of search options always available,
regardless of the project, also if the search layer is not available in
the project.

Imagine a project only containing raster maps. You still want to be able
to search for addresses, parcel numbers, streets, buildings, etc.
without having to load all of these layers into the project.

BTW: there is an alternative search method that uses the builtin layers
already. See section 4.2 in
https://raw.github.com/qgis/QGIS-Web-Client/master/README

It uses QGIS server without any additional scripts necessary. It has a
"drill-down"-like interface which feels different from the other search
method.

So please just make sure that both versions will work - the decoupled
search as it is now possible and your new idea of deriving search from
the project.

>> Be aware of SQL injection!
> 
> 
> Since most parameters are now taken directly from the project file, the
> only parameters that need to be passed on the URL are the search text, the
> layer name (which doesn't go directly in the query).
> I'm using PDO prepare statements whenever possible to avoid injections and
> a preg_replace to strip away everything  potentially harmful.
> 
> 
>>
>>
>>  2. remove as many as possible hardcoded values from GlobalOptions.js and
>>> Customizations.js or  try to guess smart defaults from ProjectSettings
>>> response
>>>
>>
>> which are you aiming at removing?
> 
> 
> Not much yet. First I want to get the map parameter from the query string:
> 
> var project_map = Ext.urlDecode(window.location.search.substring(1)).map;

This is already possible - see the section on Apache URL rewriting where
the map name parameter is derived from the URL.

See section 4.2.2 at
https://raw.github.com/qgis/QGIS-Web-Client/master/README

> Then I would like to get layer from the ProjectSettings and automatically
> select layers for the reference map.

Again, there is a good reason to do it and there are reasons for not
doing it. In my case I again wanted to decouple the reference map from
the content of the QGIS project. The best reference map in my case was
to use a topographic map series with different scales. I also wanted to
use this reference map in a project where the reference maps layers
aren't present in the project - e.g. in a project about different
orthoimages.

If you implement this in a configurable way, then I am fine with your
change - but make sure that the current behaviour of decoupled reference
map can be kept, if specified.


>>  3. resurrect the right panel (trying to solve the map reload issue) and
>>> make it optional
>>>
>>
>> we were happy to have got rid of the right panel because the map always
>> redraws when it is opened. What info do you put in there?
> 
> 
> 
> Ideally, I would like to have the option to configure and use an additional
> panel (south or east) to put one or all of the following accordion tabs:
> * the search results
> * the legend
> * the feature attributes
> 
> I'm aware of the map resize->reload problem, I'm convinced that it can be
> solved (and I would like to see an option here too: fo simple maps someone
> maybe wants to keep the map resize active)

I am fine with that as long as it is configurable.

>>  3.1 make this info panel optionally available in the south area instead
>>> of the east one
>>> 4. implement HTML tooltips taken from the HTML tooltip templates used in
>>> QGIS desktop (done)
>>> 5. find a way to get reference map layers from ProjectSettings instead
>>> of hardcoding them
>>>
>>
>> are you talking about the BGMaps?
> 
> 
> No, a discu

Re: [Qgis-developer] QGIS Web Client improvements

2014-01-03 Thread Yves Jacolin
Hello,

Le vendredi 3 janvier 2014 13:14:57 aperi2007 a écrit :
> On 03/01/2014 13:06, Alessandro Pasotti wrote:
> > I also think it's not possible at the moment.
> > But I like the way it was implemented in other frameworks, all I need
> > is a way to get the style image for a single "class". I guess we need
> > to add a custom WMS method to the QGIS Server.
> 
> This is possible using the optional parameter "scale" from wms specs.
> Using it and the layers param.
> You could identify a single layer and get the legend at a specific scale.
> 
> Apy attention:
> if you do not specify the scale parameter the wms server will return the
> render to ALL the scale.
> This mean tahat the renddering is
> a point a little scale and a polygon at large scale,
> it will return an mage with a point and a polygon.

Maybe I did not understand what alessandro said, but it seems to me that it is 
rather the RULE parameter for the GetLegendGraphic that allow you to get the 
legend for one class.

See https://github.com/qgis/QGIS/pull/901

Y.
> 
> Regards,
> 
> Andrea.
> 
> 
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
-- 
Yves Jacolin
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS Web Client improvements

2014-01-03 Thread rldhont

Le 03/01/2014 13:06, Alessandro Pasotti a écrit :

I also think it's not possible at the moment.
But I like the way it was implemented in other frameworks, all I need 
is a way to get the style image for a single "class". I guess we need 
to add a custom WMS method to the QGIS Server.
In the next QGIS version, you'll can use the RULE parameter to get the 
legend image of a class.


Regards,
René-Luc D'Hont
3Liz
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS Web Client improvements

2014-01-03 Thread aperi2007

On 03/01/2014 13:06, Alessandro Pasotti wrote:

I also think it's not possible at the moment.
But I like the way it was implemented in other frameworks, all I need 
is a way to get the style image for a single "class". I guess we need 
to add a custom WMS method to the QGIS Server.


This is possible using the optional parameter "scale" from wms specs.
Using it and the layers param.
You could identify a single layer and get the legend at a specific scale.

Apy attention:
if you do not specify the scale parameter the wms server will return the 
render to ALL the scale.

This mean tahat the renddering is
a point a little scale and a polygon at large scale,
it will return an mage with a point and a polygon.

Regards,

Andrea.


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


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

2014-01-03 Thread Minoru Akagi
Hi gene,

I'm sorry for the inconvenience, and thank you for your concrete report.
I've changed the plugin code to do DEM warp with gdal.ReprojectImage
instead of gdalwarp program to store warped DEM data in memory raster,
so it may work in also Mac OS X, I guess. I will also fix the other
issue. Feel free to comment about the plugin.

Thanks,
Minoru

2014/1/3 gene :
> Hi Minoru,
>
> First of all, many thanks for your plugin.
>
> As I use Mac OS X and the QGIS version of Kyngchaos, the path of gdalwarp is
> /Library/Frameworks/GDAL.framework/Versions/1.10/Programs/gdalwarp but this
> QGIS version does not recognize  the PATHs defined in the UNIX environment
> of MAC OS X ie:
>
> export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH
> which gdalwarp
>/Library/Frameworks/GDAL.framework/Programs/gdalwarp
>
> So I had to make some changes in your qgis2threejs.py script to run on Mac
> OS X with this version of QGIS.
> I know that you can not change your script for a specific case but I hope
> that this will help Mac users  who want to use your plugin.
>
> General:
> --
> The os.system() works but it is marked as deprecated in the doc , so I use
> the Python module subprocess to make the job (as in Processing or the old
> Sextante) and it works:
>
> original line 185
> os.system(cmd.encode(fsenc))
> my solution:
>  proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE,
> stdin=subprocess.PIPE,stderr=subprocess.STDOUT)
>  proc.stdout.read()
>
>(subprocess.check_call(cmd,shell=True) does not work )
>
> Specific to Mac OS X:
> -
> - I change the line 182
> "cmd = "gdalwarp " + u" ".join(options)"
> in
> "cmd = "/Library/Frameworks/GDAL.framework/Versions/1.10/Programs/gdalwarp"
> + u" ".join(options)"
>
> - and I have removed the conditional statement
> #if not os.path.exists(demfilename):
> #
>
> - the same with line 160 which becomes:
>
> #options.append("--config GDAL_FILENAME_IS_UTF8 NO")
>
> - a final command which works  is, for example:
>
> "/Library/Frameworks/GDAL.framework/Versions/1.10/Programs/gdalwarp -r
> bilinear -te 201132.706856 87080.384980 206579.284551 91865.013464 -ts 214
> 188 -t_srs EPSG:31370 "/Users/Shared/Dropbox/my.asc"
> "/var/folders/vu/vu099NovH-KZpE5TEa83BU+++TI/-Tmp-/dem20140101164100.tif"
>
> Cosmetic
> ---
> As I still use Snow Leopard version (witch uses Python 2.6, I know, I know,
> it is old, but...), the line 48
>   locale= localePath = os.path.join(plugin_dir, 'i18n',
> 'qgis2threejs_{}.qm'
> becomes
>   localePath = os.path.join(self.plugin_dir, 'i18n',
> 'qgis2threejs_{0}.qm'.format(locale))
>
> (working with Python 2.6.x and 2.7.x versions)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS Web Client improvements

2014-01-03 Thread Alessandro Pasotti
2014/1/3 Bernhard Ströbl 

> Hi Alessandro,
>

Hello Bernard, thanks for your comments!


>
> new ideas are always welcome. I comment below
>
> Am 03.01.2014 12:30, schrieb Alessandro Pasotti:
>
>  Hello,
>>
>> 1. remove as many as possible hardcoded values from wsgi search scripts
>> (even if I prefer Python I did a re-implementation in PHP of these
>> scripts mainly because my customer needs them, this implementation has
>> no hardcoded values, no need for special columns and almost no
>> configuration)
>>
>
> +1 for the php implementation as on an average web server php is more
> likely already installed than wsgi
> Could you elaborate which hardcoded values and columns you removed?
>

This is all the configuration you need:
https://github.com/elpaso/QGIS-Web-Client/blob/master/php/config.php

I removed:
* the DB connection parameters (they are already in the project file)
* the search table name (it's now the layer name)
* the  displaytext, and search_category fields

The idea is that you should not have to modify your table and create any
particular column to make it work (it might be usefult to do that in any
case for performance reasons).



> Be aware of SQL injection!


Since most parameters are now taken directly from the project file, the
only parameters that need to be passed on the URL are the search text, the
layer name (which doesn't go directly in the query).
I'm using PDO prepare statements whenever possible to avoid injections and
a preg_replace to strip away everything  potentially harmful.


>
>
>  2. remove as many as possible hardcoded values from GlobalOptions.js and
>> Customizations.js or  try to guess smart defaults from ProjectSettings
>> response
>>
>
> which are you aiming at removing?


Not much yet. First I want to get the map parameter from the query string:

var project_map = Ext.urlDecode(window.location.search.substring(1)).map;

Then I would like to get layer from the ProjectSettings and automatically
select layers for the reference map.


>
>
>  3. resurrect the right panel (trying to solve the map reload issue) and
>> make it optional
>>
>
> we were happy to have got rid of the right panel because the map always
> redraws when it is opened. What info do you put in there?



Ideally, I would like to have the option to configure and use an additional
panel (south or east) to put one or all of the following accordion tabs:
* the search results
* the legend
* the feature attributes

I'm aware of the map resize->reload problem, I'm convinced that it can be
solved (and I would like to see an option here too: fo simple maps someone
maybe wants to keep the map resize active)



>
>
>  3.1 make this info panel optionally available in the south area instead
>> of the east one
>> 4. implement HTML tooltips taken from the HTML tooltip templates used in
>> QGIS desktop (done)
>> 5. find a way to get reference map layers from ProjectSettings instead
>> of hardcoding them
>>
>
> are you talking about the BGMaps?


No, a discussed in point 2, I would like to have a way to (optionally)
automatically guess the reference (mini-map) layers.

First option would be: take all visible layers at start.


>
>
>  6. this might be difficult or not possible: it would be nice to have an
>> interactive legend so that the user can directly click on a legend item
>> to filter->zoom to the features that match the selected legend item. I
>> feel this would require changes to the server side too
>>
>
> the legend as created with GetLegendGraphic is - well - a graphic. I
> cannot see how you could implement this
>


I also think it's not possible at the moment.
But I like the way it was implemented in other frameworks, all I need is a
way to get the style image for a single "class". I guess we need to add a
custom WMS method to the QGIS Server.



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

Re: [Qgis-developer] QGIS Web Client improvements

2014-01-03 Thread Bernhard Ströbl

Hi Alessandro,

new ideas are always welcome. I comment below

Am 03.01.2014 12:30, schrieb Alessandro Pasotti:

Hello,

happy new year to everybody!

I''ve started a new project with QGIS server and QGIS Web Client, my
first impression is that QGIS Web Client is a great tool, very easy to
set up and with mostly all the features you need ready-to-use.
A very good job!

Of course I would like to contribute with some code and translations, in
fact I've already started:
https://github.com/qgis/QGIS-Web-Client/pull/59

Here is my hypothetical TODO list, I need your comments about what could
be of general interest and hence been merged upstream and what do you
think is just my customization and can stay in my fork.


1. remove as many as possible hardcoded values from wsgi search scripts
(even if I prefer Python I did a re-implementation in PHP of these
scripts mainly because my customer needs them, this implementation has
no hardcoded values, no need for special columns and almost no
configuration)


+1 for the php implementation as on an average web server php is more 
likely already installed than wsgi

Could you elaborate which hardcoded values and columns you removed?
Be aware of SQL injection!


2. remove as many as possible hardcoded values from GlobalOptions.js and
Customizations.js or  try to guess smart defaults from ProjectSettings
response


which are you aiming at removing?


3. resurrect the right panel (trying to solve the map reload issue) and
make it optional


we were happy to have got rid of the right panel because the map always 
redraws when it is opened. What info do you put in there?



3.1 make this info panel optionally available in the south area instead
of the east one
4. implement HTML tooltips taken from the HTML tooltip templates used in
QGIS desktop (done)
5. find a way to get reference map layers from ProjectSettings instead
of hardcoding them


are you talking about the BGMaps?


6. this might be difficult or not possible: it would be nice to have an
interactive legend so that the user can directly click on a legend item
to filter->zoom to the features that match the selected legend item. I
feel this would require changes to the server side too


the legend as created with GetLegendGraphic is - well - a graphic. I 
cannot see how you could implement this



Thanks in advance for your comments!


--
Alessandro Pasotti
w3: www.itopen.it <http://www.itopen.it>


___


regards

Bernhard


__ Information from ESET Mail Security, version of virus signature 
database 9245 (20140103) __

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


[Qgis-developer] Plugin [284] Semi-Automatic Classification Plugin approval notification.

2014-01-03 Thread noreply

Plugin Semi-Automatic Classification Plugin approval by lucasupervised.
The plugin version "[284] Semi-Automatic Classification Plugin 2.3.3" is now 
approved
Link: http://plugins.qgis.org/plugins/SemiAutomaticClassificationPlugin/
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] QGIS Web Client improvements

2014-01-03 Thread Alessandro Pasotti
Hello,

happy new year to everybody!

I''ve started a new project with QGIS server and QGIS Web Client, my first
impression is that QGIS Web Client is a great tool, very easy to set up and
with mostly all the features you need ready-to-use.
A very good job!

Of course I would like to contribute with some code and translations, in
fact I've already started:
https://github.com/qgis/QGIS-Web-Client/pull/59

Here is my hypothetical TODO list, I need your comments about what could be
of general interest and hence been merged upstream and what do you think is
just my customization and can stay in my fork.


1. remove as many as possible hardcoded values from wsgi search scripts
(even if I prefer Python I did a re-implementation in PHP of these scripts
mainly because my customer needs them, this implementation has no hardcoded
values, no need for special columns and almost no configuration)
2. remove as many as possible hardcoded values from GlobalOptions.js and
Customizations.js or  try to guess smart defaults from ProjectSettings
response
3. resurrect the right panel (trying to solve the map reload issue) and
make it optional
3.1 make this info panel optionally available in the south area instead of
the east one
4. implement HTML tooltips taken from the HTML tooltip templates used in
QGIS desktop (done)
5. find a way to get reference map layers from ProjectSettings instead of
hardcoding them
6. this might be difficult or not possible: it would be nice to have an
interactive legend so that the user can directly click on a legend item to
filter->zoom to the features that match the selected legend item. I feel
this would require changes to the server side too


Thanks in advance for your comments!


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

Re: [Qgis-developer] Easy Issues for QGIS dev

2014-01-03 Thread Richard Duivenvoorde
On 03-01-14 11:26, Nathan Woodrow wrote:
> Hey all,
> 
> I noticed that CPython has a list of "easy issues" in their bug
> tracker. 
> http://bugs.python.org/issue?status=1&@sort=-activity&@columns=id,activity,title,creator,status&@dispname=Easy%20issues&@startwith=0&@group=priority&keywords=6&@action=search&@filter=&@pagesize=50
> 
> I was thinking this would be good for us to have to.  I know that "easy"
> is a subjective topic but I think we could make a start with small
> things like typos, UI tweaks, etc.  I have had people ask me "is there a
> list of things I could get started on" and having to respond with "I
> don't really know, have a look though the tickets' isn't really a good
> way to respond.
> 
> In order to do this I think we will need a keywords field for RedMine.
>  Is this possible?
> 
> Anyone against this?

Hi Nathan,

a nice idea I think, also to attract new dev. I tried something like
that some time ago (with ubuntu as example):

http://hub.qgis.org/wiki/17/OneHundredPaperCuts

but better to do it in Redmine indeed.

Regards,

Richard Duivenvoorde



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


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

2014-01-03 Thread gene
Hi Minoru,

First of all, many thanks for your plugin.

As I use Mac OS X and the QGIS version of Kyngchaos, the path of gdalwarp is
/Library/Frameworks/GDAL.framework/Versions/1.10/Programs/gdalwarp but this
QGIS version does not recognize  the PATHs defined in the UNIX environment
of MAC OS X ie:

export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH
which gdalwarp
   /Library/Frameworks/GDAL.framework/Programs/gdalwarp

So I had to make some changes in your qgis2threejs.py script to run on Mac
OS X with this version of QGIS. 
I know that you can not change your script for a specific case but I hope
that this will help Mac users  who want to use your plugin.

General:
--
The os.system() works but it is marked as deprecated in the doc , so I use
the Python module subprocess to make the job (as in Processing or the old
Sextante) and it works:

original line 185
os.system(cmd.encode(fsenc))
my solution:
 proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE,
stdin=subprocess.PIPE,stderr=subprocess.STDOUT)
 proc.stdout.read() 
 
   (subprocess.check_call(cmd,shell=True) does not work )

Specific to Mac OS X:
-
- I change the line 182 
"cmd = "gdalwarp " + u" ".join(options)"
in
"cmd = "/Library/Frameworks/GDAL.framework/Versions/1.10/Programs/gdalwarp"
+ u" ".join(options)"

- and I have removed the conditional statement
#if not os.path.exists(demfilename):
#

- the same with line 160 which becomes:

#options.append("--config GDAL_FILENAME_IS_UTF8 NO")

- a final command which works  is, for example:

"/Library/Frameworks/GDAL.framework/Versions/1.10/Programs/gdalwarp -r
bilinear -te 201132.706856 87080.384980 206579.284551 91865.013464 -ts 214
188 -t_srs EPSG:31370 "/Users/Shared/Dropbox/my.asc"
"/var/folders/vu/vu099NovH-KZpE5TEa83BU+++TI/-Tmp-/dem20140101164100.tif"

Cosmetic
---
As I still use Snow Leopard version (witch uses Python 2.6, I know, I know,
it is old, but...), the line 48
  locale= localePath = os.path.join(plugin_dir, 'i18n',
'qgis2threejs_{}.qm'
becomes 
  localePath = os.path.join(self.plugin_dir, 'i18n',
'qgis2threejs_{0}.qm'.format(locale))

(working with Python 2.6.x and 2.7.x versions)
 




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Qgis2threejs-suggestions-tp5095871p5096206.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] Easy Issues for QGIS dev

2014-01-03 Thread Nathan Woodrow
Hey all,

I noticed that CPython has a list of "easy issues" in their bug tracker.
http://bugs.python.org/issue?status=1&@sort=-activity&@columns=id,activity,title,creator,status&@dispname=Easy%20issues&@startwith=0&@group=priority&keywords=6&@action=search&@filter=&@pagesize=50

I was thinking this would be good for us to have to.  I know that "easy" is
a subjective topic but I think we could make a start with small things like
typos, UI tweaks, etc.  I have had people ask me "is there a list of things
I could get started on" and having to respond with "I don't really know,
have a look though the tickets' isn't really a good way to respond.

In order to do this I think we will need a keywords field for RedMine.  Is
this possible?

Anyone against this?

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

[Qgis-developer] About TINs and QGis

2014-01-03 Thread Geo DrinX
Hello all,


As in object, I have a question:

There is a way to display a TIN into QGis ?

I intended, there is a way to load a triangle net, also if only in 2D, and
display it like in this image:

https://drive.google.com/file/d/0Bwg_m86uaXY1dkNaM1BvLWswZmc/edit?usp=sharing


This is an example of TIN , that I need to display with QGis:

Gaeta in   ITFformat  (VTerrain.org  format):
https://drive.google.com/file/d/0Bwg_m86uaXY1eXl2OUZwT3daTUE/edit?usp=sharing


the same in PLY:

https://drive.google.com/file/d/0Bwg_m86uaXY1VjdKejU2M1MxdFU/edit?usp=sharing

the same, using the gms TIN ascii format:

https://drive.google.com/file/d/0Bwg_m86uaXY1RWkxbGVucmRzb2s/edit?usp=sharing


Thank you for any info abut this.

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