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

Raster calculator: fails if file name has spaces #14493

Closed
qgib opened this issue Dec 1, 2011 · 15 comments
Closed

Raster calculator: fails if file name has spaces #14493

qgib opened this issue Dec 1, 2011 · 15 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats)

Comments

@qgib
Copy link
Contributor

qgib commented Dec 1, 2011

Author Name: Paolo Cavallini (@pcav)
Original Redmine Issue: 4586
Affected QGIS version: master
Redmine category:raster_calculator


Doing a simple expression like raster1@1 * raster 2@1 fails because one of the filenames has spaces

@qgib
Copy link
Contributor Author

qgib commented Dec 16, 2011

Author Name: Giovanni Manghi (@gioman)


  • fixed_version_id was configured as Version 1.7.4

@qgib
Copy link
Contributor Author

qgib commented Apr 16, 2012

Author Name: Paolo Cavallini (@pcav)


  • fixed_version_id was changed from Version 1.7.4 to Version 1.8.0
  • version was configured as master
  • crashes_corrupts_data was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Sep 4, 2012

Author Name: Paolo Cavallini (@pcav)


  • fixed_version_id was changed from Version 1.8.0 to Version 2.0.0

@qgib
Copy link
Contributor Author

qgib commented Aug 12, 2013

Author Name: Marco Hugentobler (@mhugent)


This one should be fixed 2 weeks ago ba86804

Please test and report back.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Aug 13, 2013

Author Name: Paolo Cavallini (@pcav)


Now raster names are surrounded by "" when added by double clicking, so the expression works. If they are written by hand without "", however, the result is all 0s

@qgib
Copy link
Contributor Author

qgib commented Sep 9, 2013

Author Name: Paolo Cavallini (@pcav)


  • status_id was changed from Feedback to Open

@qgib
Copy link
Contributor Author

qgib commented Jun 28, 2014

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


  • fixed_version_id was changed from Version 2.0.0 to Future Release - Lower Priority

@qgib
Copy link
Contributor Author

qgib commented May 22, 2016

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


  • category_id was changed from C++ Plugins to Plugin Manager

@qgib
Copy link
Contributor Author

qgib commented May 22, 2016

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


  • category_id was changed from Plugin Manager to Raster Calculator

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • regression was configured as 0
  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Feb 6, 2018

Author Name: Alexander Bruy (@alexbruy)


IMHO this should be closed, as users should use correct syntax when writing expression by hands.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Feb 6, 2018

Author Name: Paolo Cavallini (@pcav)


I don't agree: spaces in filenames are accepted by QGIS, so they should be escaped by calc engine.

@qgib
Copy link
Contributor Author

qgib commented Feb 22, 2018

Author Name: Giovanni Manghi (@gioman)


Where do we stand with this?

@qgib
Copy link
Contributor Author

qgib commented Feb 23, 2018

Author Name: Paolo Cavallini (@pcav)


Well, IMHO this is still an usability issue. What is your feeling?

@qgib
Copy link
Contributor Author

qgib commented Nov 11, 2018

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


identifiers with blanks in them have to be quoted - also in in "regular" expressions. So I don't see an issue here.


  • status_id was changed from Feedback to Closed
  • resolution was changed from to fixed/implemented

@qgib qgib closed this as completed Nov 11, 2018
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats) labels May 24, 2019
@qgib qgib added this to the Future Release - Lower Priority milestone May 24, 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! Rasters Related to general raster layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant