GithubHelp home page GithubHelp logo

Comments (5)

banesullivan avatar banesullivan commented on July 28, 2024 1

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

Screen Shot 2022-01-19 at 8 34 17 AM

from localtileserver.

banesullivan avatar banesullivan commented on July 28, 2024

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.

gtgrp-user avatar gtgrp-user commented on July 28, 2024

Hi @banesullivan,

I have managed to fix "No available tilesource" issue by projecting the input image correctly. However, I have encountered the following issue:
image_overlay

Instead of RGB, I see the above image. RGB image is available here for you to investigate and reproduce the issue.

from localtileserver.

gtgrp-user avatar gtgrp-user commented on July 28, 2024

I have managed to fix this by converting the image to PNG format. However, I have expected the tif format to work!

from localtileserver.

gtgrp-user avatar gtgrp-user commented on July 28, 2024

Thanks a lot. It works as you suggested. I really appreciate your time.

from localtileserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.