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

batching of rasterize function #20072

Closed
qgib opened this issue Dec 12, 2014 · 14 comments
Closed

batching of rasterize function #20072

qgib opened this issue Dec 12, 2014 · 14 comments
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

Comments

@qgib
Copy link
Contributor

qgib commented Dec 12, 2014

Author Name: Marcel Gangwisch (Marcel Gangwisch)
Original Redmine Issue: 11857
Affected QGIS version: 2.6.0
Redmine category:processing/gdal


This bug is only concerning the new version 2.6... It works on 2.4.

If you try to convert several shapes to raster using the batch utility, you are asked for the ouput directory...
but there is no field to type it in...


@qgib
Copy link
Contributor Author

qgib commented Dec 12, 2014

Author Name: Marcel Gangwisch (Marcel Gangwisch)


see also the reference for the function:
http://docs.qgis.org/2.6/de/docs/user_manual/processing_algs/gdalogr/gdal_conversion/rasterize.html

The ouput is:
Output layer: mandatory to choose an existing raster layer if the (*) option is selected

@qgib
Copy link
Contributor Author

qgib commented Dec 14, 2014

Author Name: Giovanni Manghi (@gioman)


are you sure you are using the latest Processing version and you don't have a old update masking the latest code? It works fine here on 2.6.


  • category_id was configured as Processing/GDAL
  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Dec 14, 2014

Author Name: Marcel Gangwisch (Marcel Gangwisch)


I'm using QGIS 2.6.0 - Brighton 64 Bit on Windows 7 also 64 Bit...
And my version is compiled against GDAL 1.11.0...

If you say that it works, I just download it again and try the current version which is online.

@qgib
Copy link
Contributor Author

qgib commented Dec 14, 2014

Author Name: Marcel Gangwisch (Marcel Gangwisch)


Hm after reinstall, I get the same problem, that there is no field to type the output directory.
See attached screenshot :)


  • 8201 was configured as screenshot.png

@qgib
Copy link
Contributor Author

qgib commented Dec 15, 2014

Author Name: Giovanni Manghi (@gioman)


I think there is a misunderstanding here: the tools does not ask for an output folder, is asks for output files. In case of selecting the "write values into an existing raster layer" then the output must exist beforehand and must be selected as output.

@qgib
Copy link
Contributor Author

qgib commented Dec 15, 2014

Author Name: Marcel Gangwisch (Marcel Gangwisch)


Yes I know what you mean, but in QGIS 2.4 it was also possible to use the rasterize function without having existing raster layer..

What I mean I dont click the checkbox for "In case of selecting the "write values into an existing raster layer"".

I just want to write the raster in an output directory without an existing raster.

And this is not possible, because you can not type the output folder for the new raster which will be created by the rasterize function.

Do you know what I mean?

Attached to this message I added a screenshot from QGIS 2.4 and marked the output folder field.


  • 8202 was configured as screenshot2.png

@qgib
Copy link
Contributor Author

qgib commented Dec 15, 2014

Author Name: Giovanni Manghi (@gioman)


Marcel Gangwisch wrote:

Yes I know what you mean, but in QGIS 2.4 it was also possible to use the rasterize function without having existing raster layer..

What I mean I dont click the checkbox for "In case of selecting the "write values into an existing raster layer"".

I just want to write the raster in an output directory without an existing raster.

And this is not possible, because you can not type the output folder for the new raster which will be created by the rasterize function.

Do you know what I mean?

this is the point, it works fine here even when not checking that option and outputting a new layer, both running the tool normally and in batch mode.

Please check if inside .qgis2/python/plugins you have a "processing" folder.

@qgib
Copy link
Contributor Author

qgib commented Dec 15, 2014

Author Name: Marcel Gangwisch (Marcel Gangwisch)


Giovanni Manghi wrote:

Marcel Gangwisch wrote:

Yes I know what you mean, but in QGIS 2.4 it was also possible to use the rasterize function without having existing raster layer..

What I mean I dont click the checkbox for "In case of selecting the "write values into an existing raster layer"".

I just want to write the raster in an output directory without an existing raster.

And this is not possible, because you can not type the output folder for the new raster which will be created by the rasterize function.

Do you know what I mean?

this is the point, it works fine here even when not checking that option and outputting a new layer, both running the tool normally and in batch mode.

Please check if inside .qgis2/python/plugins you have a "processing" folder.

This time I attached again a screenshot showing that I did not check the button for "write values into an existing raster layer". As the screenshot shows I get the error message: Wrong or missing parameter value: Output layer: mandatory to choose an existing raster layer in the (*) option is selected (line 1)

To your question:
I looked for the processing folder.. But there is no processing folder in .qgis2/python/plugins
So this is the problem?


  • 8206 was configured as screenshot3.png

@qgib
Copy link
Contributor Author

qgib commented Dec 15, 2014

Author Name: Giovanni Manghi (@gioman)


This time I attached again a screenshot showing that I did not check the button for "write values into an existing raster layer". As the screenshot shows I get the error message: Wrong or missing parameter value: Output layer: mandatory to choose an existing raster layer in the (*) option is selected (line 1)

you get it because in batch mode you must fill all the lines you see in the interface, and you cannot run it with just 1 line filled (min is 2).

To your question:
I looked for the processing folder.. But there is no processing folder in .qgis2/python/plugins
So this is the problem?

no, it is ok. A problem is if you have a "processing" folder in it.


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

@qgib
Copy link
Contributor Author

qgib commented Dec 15, 2014

Author Name: Marcel Gangwisch (Marcel Gangwisch)


of cause I also receive this error message if I fill both lines

@qgib
Copy link
Contributor Author

qgib commented Dec 15, 2014

Author Name: Giovanni Manghi (@gioman)


Marcel Gangwisch wrote:

of cause I also receive this error message if I fill both lines

see attached screencast, does not work for you that way?


  • 8207 was configured as rasterize_batch.mp4

@qgib
Copy link
Contributor Author

qgib commented Dec 15, 2014

Author Name: Marcel Gangwisch (Marcel Gangwisch)


I saw your screencast, I think it does not work for me...
I also made you a screencast.

@qgib
Copy link
Contributor Author

qgib commented Dec 15, 2014

Author Name: Marcel Gangwisch (Marcel Gangwisch)


sorry I forgot the screencast..


  • 8208 was configured as ScreenCapture_2014-12-15_17.33.10__1_.mp4

@qgib
Copy link
Contributor Author

qgib commented Dec 15, 2014

Author Name: Giovanni Manghi (@gioman)


fixed here

#1737

is a trivial patch, you can modify the file yourself by adding the 2 missing lines.

@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 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