-
Notifications
You must be signed in to change notification settings - Fork 551
Closed
Labels
Description
Expected behavior and actual behavior.
I expected that the following code would result in the same outcome for rasterio 1.3.10 and 1.4.2. But no 😢
Steps to reproduce the problem.
import rasterio
img = "https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/raw/develop/Data/Input/SP67_FR_subset_1.tif"
with rasterio.open(img) as src:
print(src.crs.is_epsg_code)Output:
- rasterio 1.3.10:
True - rasterio 1.4.2:
False
Strangely calling to_epsg() gives the correct EPSG code (2154) for both considered rasterio versions.
Environment Information
- Output from:
rio --show-versionsorpython -c "import rasterio; rasterio.show_versions()"
rasterio info:
rasterio: 1.4.2
GDAL: 3.9.3
PROJ: 9.4.1
GEOS: 3.11.1
PROJ DATA: /usr/local/lib/python3.10/dist-packages/rasterio/proj_data
GDAL DATA: None
System:
python: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
executable: /usr/local/bin/python
machine: Linux-6.8.0-45-generic-x86_64-with-glibc2.35
Python deps:
affine: 2.4.0
attrs: 24.2.0
certifi: 2023.11.17
click: 8.1.7
cligj: 0.7.2
cython: None
numpy: 1.26.2
click-plugins: None
setuptools: 59.6.0
Installation Method
pip install from an ubuntu 22.04 docker image
Reactions are currently unavailable