Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdalwarp issues with the "te" parameter #24203

Closed
qgib opened this issue Mar 6, 2017 · 7 comments
Closed

gdalwarp issues with the "te" parameter #24203

qgib opened this issue Mar 6, 2017 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Processing Relating to QGIS Processing framework or individual Processing algorithms Regression Something which used to work, but doesn't anymore
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Mar 6, 2017

Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 16293
Affected QGIS version: 2.18.4
Redmine category:processing/gdal
Assignee: Giovanni Manghi


2017-03-03T12:59:32 0 gdalwarp -ot Float32 -s_srs EPSG:4326 -t_srs
EPSG:3857 -r near -of GTiff -te 18.6662979442 45.7767014376
18.7035979442 45.8117014376
/home/matteo/lavori/QGIS/QGIS/python/plugins/processing/tests/testdata/dem.tif
/tmp/processingb0fbced9ffc24643bc6020cbcf8125d2/836d0c9fe610490a8c4e09460257ed77/OUTPUT.tif
2017-03-03T12:59:32 0 GDAL execution console output
ERROR 1: Attempt to create 0x0 dataset is illegal,sizes must be
larger than zero.

if you remove the "te" parameter it works as expected.


Related issue(s): #23271 (duplicates)
Redmine related issue(s): 15339


@qgib
Copy link
Contributor Author

qgib commented Mar 6, 2017

Author Name: Giovanni Manghi (@gioman)


Seen here on wgs84 maps.

@qgib
Copy link
Contributor Author

qgib commented Mar 6, 2017

Author Name: Giovanni Manghi (@gioman)


also seen this, but probably not related

Traceback (most recent call last):

File "/usr/share/qgis/python/plugins/processing/core/GeoAlgorithm.py", line 203, in execute

self.processAlgorithm(progress)

File "/usr/share/qgis/python/plugins/processing/algs/gdal/GdalAlgorithm.py", line 52, in processAlgorithm

commands = self.getConsoleCommands()

File "/usr/share/qgis/python/plugins/processing/algs/gdal/warp.py", line 206, in getConsoleCommands

return ['gdalwarp', GdalUtils.escapeAndJoin(arguments)]

File "/usr/share/qgis/python/plugins/processing/algs/gdal/GdalUtils.py", line 178, in escapeAndJoin

if s[0] != '-' and ' ' in s:

IndexError: string index out of range

2017-02-20T21:40:37 2 Uncaught error while executing algorithm

Traceback (most recent call last):

File "/usr/share/qgis/python/plugins/processing/core/GeoAlgorithm.py", line 203, in execute

self.processAlgorithm(progress)

File "/usr/share/qgis/python/plugins/processing/algs/gdal/GdalAlgorithm.py", line 52, in processAlgorithm

commands = self.getConsoleCommands()

File "/usr/share/qgis/python/plugins/processing/algs/gdal/warp.py", line 206, in getConsoleCommands

return ['gdalwarp', GdalUtils.escapeAndJoin(arguments)]

File "/usr/share/qgis/python/plugins/processing/algs/gdal/GdalUtils.py", line 178, in escapeAndJoin

if s[0] != '-' and ' ' in s:

IndexError: string index out of range

2017-02-20T21:40:52 2 Uncaught error while executing algorithm

Traceback (most recent call last):

File "/usr/share/qgis/python/plugins/processing/core/GeoAlgorithm.py", line 203, in execute

self.processAlgorithm(progress)

File "/usr/share/qgis/python/plugins/processing/algs/gdal/GdalAlgorithm.py", line 52, in processAlgorithm

commands = self.getConsoleCommands()

File "/usr/share/qgis/python/plugins/processing/algs/gdal/warp.py", line 206, in getConsoleCommands

return ['gdalwarp', GdalUtils.escapeAndJoin(arguments)]

File "/usr/share/qgis/python/plugins/processing/algs/gdal/GdalUtils.py", line 178, in escapeAndJoin

if s[0] != '-' and ' ' in s:

IndexError: string index out of range

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • regression was configured as 1

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • priority_id was changed from Severe/Regression to High

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented May 3, 2017

Author Name: Alexander Bruy (@alexbruy)


Duplicates #23271


  • description was changed from 2017-03-03T12:59:32 0 gdalwarp -ot Float32 -s_srs EPSG:4326 -t_srs
    EPSG:3857 -r near -of GTiff -te 18.6662979442 45.7767014376
    18.7035979442 45.8117014376
    /home/matteo/lavori/QGIS/QGIS/python/plugins/processing/tests/testdata/dem.tif
    /tmp/processingb0fbced9ffc24643bc6020cbcf8125d2/836d0c9fe610490a8c4e09460257ed77/OUTPUT.tif
    2017-03-03T12:59:32 0 GDAL execution console output
    ERROR 1: Attempt to create 0x0 dataset is illegal,sizes must be
    larger than zero.

if you remove the "te" parameter it works as expected. to 2017-03-03T12:59:32 0 gdalwarp -ot Float32 -s_srs EPSG:4326 -t_srs
EPSG:3857 -r near -of GTiff -te 18.6662979442 45.7767014376
18.7035979442 45.8117014376
/home/matteo/lavori/QGIS/QGIS/python/plugins/processing/tests/testdata/dem.tif
/tmp/processingb0fbced9ffc24643bc6020cbcf8125d2/836d0c9fe610490a8c4e09460257ed77/OUTPUT.tif
2017-03-03T12:59:32 0 GDAL execution console output
ERROR 1: Attempt to create 0x0 dataset is illegal,sizes must be
larger than zero.

if you remove the "te" parameter it works as expected.

  • status_id was changed from Open to Closed
  • resolution was changed from to duplicate

@qgib qgib closed this as completed May 3, 2017
@qgib
Copy link
Contributor Author

qgib commented May 3, 2017

Author Name: Alexander Bruy (@alexbruy)


@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Processing Relating to QGIS Processing framework or individual Processing algorithms Regression Something which used to work, but doesn't anymore labels May 25, 2019
@qgib qgib added this to the Version 2.18 milestone May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Processing Relating to QGIS Processing framework or individual Processing algorithms Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

1 participant