-
Hello Community, Is there a feature for vectorizing a multi-band raster? the code below produces an error that I am looking to overcome. import rioxarray
from geocube.vector import vectorize
raster = rioxarray.open_rasterio("/home/kamparia/Downloads/leeds_cir_compress_proj.tif", masked=False).squeeze()
df = vectorize(raster)
df.head() Error message:
I look forward to any possible solution or alternative. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
snowman2
May 23, 2023
Replies: 2 comments 3 replies
-
What is the value of |
Beta Was this translation helpful? Give feedback.
3 replies
-
For a multi-band raster, you likely want to vectorize each band separately: vectorize(raster.sel(band=1)) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This may help: #142