GithubHelp home page GithubHelp logo

test-data's Introduction

Some test files causing issues with Titiler

The files in the repo are just intented to debug Titiler and/or rio_tiler which do not expect to receive a list of pixel types (one for each band whereas they are all the same)
COG file causing troubles:

  • s250-advanced/IMG_MSI_TCI_R60m_S2A_MSI__SGP_20220930T161339_af98.COG.TIFF

Possible linked issue: rasterio/rasterio#2180 and this PR: rasterio/rasterio#1595 This also may be related to this GDAL issue: OSGeo/gdal#2298 GDAL does not seem to handle correctly Signed Bytes (at least on version <=3.6) Seems that the image bands are considered to have different pixels'types and returns a list. According to the metadata this is obviously not the case.

## Here's the error message I got

2023-09-18T14:53:52.076875911Z   File "/usr/local/lib/python3.9/site-packages/rio_tiler/io/base.py", line 118, in tile_exists
2023-09-18T14:53:52.076877954Z     (tile_bounds[0] < dst_bounds[2])
2023-09-18T14:53:52.076880074Z TypeError: '<' not supported between instances of 'float' and 'list'

GDAL info output on the test COG file

gdalinfo IMG_COG.TIFF|grep -A3 -i structure

Image Structure Metadata:
  COMPRESSION=LZW
  INTERLEAVE=PIXEL
  LAYOUT=COG
--
  Image Structure Metadata:
    PIXELTYPE=SIGNEDBYTE
Band 2 Block=512x512 Type=Byte, ColorInterp=Green
  Overviews: 915x915, 458x458, 229x229
  Image Structure Metadata:
    PIXELTYPE=SIGNEDBYTE
Band 3 Block=512x512 Type=Byte, ColorInterp=Blue
  Overviews: 915x915, 458x458, 229x229
  Image Structure Metadata:
    PIXELTYPE=SIGNEDBYTE

Operating system

Ubuntu 22.04 64 bit

Software versions

rasterio-1.3.8 rio_tiler-4.1.13 GDAL 3.6.4, released 2023/04/17

test-data's People

Contributors

nicolasvila avatar

Watchers

 avatar

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.