Commit 81427278 authored by Benjamin Pillot's avatar Benjamin Pillot
Browse files

Update to_crs method:

* Accept epsg code, proj string or pyproj CRS class
parent c2c1bb49
...@@ -454,14 +454,14 @@ class RasterBase: ...@@ -454,14 +454,14 @@ class RasterBase:
Parameters Parameters
---------- ----------
crs: pyproj.CRS crs: int or str or pyproj.CRS
valid CRS valid CRS (Valid pyproj CRS, EPSG code, proj string, etc.)
Returns Returns
------- -------
""" """
return _project_raster(self, crs) return _project_raster(self, pyproj.CRS(crs))
def to_file(self, filename): def to_file(self, filename):
""" Write raster copy to file """ Write raster copy to file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment