Timeline for Open a raster file with read and write permissions in rasterio
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 3, 2018 at 0:01 | history | tweeted | twitter.com/StackGIS/status/1047275431504875521 | ||
Oct 2, 2018 at 14:35 | vote | accept | user32882 | ||
Oct 2, 2018 at 13:17 | comment | added | user2856 | @bugmenot123 That error is only in earlier versions of rasterio . I got it in 1.0a12 but not in 1.0.6. | |
Oct 2, 2018 at 13:14 | answer | added | user2856 | timeline score: 7 | |
Oct 2, 2018 at 12:29 | comment | added | user32882 |
Not on my computer it doesnt. I get UnsupportedOperation: not readable . I'm using rasterio 1.0.6 with Python 3.6.6 :: Anaconda, Inc. Please make sure you are using these versions of the software
|
|
Oct 2, 2018 at 11:30 | comment | added | bugmenot123 |
Your code throws a different error: TypeError: an integer is required . Please make sure your example does showcase the problem you have!
|
|
Oct 2, 2018 at 3:56 | comment | added | user32882 | Its a memory file... dont you lose it once it is closed? | |
Oct 2, 2018 at 0:38 | comment | added | user2856 | I'm not sure this is possible. The usual way is to write and close, then read. If you want to write again, just overwrite the memfile object. | |
Oct 1, 2018 at 15:43 | comment | added | user32882 |
calling with dataset = memfile.open(mode='r+',driver=driver, width= shape[1], height = shape[0], transform=transform, count=1, dtype = dtype) throws the following type error: TypeError: __init__() got multiple values for keyword argument 'mode'
|
|
Oct 1, 2018 at 15:42 | comment | added | bugmenot123 | What exactly was your error with "mode=r+"? | |
Oct 1, 2018 at 15:33 | history | asked | user32882 | CC BY-SA 4.0 |