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

Processing: ogr tools broken on QGIS LTR #23816

Closed
qgib opened this issue Nov 26, 2016 · 1 comment
Closed

Processing: ogr tools broken on QGIS LTR #23816

qgib opened this issue Nov 26, 2016 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Nov 26, 2016

Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 15898
Affected QGIS version: 2.14.9
Redmine category:processing/gdal
Assignee: Victor Olaya


At some point along the LTR releases the ogr based tools git broke. They work for example on 2.14.3 but not on 2.14.8.
2.18 is also ok, that suggest that probably this was a thing that was fixed there but not backported.

The problem is the following:
now also input layer are transformed into temporary layers before being processed, so for example this is on 2.14.3 (working)

@gdal command:
cmd.exe /C ogr2ogr.exe "C:\Users\qgis\AppData\Local\Temp\processing0e8e85b5d60946b98f64d45d52dc8d9a\534dc2c009d0437d93cdb1fd62809976\OUTPUTLAYER.shp" E:\training\postgresql_postgis_training\data\madeira_3061\freguesias.shp freguesias -dialect sqlite -sql "SELECT ST_Union(geometry),Concelho FROM 'freguesias' GROUP BY Concelho"@

this is on 2.14.9 (not working)

@cmd.exe /C ogr2ogr.exe "C:\Users\qgis\AppData\Local\Temp\processing4c66b9ac37844646af869626f3a60cae\f02106d06c284d518a3b57f1db516e81\OUTPUTLAYER.shp" C:\Users\qgis\AppData\Local\Temp\processing4c66b9ac37844646af869626f3a60cae\1480172091.142.shp 1480172091.142 -dialect sqlite -sql "SELECT ST_Union(geometry),Concelho FROM 'freguesias' GROUP BY Concelho"
GDAL command output:
Warning 1: layer names ignored in combination with -sql.
ERROR 1: In ExecuteSQL(): sqlite3_prepare(SELECT ST_Union(geometry),Concelho FROM 'freguesias' GROUP BY Concelho):
no such table: freguesias@

and 2.18 (working)

@cmd.exe /C ogr2ogr.exe "C:\Users\qgis\AppData\Local\Temp\processingba7f93cc11e14726be7c277aa87aef5e\1413d767da6d4209b73c00901446885c\OUTPUTLAYER.shp" C:\Users\qgis\AppData\Local\Temp\processingba7f93cc11e14726be7c277aa87aef5e\1480172157.252.shp 1480172157.252 -dialect sqlite -sql "SELECT ST_Union(geometry),Concelho FROM '1480172157.252' GROUP BY Concelho"@

@qgib
Copy link
Contributor Author

qgib commented Nov 27, 2016

Author Name: Victor Olaya (@volaya)


Fixed in changeset "19780c4d479f5bdf7fb04a8b29268fbf9e40d19e".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
@qgib qgib added this to the Version 2.14 milestone May 25, 2019
@qgib qgib closed this as completed 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! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant