Re: [Qgis-developer] Number of arguments for processing gdalogr:warpreproject

2016-07-22 Thread Victor Olaya
thanks to you!

2016-07-22 9:42 GMT+02:00 Tom Chadwin :
> Yes, all working in 8784312. Splendid!
>
> Many thanks once again
>
> Tom
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/Number-of-arguments-for-processing-gdalogr-warpreproject-tp5273308p5277677.html
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Number of arguments for processing gdalogr:warpreproject

2016-07-22 Thread Tom Chadwin
Yes, all working in 8784312. Splendid!

Many thanks once again

Tom



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Number-of-arguments-for-processing-gdalogr-warpreproject-tp5273308p5277677.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Number of arguments for processing gdalogr:warpreproject

2016-07-21 Thread Tom Chadwin
volaya wrote
> I just commited a change that should fix this issue
> 
> https://github.com/qgis/QGIS/commit/df2ca2e60798315d816966f25aa024b93835f776
> 
> Could you try again and see if now you dont get that error?

Ah, thanks so much - I'll try it once there's a nightly.

Thanks again!

Tom



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Number-of-arguments-for-processing-gdalogr-warpreproject-tp5273308p5277533.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Number of arguments for processing gdalogr:warpreproject

2016-07-20 Thread Victor Olaya
2016-06-28 13:34 GMT+02:00 Tom Chadwin :
> I'm sorry to keep asking about this. I'm now getting this error on Travis,
> against nightly (http://qgis.org/debian-nightly):
>
> Traceback (most recent call last):
>   File "/home/travis/build/tomchadwin/qgis2web/olwriter.py", line 58, in
> writeOL
> optimize, usedFields, json)
>   File "/home/travis/build/tomchadwin/qgis2web/utils.py", line 293, in
> exportLayers
> processing.runalg("gdalogr:warpreproject", warpArgs)
>   File "/usr/share/qgis/python/plugins/processing/tools/general.py", line
> 75, in runalg
> alg = Processing.runAlgorithm(algOrName, None, *args, **kwargs)
>   File "/usr/share/qgis/python/plugins/processing/core/Processing.py", line
> 304, in runAlgorithm
> ret = runalg(alg, progress)
>   File "/usr/share/qgis/python/plugins/processing/gui/AlgorithmExecutor.py",
> line 52, in runalg
> progress.error(e.msg)
> AttributeError: 'NoneType' object has no attribute 'error'
>


Tom,

I just commited a change that should fix this issue

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

Could you try again and see if now you dont get that error?

Thanks!
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Number of arguments for processing gdalogr:warpreproject

2016-07-13 Thread Tom Chadwin
I think I got GDAL2 to install. But it seems to have uninstalled QGIS. I
really wasn't expecting that. 

https://travis-ci.org/tomchadwin/qgis2web/jobs/144312199#L861



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Number-of-arguments-for-processing-gdalogr-warpreproject-tp5273308p5276073.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Number of arguments for processing gdalogr:warpreproject

2016-07-12 Thread Tom Chadwin
OK, Travis seems to be installing GDAL 1.10. Is that the issue? 

Get:60 http://us-central1.gce.archive.ubuntu.com/ubuntu/ trusty/universe
gdal-bin amd64 1.10.1+dfsg-5ubuntu1 [208 kB]

What version is 2.16 hoping for, specifically for calling warp via
processing? Am I right in presuming 2.x? If so, is there a PPA I can
specify? 

Thanks

Tom



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Number-of-arguments-for-processing-gdalogr-warpreproject-tp5273308p5276030.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Number of arguments for processing gdalogr:warpreproject

2016-07-12 Thread Tom Chadwin
This problem remains now that 2.16 has been released:

https://travis-ci.org/tomchadwin/qgis2web/jobs/144186976

Can anyone help fix this error?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Number-of-arguments-for-processing-gdalogr-warpreproject-tp5273308p5275981.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Number of arguments for processing gdalogr:warpreproject

2016-06-28 Thread Tom Chadwin
Can I pass it as an extra item in the warpArgs dict?

from processing.core.SilentProgress import SilentProgress

progress = SilentProgress()
warpArgs = {
...
  "PROGRESS": progress
...
}



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Number-of-arguments-for-processing-gdalogr-warpreproject-tp5273308p5273818.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Number of arguments for processing gdalogr:warpreproject

2016-06-28 Thread Victor Olaya
It seems that the progress indicator is None. I guess you should be
passing one, or at least a SilentProgress

2016-06-28 13:34 GMT+02:00 Tom Chadwin :
> I'm sorry to keep asking about this. I'm now getting this error on Travis,
> against nightly (http://qgis.org/debian-nightly):
>
> Traceback (most recent call last):
>   File "/home/travis/build/tomchadwin/qgis2web/olwriter.py", line 58, in
> writeOL
> optimize, usedFields, json)
>   File "/home/travis/build/tomchadwin/qgis2web/utils.py", line 293, in
> exportLayers
> processing.runalg("gdalogr:warpreproject", warpArgs)
>   File "/usr/share/qgis/python/plugins/processing/tools/general.py", line
> 75, in runalg
> alg = Processing.runAlgorithm(algOrName, None, *args, **kwargs)
>   File "/usr/share/qgis/python/plugins/processing/core/Processing.py", line
> 304, in runAlgorithm
> ret = runalg(alg, progress)
>   File "/usr/share/qgis/python/plugins/processing/gui/AlgorithmExecutor.py",
> line 52, in runalg
> progress.error(e.msg)
> AttributeError: 'NoneType' object has no attribute 'error'
>
> It's called as follows:
>
> warpArgs = {
> "INPUT": piped_file,
> "SOURCE_SRS": layer.crs().authid(),
> "DEST_SRS": "EPSG:3857",
> "NO_DATA": "",
> "TR": 0,
> "METHOD": 0,
> "RAST_EXT": extentRepNew,
> "RTYPE": 0,
> "COMPRESS": 4,
> "JPEGCOMPRESSION": 75,
> "ZLEVEL": 6,
> "PREDICTOR": 1,
> "TILED": False,
> "BIGTIFF": 0,
> "TFW": False,
> "EXTRA": "",
> "OUTPUT": piped_3857
> }
> processing.runalg("gdalogr:warpreproject", warpArgs)
>
> I've settled on that selection of arguments for warpreproject because when I
> change it to a different selection (one that works in a different QGIS
> version), that's the list of expected args which comes back in the error.
>
> So, I think that is the "correct" list of arguments, but I can't work out
> what the error is telling me.
>
> Can anyone help?
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/Number-of-arguments-for-processing-gdalogr-warpreproject-tp5273308p5273736.html
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Number of arguments for processing gdalogr:warpreproject

2016-06-28 Thread Tom Chadwin
I'm sorry to keep asking about this. I'm now getting this error on Travis,
against nightly (http://qgis.org/debian-nightly):

Traceback (most recent call last):
  File "/home/travis/build/tomchadwin/qgis2web/olwriter.py", line 58, in
writeOL
optimize, usedFields, json)
  File "/home/travis/build/tomchadwin/qgis2web/utils.py", line 293, in
exportLayers
processing.runalg("gdalogr:warpreproject", warpArgs)
  File "/usr/share/qgis/python/plugins/processing/tools/general.py", line
75, in runalg
alg = Processing.runAlgorithm(algOrName, None, *args, **kwargs)
  File "/usr/share/qgis/python/plugins/processing/core/Processing.py", line
304, in runAlgorithm
ret = runalg(alg, progress)
  File "/usr/share/qgis/python/plugins/processing/gui/AlgorithmExecutor.py",
line 52, in runalg
progress.error(e.msg)
AttributeError: 'NoneType' object has no attribute 'error'

It's called as follows:

warpArgs = {
"INPUT": piped_file,
"SOURCE_SRS": layer.crs().authid(),
"DEST_SRS": "EPSG:3857",
"NO_DATA": "",
"TR": 0,
"METHOD": 0,
"RAST_EXT": extentRepNew,
"RTYPE": 0,
"COMPRESS": 4,
"JPEGCOMPRESSION": 75,
"ZLEVEL": 6,
"PREDICTOR": 1,
"TILED": False,
"BIGTIFF": 0,
"TFW": False,
"EXTRA": "",
"OUTPUT": piped_3857
}
processing.runalg("gdalogr:warpreproject", warpArgs)

I've settled on that selection of arguments for warpreproject because when I
change it to a different selection (one that works in a different QGIS
version), that's the list of expected args which comes back in the error.

So, I think that is the "correct" list of arguments, but I can't work out
what the error is telling me.

Can anyone help?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Number-of-arguments-for-processing-gdalogr-warpreproject-tp5273308p5273736.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Number of arguments for processing gdalogr:warpreproject

2016-06-27 Thread Tom Chadwin
A simpler question which derives from this: is there a matrix showing which
arguments are required for which versions of each Processing algorithm?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Number-of-arguments-for-processing-gdalogr-warpreproject-tp5273308p5273567.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Number of arguments for processing gdalogr:warpreproject

2016-06-27 Thread Tom Chadwin
I am getting very confused. Is my understanding of all this correct:

1. Different versions of QGIS ship different versions of GDAL

2. Different versions of QGIS ship different versions of Processing

3. Different versions of Processing support different versions of GDAL (or
at least, support different functional subsets, down to the argument level)

How do I untangle all of this in order successfully to call warpreproject in
a QGIS plugin? Current situation:

I try: one warpreproject call with 18 arguments, and except: a call with 16

This works locally for me (Win7x64) on LTR, 2.14, and latest nightly. On
Travis, it works on LTR and 2.14, but fails on nightly.

Discussion here: https://github.com/tomchadwin/qgis2web/pull/297

Thanks

Tom



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Number-of-arguments-for-processing-gdalogr-warpreproject-tp5273308p5273546.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Number of arguments for processing gdalogr:warpreproject

2016-06-25 Thread Tom Chadwin
Hello all

Luca has written some new raster export code. It works on LTR and 2.14. It
works for him on Github master. It doesn't work on nightly for me or on
Travis. Discussion here:

https://github.com/tomchadwin/qgis2web/pull/297#issuecomment-228524584

It seems that master has a more recent version of processing
gdalogr:warpreproject than dev nightlies. What can be causing this
difference?

Thanks

Tom



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Number-of-arguments-for-processing-gdalogr-warpreproject-tp5273308.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer