Re: Problem with passing CRS to warpedVRT
Sean Gillies
Hi, If I read your code correctly, you are misusing the WarpedVRT constructor. You are passing a dict as the second positional argument to WarpedVRT(). This ends up being bound to the name src_crs in https://github.com/rasterio/rasterio/blob/master/rasterio/_warp.pyx#L820 and then can't be understood by PROJ as a CRS. That is invalid usage. Instead, try with WarpedVRT(mr, **output_params) as vrt: This unpacks the dict into the separate keyword arguments that the constructor expects.
On Sun, Jan 2, 2022 at 2:25 PM <stefan.jozefowicz@...> wrote: I am getting the folllowing error when I am trying pass a crs object to WarpedVRT --
Sean Gillies
|
|