Skip to content

Data Type Error Returned when Rasterizing Data - ValueError: shape values dtype must be one of: int16, int32, uint8, uint16, uint32, float32, float64 #52

Closed Answered by snowman2
lwasser asked this question in Q&A
Discussion options

You must be logged in to vote

From what I can tell, you have run into this issue: rasterio/rasterio#2072

trails.activity_i.dtype

Output:

dtype('int64')

After doing this:

trails["activity_i"] = trails.activity_i.astype("float64")

The process succeeded.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by lwasser
Comment options

You must be logged in to vote
2 replies
@snowman2
Comment options

@lwasser
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants