GeoTIFF / georaster-layer-for-leaflet

Display GeoTIFFs and soon other types of raster on your Leaflet Map
https://geotiff.github.io/georaster-layer-for-leaflet-example/
Apache License 2.0
306 stars 58 forks source link

Colored tif rendered in bn #24

Closed Deca closed 4 years ago

Deca commented 5 years ago

Not sure if is a bug, this is my first time I work with geotiff I'm trying your example with a colored tif I should work with but It appear on the map in black and white...is there something I'm missing? image

DanielJDufour commented 5 years ago

Hi, @Deca . Welcome to GeoTIFFs! Would you happen to be able to share the GeoTIFF file you are trying to render? That will be the easiest way for me to debug this for you.

If not could you take a screenshot of the dev console (what is logged when you run console.log("georaster:", georaster); and/or run gdalinfo example.tif with example.tif replaced by your filename.

Thanks!

DanielJDufour commented 5 years ago

If you'd like to send me the geotiff, you can send it to daniel.j.dufour@gmail.com

Deca commented 5 years ago

Hi Daniel and thanks for the reply, I add as archive the tif I'm using and the georaster obj I got from console tif_log.zip

vmandal commented 4 years ago

What was the solution? Or do we need to use "pixelValuesToColorFn" and manually set color? Can it not automatically display the colors?

Deca commented 4 years ago

Unresolved from my side, I settled for using simple png but I still would like switch to geotiff Let's see if Daniel have some news

DanielJDufour commented 4 years ago

This should be fixed now. Please upgrade georaster and georaster-layer-for-leaflet to the newest version. You can see it in action here: https://geotiff.github.io/georaster-layer-for-leaflet-example/examples/load-file.html if you load a file with a ColorTable. Let me know if it works! Thank you for your patience.

Screen Shot 2020-06-27 at 6 04 12 PM
vmandal commented 4 years ago

Excellent work! It works flawless. Thank you very much @DanielJDufour

DanielJDufour commented 4 years ago

Glad to hear it! I'll close this issue for now. Please post any future issues again. Thank you both!