-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use pyproj.CRS internally #92
Comments
This looks like a good spot for the logic: Lines 7 to 25 in 5a26444
|
Seems like it is duplicated here - must have missed it: |
I like the idea of this and this is what I was hoping to do with geoxarray. This may make geoxarray completely unnecessary, but that is probably a good thing. My goal is still to make geoxarray without the dependency on rasterio/GDAL. If cartopy could use pyproj CRS objects then 💥 the entire ecosystem would be changed. |
I still think that is a useful goal to have. For starters, it could manage the CF convention based CRS read/write using
That would be nice - a world where the |
In geopandas 7+ they are now using the pyproj.CRS class (https://geopandas.readthedocs.io/en/latest/projections.html). This can potentially be problematic if the user has GDAL 2 installed with pyproj wheels in this example: https://corteva.github.io/rioxarray/stable/examples/clip_geom.html
It will likely also cause issues with: https://github.com/corteva/geocube
Currently when passing in WKT2 or a pyproj.CRS or a proj string/dict with
type=crs
in it and you have GDAL 2 installed, rasterio will raise an error. However, this is not an issue with pyproj.CRS. It can accept anything. It just cannot be accepted by everything until GDAL 3 becomes more widely used.So, I am thinking about using the
pyproj.CRS
to bridge the divide internally. Therasterio..crs.CRS
will still be exposed to users since this isrioxarray
and it can be accepted bypyproj.CRS
just fine.The internal logic would look like:
The text was updated successfully, but these errors were encountered: