Commit 66fc110
committed
Simplify public API to 3 functions
The public API is now:
read_geotiff(source, ...) # read anything: file, URL, cloud, VRT
write_geotiff(data, path, ...) # write any backend
write_vrt(path, sources) # generate VRT mosaic XML
read_geotiff auto-detects:
- .vrt extension -> VRT reader
- http:// / https:// -> COG range-request reader
- s3:// / gs:// / az:// -> cloud via fsspec
- gpu=True -> nvCOMP GPU decompression
- chunks=N -> Dask lazy windowed reads
Removed from __all__: open_cog (deprecated wrapper),
read_vrt (called internally), read_geotiff_dask (use chunks=),
read_geotiff_gpu / write_geotiff_gpu (use gpu=True).
All these functions still exist for backwards compatibility but
are no longer the recommended entry points.1 parent 3ffd82a commit 66fc110
2 files changed
+13
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
0 commit comments