Skip to main content
Added CRS, as EPSG codes cover more than CRS, but the question in concerned with CRS
Source Link
nmtoken
  • 13.6k
  • 5
  • 38
  • 89

EPSG CRS Error Trap

I'm using pyproj and I'd like to run an error trap on the EPSG CRS code. Specifically, if the user enters a EPSG CRS code that is not in the proj database, it would provide a Boolean flag I can check before proceeding. I currently get this message if I enter a bad EPSG CRS:

File "pyproj\_crs.pyx", line 2338, in pyproj._crs._CRS.__init__
pyproj.exceptions.CRSError: Invalid projection: epsg:000: (Internal Proj Error: proj_create: crs not found)

EPSG Error Trap

I'm using pyproj and I'd like to run an error trap on the EPSG code. Specifically, if the user enters a EPSG code that is not in the proj database, it would provide a Boolean flag I can check before proceeding. I currently get this message if I enter a bad EPSG:

File "pyproj\_crs.pyx", line 2338, in pyproj._crs._CRS.__init__
pyproj.exceptions.CRSError: Invalid projection: epsg:000: (Internal Proj Error: proj_create: crs not found)

EPSG CRS Error Trap

I'm using pyproj and I'd like to run an error trap on the EPSG CRS code. Specifically, if the user enters a EPSG CRS code that is not in the proj database, it would provide a Boolean flag I can check before proceeding. I currently get this message if I enter a bad EPSG CRS:

File "pyproj\_crs.pyx", line 2338, in pyproj._crs._CRS.__init__
pyproj.exceptions.CRSError: Invalid projection: epsg:000: (Internal Proj Error: proj_create: crs not found)
removed appreciation; naming
Source Link
Vince
  • 20.3k
  • 16
  • 48
  • 65

I'm using pyproj and I'd like to run an error trap on the EPSG code. Specifically, if the user enters a EPSG code that is not in the proj database, it would provide a booleanBoolean flag I can check before proceeding. I currently get this message if I enter a bad EPSG:

File "pyproj\_crs.pyx", line 2338, in pyproj._crs._CRS.__init__
pyproj.exceptions.CRSError: Invalid projection: epsg:000: (Internal Proj Error: proj_create: crs not found)

Any suggestions would be appreciated. Thanks.

I'm using pyproj and I'd like to run an error trap on the EPSG code. Specifically, if the user enters a EPSG code that is not in the proj database, it would provide a boolean flag I can check before proceeding. I currently get this message if I enter a bad EPSG:

File "pyproj\_crs.pyx", line 2338, in pyproj._crs._CRS.__init__
pyproj.exceptions.CRSError: Invalid projection: epsg:000: (Internal Proj Error: proj_create: crs not found)

Any suggestions would be appreciated. Thanks.

I'm using pyproj and I'd like to run an error trap on the EPSG code. Specifically, if the user enters a EPSG code that is not in the proj database, it would provide a Boolean flag I can check before proceeding. I currently get this message if I enter a bad EPSG:

File "pyproj\_crs.pyx", line 2338, in pyproj._crs._CRS.__init__
pyproj.exceptions.CRSError: Invalid projection: epsg:000: (Internal Proj Error: proj_create: crs not found)
Source Link

EPSG Error Trap

I'm using pyproj and I'd like to run an error trap on the EPSG code. Specifically, if the user enters a EPSG code that is not in the proj database, it would provide a boolean flag I can check before proceeding. I currently get this message if I enter a bad EPSG:

File "pyproj\_crs.pyx", line 2338, in pyproj._crs._CRS.__init__
pyproj.exceptions.CRSError: Invalid projection: epsg:000: (Internal Proj Error: proj_create: crs not found)

Any suggestions would be appreciated. Thanks.