You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from_proj was added based on pyproj 1 patterns of using the Proj objects with the transformer. However, with PROJ 6+ and pyproj 2+, the CRS object should be the object used when creating transformers.
from_proj does not have all of the kwargs that from_crs has and that was mainly because from_crs should be the method used and there isn't much point in supporting both. Additionally, the Proj object has some additional overhead as it creates a Transformer and a CRS when initialized.
I am thinking that removing from_proj will remove confusion.
Compatibility: from_proj was added in the initial version of the transformer in pyproj 2.1.0. from_crs was added at the same time, so if users modify their code to use from_crs instead it will also be backwards compatible.
Does anyone have good reasons why from_proj should stay?
The text was updated successfully, but these errors were encountered:
from_proj
was added based on pyproj 1 patterns of using theProj
objects with the transformer. However, with PROJ 6+ and pyproj 2+, the CRS object should be the object used when creating transformers.from_proj
does not have all of the kwargs thatfrom_crs
has and that was mainly becausefrom_crs
should be the method used and there isn't much point in supporting both. Additionally, theProj
object has some additional overhead as it creates a Transformer and a CRS when initialized.I am thinking that removing
from_proj
will remove confusion.Compatibility:
from_proj
was added in the initial version of the transformer in pyproj 2.1.0.from_crs
was added at the same time, so if users modify their code to usefrom_crs
instead it will also be backwards compatible.Does anyone have good reasons why
from_proj
should stay?The text was updated successfully, but these errors were encountered: