Commit c3d8b21
authored
[rasterio] Accept int EPSG codes and any to_wkt provider in CRSInput (#16294)
`CRS.from_user_input` dispatches on a `to_wkt` method before checking any
concrete type, and reads a bare `int` as an EPSG code. Model the former as a
`_SupportsToWkt` Protocol rather than taking a dependency on pyproj.1 parent c1b67ec commit c3d8b21
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
25 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
| |||
0 commit comments