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

Modeler issues with output and input #27817

Closed
qgib opened this issue Oct 2, 2018 · 2 comments
Closed

Modeler issues with output and input #27817

qgib opened this issue Oct 2, 2018 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Easy fix Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Oct 2, 2018

Author Name: al ray (al ray)
Original Redmine Issue: 19995
Affected QGIS version: 3.2.3
Redmine category:processing/modeller


Greetings

I'm trying to run a model and the output of an element doesn't get treated as an input.

I am using a mask to extract part of a raster, since the default output is a tif and I want another file format, so I changed the output.

For the next tool: Zonal Statistic, I want to use the output of the previous tool as the raster input. The input is linked to the mask output but when it comes the time to run the algorithm it doesn't work since the input is empty.

Here is the log:

Running Zonal statistics [3/3]
Input Parameters:
{ COLUMN_PREFIX: 'MZ_', INPUT_RASTER: '', INPUT_VECTOR: 'C:/Users/utilisateur/Desktop/DOCS impo/lstm_rivers/shapefiles/Zbv1_d1.shp', RASTER_BAND: 1, STATS: 5 }
Traceback (most recent call last):
File "C:/PROGRA1/QGIS31.2/apps/qgis/./python/plugins\processing\algs\qgis\ZonalStatistics.py", line 132, in prepareAlgorithm
self.raster_interface = rasterLayer.dataProvider().clone()
AttributeError: 'NoneType' object has no attribute 'dataProvider'

Error encountered while running Zonal statistics
Error encountered while running Zonal statistics
Batch execution completed in 13.66 seconds

I'm not sure if this is an oversight for this tool but the extract by location and clip tool seem to provide the proper input.

Thanks


@qgib
Copy link
Contributor Author

qgib commented Oct 2, 2018

Author Name: Nyall Dawson (@nyalldawson)


Please test with 3.4 nightlies -- there's been many related fixes.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Dec 24, 2018

Author Name: Alexander Bruy (@alexbruy)


Closed for the lack of feedback. Please reopen if necessary.


  • resolution was changed from to no timely feedback
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Dec 24, 2018
@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 Easy fix 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! Easy fix Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant