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

ogr based tools cannot output anymore to temp files #27767

Closed
qgib opened this issue Sep 25, 2018 · 6 comments
Closed

ogr based tools cannot output anymore to temp files #27767

qgib opened this issue Sep 25, 2018 · 6 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

Comments

@qgib
Copy link
Contributor

qgib commented Sep 25, 2018

Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 19945
Affected QGIS version: 3.3(master)
Redmine category:processing/ogr
Assignee: Nyall Dawson


Tested the buffer tool, but possibly all others are affected. This is regardless of the input data type. Example:

ogr2ogr /tmp/processing_db57843afc44487c9e08a83e234924aa/bfb8be3fac3446a2b0be83fc1e1050ba/OUTPUT.shp /home/giovanni/Desktop/teste.gpkg -dialect sqlite -sql "SELECT ST_Buffer(geom, 1.0) AS geom, fid,gid,fips,iso2,iso3,un,name,area,pop2005,region,lon,lat,id,dadsadsa FROM 'teste'" -f "ESRI Shapefile"
GDAL command output:
ERROR 1: Failed to create file /tmp/processing_db57843afc44487c9e08a83e234924aa/bfb8be3fac3446a2b0be83fc1e1050ba/OUTPUT.shp: No such file or

or2ogr cannot write to "/tmp/processing_db57843afc44487c9e08a83e234924aa/bfb8be3fac3446a2b0be83fc1e1050ba/" because the folder does not exist beforehand.


Related issue(s): #27760 (relates)
Redmine related issue(s): 19938


@qgib
Copy link
Contributor Author

qgib commented Sep 25, 2018

Author Name: Giovanni Manghi (@gioman)


  • description was changed from Tested the buffer tool, but possibly all others are affected. This is regardless of the input data type. Example:

ogr2ogr /tmp/processing_db57843afc44487c9e08a83e234924aa/bfb8be3fac3446a2b0be83fc1e1050ba/OUTPUT.shp /home/giovanni/Desktop/teste.gpkg -dialect sqlite -sql "SELECT ST_Buffer(geom, 1.0) AS geom, fid,gid,fips,iso2,iso3,un,name,area,pop2005,region,lon,lat,id,dadsadsa FROM 'cac1'" -f "ESRI Shapefile"
GDAL command output:
ERROR 1: Failed to create file /tmp/processing_db57843afc44487c9e08a83e234924aa/bfb8be3fac3446a2b0be83fc1e1050ba/OUTPUT.shp: No such file or

or2ogr cannot write to "/tmp/processing_db57843afc44487c9e08a83e234924aa/bfb8be3fac3446a2b0be83fc1e1050ba/" because the folder does not exist beforehand. to Tested the buffer tool, but possibly all others are affected. This is regardless of the input data type. Example:

ogr2ogr /tmp/processing_db57843afc44487c9e08a83e234924aa/bfb8be3fac3446a2b0be83fc1e1050ba/OUTPUT.shp /home/giovanni/Desktop/teste.gpkg -dialect sqlite -sql "SELECT ST_Buffer(geom, 1.0) AS geom, fid,gid,fips,iso2,iso3,un,name,area,pop2005,region,lon,lat,id,dadsadsa FROM 'teste'" -f "ESRI Shapefile"
GDAL command output:
ERROR 1: Failed to create file /tmp/processing_db57843afc44487c9e08a83e234924aa/bfb8be3fac3446a2b0be83fc1e1050ba/OUTPUT.shp: No such file or

or2ogr cannot write to "/tmp/processing_db57843afc44487c9e08a83e234924aa/bfb8be3fac3446a2b0be83fc1e1050ba/" because the folder does not exist beforehand.

@qgib
Copy link
Contributor Author

qgib commented Sep 25, 2018

Author Name: Giovanni Manghi (@gioman)


  • category_id was changed from Processing/GDAL to Processing/OGR

@qgib
Copy link
Contributor Author

qgib commented Sep 25, 2018

Author Name: Nyall Dawson (@nyalldawson)


  • assigned_to_id was configured as Nyall Dawson
  • status_id was changed from Open to In Progress

@qgib
Copy link
Contributor Author

qgib commented Sep 27, 2018

Author Name: Jürgen Fischer (@jef-n)


@qgib
Copy link
Contributor Author

qgib commented Sep 28, 2018

Author Name: Nyall Dawson (@nyalldawson)


I can't reproduce -- can you post steps to reproduce? Can you create folders under tmp?


  • status_id was changed from In Progress to Feedback

@qgib
Copy link
Contributor Author

qgib commented Sep 28, 2018

Author Name: Giovanni Manghi (@gioman)


Cannot replicate anymore... weird, I didn't even updated master since I reported this.


  • resolution was changed from to invalid
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Sep 28, 2018
@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
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