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
Rasters not stylized #148
Comments
Yes. The plugin works on the input image, not the styled output. This issue remains from qgis2leaf (Geolicious/qgis2leaf#168). I believe qgis-ol3 did the same, so the issue potentially exists for both formats - perhaps you could confirm or deny whether OL3 export fails in the same way? |
Not working, but I don't understand why - any ideas, anyone?
I've started work on this in a new branch (https://github.com/tomchadwin/qgis2web/tree/rendered-raster). Not working yet, so any help would be most welcome. |
I've not made any progress on this, so I've asked for help: http://gis.stackexchange.com/questions/175952/pyqgis-save-raster-as-rendered-image-then-use-gdal-tools-on-it |
OK, as far as I can see, there are four different ways of calling GDAL:
I wonder if the GDAL bindings might be worth exploring. Since I don't know what has caused previous attempts to fail, I don't know what I'm looking for. Can anyone explain the pros and cons of the approaches above? |
Confirmed here, both on OL3 and on leaflet: a coloured DTM turns out as grayscale. |
I'm using a sample project (geomorpho) and data from: |
I will take a look. |
Thanks, @lucacasagrande! |
Update: Style is working with OL3 (with QGIS-master). |
Only with master? Not working for me with a nightly from a couple of weeks ago: |
No, I can't get this to work:
I see nothing on screen. Are we not describing the same thing? |
Yes Tom. |
Update: Style is working also in LeafletJS. |
Sorry, @lucacasagrande. I couldn't see any commits/PRs, so I thought you were talking about tomchadwin/qgis2web master as well as QGIS master. |
Hi @tomchadwin I can make a pull request, but it's better in a specific branch because currently it's working only with QGIS-master. Tomorrow I will start to work on a solution to make it compatible with old version. |
Now I understand. Sorry for being so slow. Do you need me to branch here (git non-expert)? |
No problem Tom 👍 |
Wow, that was quick. On a related topic, I've upped the minimum supported QGIS version to 2.8. I would be prepared to up it to 2.14 once that becomes LTR - pretty soon. |
Please test if we can close this issue. Thanks :) |
Fix committed to master. Please test. @pcav, can you test? |
Released as 1.10.0-FOSS4GUK2016 experimental and pushed to QGIS plugins repo. |
Can you see if you can find more info in the main QGIS log: |
That should be it. On windows machine it kind of works (raster resolution is degraded). I can share files that I'm using.
|
Are you able to find out which version of GDAL you are using? |
@zkuralt Is this still an issue? |
Yes, I am still not able to add raster layers to map. Vector layers work fine. (working on MacOS, QGIS 2.18.0) |
Leaflet or OpenLayers 3 export (or both)? |
@zkuralt I've just made a change to the raster code. Are you able to download master branch and try again? Let us know what happens. |
Seems to be working both with vectors and rasters. I am attaching test webmap I just made. |
Fantastic news! Thanks for getting back to me so quickly. It'll be a pleasure to close this issue after so long. |
Tom, in relation to my previous inquiry on this topic, I am still getting a similar error as described earlier on this post: not being able to export raster with qgis2web plugin. Processing Log:
2017-05-15T13:11:02 1 Unable to execute algorithm
2017-05-15T13:11:04 1 Unable to execute algorithm
2017-05-15T13:11:05 1 Unable to execute algorithm
2017-05-15T13:11:07 1 Unable to execute algorithm Qgis2Web Log: |
@aperezrivoira Can you double-check which version of qgis2web you have installed (find it in the QGIS Plugin Manager)? |
2.17.1 |
I may have done something wrong but when I try to add a raster with a defined pseudocolor band all I get is a black box for the extent of the raster. The raster should be yellow to red scaled. Not sure if it is a bug or I am not setting it up correctly. Using QGIS 2.8 and the raster is a .tif file created from the Heatmap tool.
The text was updated successfully, but these errors were encountered: