Skip to main content
deleted 15 characters in body; edited title
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

How can I get epsg Getting EPSG code in pyproj with version==2.1.3?

I'm using pyproj in python and I want to get epsg code based on an existing Proj class. An example in version=1.9.6:

from pyproj import Proj
CGCS2000metre = Proj(init='EPSG:4544')
print(CGCS2000metre.srs)

# +units=m +init=epsg:4544 

As you can see, I can find epsg code 4544 in the return result. But I can't do it in version==2.1.3:

from pyproj import Proj
CGCS2000metre = Proj(init='EPSG:4544')
print(CGCS2000metre.srs)

# +proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs

I just want to get epsg code from an existing Proj. 

How can I get epsg code in pyproj with version==2.1.3? Thanks in advance.

How can I get epsg code in pyproj with version==2.1.3

I'm using pyproj in python and I want to get epsg code based on an existing Proj class. An example in version=1.9.6:

from pyproj import Proj
CGCS2000metre = Proj(init='EPSG:4544')
print(CGCS2000metre.srs)

# +units=m +init=epsg:4544 

As you can see, I can find epsg code 4544 in the return result. But I can't do it in version==2.1.3:

from pyproj import Proj
CGCS2000metre = Proj(init='EPSG:4544')
print(CGCS2000metre.srs)

# +proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs

I just want to get epsg code from an existing Proj. How can I get epsg code in pyproj with version==2.1.3? Thanks in advance.

Getting EPSG code in pyproj with version==2.1.3?

I'm using pyproj in python and I want to get epsg code based on an existing Proj class. An example in version=1.9.6:

from pyproj import Proj
CGCS2000metre = Proj(init='EPSG:4544')
print(CGCS2000metre.srs)

# +units=m +init=epsg:4544 

As you can see, I can find epsg code 4544 in the return result. But I can't do it in version==2.1.3:

from pyproj import Proj
CGCS2000metre = Proj(init='EPSG:4544')
print(CGCS2000metre.srs)

# +proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs

I just want to get epsg code from an existing Proj. 

How can I get epsg code in pyproj with version==2.1.3?

edited tags
Link
alphabetasoup
  • 9k
  • 4
  • 40
  • 79
Source Link

How can I get epsg code in pyproj with version==2.1.3

I'm using pyproj in python and I want to get epsg code based on an existing Proj class. An example in version=1.9.6:

from pyproj import Proj
CGCS2000metre = Proj(init='EPSG:4544')
print(CGCS2000metre.srs)

# +units=m +init=epsg:4544 

As you can see, I can find epsg code 4544 in the return result. But I can't do it in version==2.1.3:

from pyproj import Proj
CGCS2000metre = Proj(init='EPSG:4544')
print(CGCS2000metre.srs)

# +proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs

I just want to get epsg code from an existing Proj. How can I get epsg code in pyproj with version==2.1.3? Thanks in advance.