title: pyproj FutureWarning: '+init=<authority>:<code>' syntax is deprecated
body: <p><a href="https://stackoverflow.com/questions/59596835/open-street-map-pyproj-how-to-solve-syntax-issue">Open Street Map (pyproj). How to solve syntax issue?</a>
  has a similar question and the answers there did not help me.</p>
  
  <p>I am using the helper class below a few hundred times and my console gets flooded with warnings:</p>
  
  <pre><code>/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyproj/crs/crs.py:53: FutureWarning: '+init=&lt;authority&gt;:&lt;code&gt;' syntax is deprecated. '&lt;authority&gt;:&lt;code&gt;' is the preferred initialization method. When making the change, be mindful of axis order changes: https://pyproj4.github.io/pyproj/stable/gotchas.html#axis-order-changes-in-proj-6
    return _prepare_from_string(" ".join(pjargs))
  </code></pre>
  
  <p><a href="https://pyproj4.github.io/pyproj/stable/gotchas.html#axis-order-changes-in-proj-6" rel="nofollow noreferrer">https://pyproj4.github.io/pyproj/stable/gotchas.html#axis-order-changes-in-proj-6</a></p>
  
  <p>When i try to follow the hint by using:</p>
  
  <pre><code>return transform(Proj('epsg:4326'), Proj('epsg:3857'), lon,lat)
  </code></pre>
  
  <p><strong>I get some (inf,inf) results in cases where the original code worked. What is the proper way to avoid the syntax error but get the same results?</strong></p>
  
  <ul>
  <li><a href="https://gis.stackexchange.com/questions/164043/how-to-create-a-projection-from-a-crs-string-using-pyproj">https://gis.stackexchange.com/questions/164043/how-to-create-a-projection-from-a-crs-string-using-pyproj</a></li>
  </ul>
  
  <p>shows the old syntax but no code example for a compatible new statement.</p>
  
  <p><a href="https://github.com/pyproj4/pyproj/issues/224" rel="nofollow noreferrer">https://github.com/pyproj4/pyproj/issues/224</a> states:</p>
  
  <pre><code>  *What is the preferred way of loading EPSG CRSes now?
  
  use "EPSG:XXXX" in source_crs or target_crs arguments of proj_create_crs_to_crs() when creating a transformation, or as argument of proj_create() to instanciate a CRS object*
  </code></pre>
  
  <p><strong>What does this mean as a code example?</strong></p>
  
  <p>from pyproj import Proj, transform</p>
  
  <pre><code>class Projection:
      @staticmethod
      def wgsToXy(lon,lat):
          return transform(Proj(init='epsg:4326'), Proj(init='epsg:3857'), lon,lat)
  
      @staticmethod
      def pointToXy(point):
          xy=point.split(",")
          return Projection.wgsToXy(float(xy[0]),float(xy[1]))
  </code></pre>