Add deprecation warning for +init= syntax
See original GitHub issueFrom: https://gitter.im/pyproj4-pyproj/community?at=5d13c274b3f22a4b2a4018be
More info about deprecation: https://github.com/pyproj4/pyproj/issues/224#issuecomment-476647824
It probably would be a good idea to add a deprecation warning when users use the +init=
syntax.
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (13 by maintainers)
Top Results From Across the Web
pyproj FutureWarning: '+init=<authority>:<code>' syntax is ...
pyproj FutureWarning: '+init=<authority>:<code>' syntax is deprecated ; Open Street Map (pyproj). How to solve syntax issue? has a similar ...
Read more >Python deprecation - DEV Community
To warn about deprecation, you need to set Python's builtin DeprecationWarning as category. To let the warning refer to the caller, so you...
Read more >Warning: expression closures are deprecated - MDN Web Docs
The JavaScript warning "expression closures are deprecated" occurs when the non-standard expression closure syntax (shorthand function syntax) ...
Read more >C++ attribute: deprecated (since C++14) - cppreference.com
Indicates that the name or entity declared with this attribute is deprecated, that is, the use is allowed, but discouraged for some reason....
Read more >How to deprecate classes, methods, arguments and hooks in ...
Add a @deprecated annotation to the class doc comment · Deprecate the constructor - see next section about deprecating a method ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is the scenario I am concerned about:
A user creates or loads in the GeoDataFrame
Then the user decides to re-project the data and gets the deprecation warning
So, because this is deprecated, the user is going to switch to the new syntax
And the input axis order is swapped, so their reprojected data is now incorrect. They may or may not realize this and move along with incorrectly re-projected data.
Haha… one year later, that was exactly what caused me 6+ hours of headache. It was not related to Geopandas, rather standard use of pyproj in a separate package. Saw the depreciation notice, switched to recommended syntax: projected geometries had switched (wrong) axis because I was using the traditional style of coordinate-order (lng, lat)… too bad I didn’t see your comment a couple of hours earlier!