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

Can't add a Geotiff raster layer to the map #19

Closed
mamoev opened this issue Jun 8, 2021 · 10 comments
Closed

Can't add a Geotiff raster layer to the map #19

mamoev opened this issue Jun 8, 2021 · 10 comments
Labels
bug Something isn't working

Comments

@mamoev
Copy link

mamoev commented Jun 8, 2021

Environment Information

  • leafmap version: 0.1.0
  • Python version: 3.7.10
  • Operating System: Windows

Description

After installing xarray-leaflet, I tried to add a Geotiff raster layer to the map.

Once the file is chosen, I press the apply button and the map zooms to the right coordinates, a layer is created but nothing is displayed.

I'm attaching the file I'm trying to display so you can try on your own.

file.zip

@mamoev mamoev added the bug Something isn't working label Jun 8, 2021
@giswqs
Copy link
Member

giswqs commented Jun 8, 2021

Are you using Windows? Unfortunately, xarray_leaflet does not work properly on Windows. See https://github.com/davidbrochart/xarray_leaflet/issues/30 @davidbrochart

Alternatively, you can use Linux-based Binder.

@davidbrochart
Copy link

Sorry, I still haven't got the time to work on xarray-leaflet 😄

@mamoev
Copy link
Author

mamoev commented Jun 9, 2021

Thanks for the quick responses.

I will test this on Linux.

@mamoev
Copy link
Author

mamoev commented Jun 9, 2021

I tested the Binder links you provided and, in a Linux environment, it works great.

However, when running an example notebook (05_load_raster) locally, it doesn't work anymore. I have two loading icons in the bottom right corner that are displayed indefinitely and no layer are created.

@mamoev mamoev closed this as completed Jun 9, 2021
@mamoev mamoev reopened this Jun 9, 2021
@giswqs
Copy link
Member

giswqs commented Jun 9, 2021

@mamoev The binder env was created using this environment.yml. Can you try creating a fresh env using the same yml?

conda env create -f environment.yml

@mamoev
Copy link
Author

mamoev commented Jun 11, 2021

Thanks for the help ! It works great.

@robinjacobroy
Copy link

I tried to load a raster image in Google Colab but, no layer is getting added. Only the map gets zoomed to the location of the raster.
Same is the case in my local system. Please help..

@giswqs
Copy link
Member

giswqs commented Sep 28, 2021

Xarray-leaflet does not support Colab. Try binder https://gishub.org/leafmap-pangeo
Tutorial 5

@radekszostak
Copy link

radekszostak commented Sep 1, 2022

Currently binder examples 05_load_raster.ipynb and 32_local_tile.ipynb doesn't work. I'm getting error:
ImportError: localtileserver is not installed. Please install it before proceeding. https://github.com/banesullivan/localtileserver

I've noticed, that tests related to these functionalities are commented out in tests/test_leafmap.py

@darlainedeme
Copy link

Currently binder examples 05_load_raster.ipynb and 32_local_tile.ipynb doesn't work. I'm getting error: ImportError: localtileserver is not installed. Please install it before proceeding. https://github.com/banesullivan/localtileserver

I've noticed, that tests related to these functionalities are commented out in tests/test_leafmap.py

just
!pip install localtileserver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants