mdbartos / pysheds

:earth_americas: Simple and fast watershed delineation in python.
GNU General Public License v3.0
708 stars 191 forks source link

pyproj.transformer.transform() deprecated #178

Open itati01 opened 2 years ago

itati01 commented 2 years ago

Hi @mdbartos

pytest warns about the deprecated pyproj.transformer.transform(). According to the pyproj documentation, pyproj.transformer.Transformer() should be used instead:

from pyproj import Transformer
transformer = Transformer.from_crs("epsg:4326", "epsg:3857")
transformer.transform(12, 12)

My pyproj version is '2.6.1.post1'.

mdbartos commented 2 years ago

I saw this as well. Looks like it hasn't broken anything yet, but I'll prepare a patch for this.