Comments (5)
I have managed to fix "No available tilesource" issue by projecting the input image correctly
I'm glad you got the projection fixed and are now able to load the image!
The coloring issue is due to the raster missing the nodata
field and the default color interpretations not being set in the file. Unfortunately, you may need to recreate the raster because the nodata pixels are filled with 45
in this particular image which is in the middle of the valid data range of 0
to 255
for RGB colors.
You can mostly work around this though by specifying the nodata
value and which bands to use for RGB with localtileserver
:
from ipyleaflet import Map
from localtileserver import TileClient, get_leaflet_tile_layer
client = TileClient('20MAR30103630-M2AS-014050267010_01_P001_byte.tif')
l = get_leaflet_tile_layer(client, nodata=45, band=[1,2,3])
m = Map(center=client.center())
m.add_layer(l)
m
from localtileserver.
Hey, @gtgrp-user - the No available tilesource
error is somewhat of a catch-all error and the real issue could be one of many things.
Would it be possible for you to share the data file 20MAR30103630-M2AS-014050240020_01_P001_calibrated_QUAC_byte.tif
so that I can investigate and reproduce?
from localtileserver.
Hi @banesullivan,
I have managed to fix "No available tilesource" issue by projecting the input image correctly. However, I have encountered the following issue:
Instead of RGB, I see the above image. RGB image is available here for you to investigate and reproduce the issue.
from localtileserver.
I have managed to fix this by converting the image to PNG format. However, I have expected the tif format to work!
from localtileserver.
Thanks a lot. It works as you suggested. I really appreciate your time.
from localtileserver.
Related Issues (20)
- Use localtileserver in a docker container HOT 1
- Error: NeededInitPrefix is not defined HOT 4
- add_raster() isn't adding the downloaded image into the map HOT 15
- add_layer doesn't work with GeoTIFF file converted from xarray Dataset HOT 11
- can't add local raster file in windows HOT 4
- Use ipyleaflet's as_leaflet_layer interface
- Cannot display raster in Google Colab HOT 5
- Generated PNG tiles are not transparent (have black background) HOT 3
- Remote COG no longer works HOT 4
- Tiff file saving to HTML using folium HOT 1
- Tileclient does not show when run dash app python on docker HOT 3
- localtileserver fails with flask==3 HOT 2
- localtileserver not working with Leafmap on Docker HOT 4
- localtileserver client cannot work after setting the http proxy HOT 4
- not working on VS code remote notebook HOT 1
- Passing rasterio.Env context to tile server HOT 5
- nodata causes padding HOT 15
- The vmin and vmax parameters have no effect HOT 2
- Support custom colormaps
- Generate thumbnails in a projection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from localtileserver.