Comments (13)
@vincentsarago Sorry was busy with other stuffs, the rio-tiler version I am using is 4.1.10 which is greater than 4.1.6. So I feel it should work
from rio-tiler.
@vincentsarago thanks for all the support. I can confirm it is working for me. Thanks again, closing the issue
from rio-tiler.
Hi @kirangkumar,
- what version of titiler are you using?
- are you using a custom factory?
- can you share the full URL you're trying to use
- if you can, remove https://github.com/developmentseed/titiler/blob/main/src/titiler/application/titiler/application/main.py#L114 then we will get a full error logs
from rio-tiler.
Hi @vincentsarago here are answers to your questions:
- what version of titiler are you using?
- I am using the latest version titiler from main branch
- are you using a custom factory?
No I am not using custom factory - can you share the full URL you're trying to use
The URL ishttp://127.0.0.1:9070/stac/preview?format=png&url=https://planetarycomputer.microsoft.com/api/stac/v1/collections/landsat-8-c2-l2/items/LC08_L2SP_229061_20220324_02_T1&assets=SR_B4&assets=SR_B3&assets=SR_B2&color_formula=gamma+RGB+2.7%2C+saturation+1.5%2C+sigmoidal+RGB+15+0.55
- Error message:
Hope this is sufficient:
File "/Users/kiran/pixxel/titiler/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/Users/kiran/pixxel/titiler/src/titiler/core/titiler/core/factory.py", line 914, in preview
image.apply_color_formula(color_formula)
File "/Users/kiran/pixxel/titiler/venv/lib/python3.10/site-packages/rio_tiler/models.py", line 551, in apply_color_formula
self.array.data = scale_dtype(ops(to_math_type(out)), numpy.uint8)
AttributeError: can't set attribute 'data'
from rio-tiler.
the latest titiler shouldn't be used with rio-tiler <4.1.6
https://github.com/developmentseed/titiler/blob/main/src/titiler/core/pyproject.toml#L38
from rio-tiler.
also note that with stac you'll need to set asset_as_band=True
to work with single band stored as multiple files
from rio-tiler.
any update @kirangkumar ?
from rio-tiler.
from rio-tiler.
And I am using one band in one file, so I guess, asset_as_band=True is not required. But I tried that option too before creating the issue, since there was no luck, I thought of asking help here
from rio-tiler.
Wait, It seems you are using rio-tiler from dev branch not the one from pypi!
Dev
Line 551 in aed8893
4.1.10
Line 604 in d216ab0
I should update the version in the GitHub branch to avoid confusion, sorry about this
from rio-tiler.
@vincentsarago No worries, thanks for the quick help. I will upgrade my code from dev to main. Can you please let me know what is the version in main?
from rio-tiler.
main
should be 4.1.10
from rio-tiler.
this should be fixed with latest commit ee1d7c4
please could you close the issue once you confirm it's resolved on your side 🙏
from rio-tiler.
Related Issues (20)
- Interpolation should happen after masking HOT 1
- READER RETUNR NOT FOUND
- Reader `resampling_method` has no effect HOT 1
- Reader `resampling_method` has no effect when doing Reprojection HOT 2
- Investigate weird output resolution after #648 HOT 3
- remove usage of WarpedVRT?
- No colormapping support for float dtype HOT 1
- Worse image quality with tiles cut using rio-tiler than GDAL HOT 4
- Custom In-Memory Reader HOT 1
- nodata value being ignored HOT 3
- .tile() is not masking region outside of image when nodata used HOT 3
- Count default method? HOT 1
- Incorrect array statistics with (coverage) weights HOT 2
- Method to filter assets within mosaic_reader HOT 1
- Forwarding `ImageData.array.mask` in NPZ output HOT 4
- [STAC] access Alternate URL
- nodata value being ignored for NaN HOT 2
- Error applying expression with STACReader : "NumExpr 2 does not support Unicode as a dtype."
- Investigate higher HEAD/GET Request with GDAL >3.7 HOT 9
- replace deprecated `is_tiled`
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 rio-tiler.