Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initializing Proj objects #80

Closed
oldtopos opened this issue May 12, 2016 · 2 comments
Closed

Initializing Proj objects #80

oldtopos opened this issue May 12, 2016 · 2 comments

Comments

@oldtopos
Copy link

Why does

pyproj.Proj( "+init=epsg:%d" % ( theEPSG ) ),

work, while

theInitString = "epsg:%d" % ( theEPSG ) pyproj.Proj( init=theInitString )

fails ? I see an error saying the data for proj cannot be found with the latter form. I'm running on Ubuntu 14.04

@georgeouzou
Copy link
Contributor

I cannot see a problem with this line of code.. What version of pyproj are you using?

@micahcochran
Copy link
Collaborator

I ran it on Ubuntu 15.10 (using Python 3.4.3). It seems to work.

Console:

In [1]: import pyproj

In [2]: theEPSG=4326

In [3]: pyproj.Proj( "+init=epsg:%d" % ( theEPSG ) )
Out[3]: <pyproj.Proj at 0xb686647c>

In [4]: theInitString = "epsg:%d" % ( theEPSG ); pyproj.Proj( init=theInitString )
Out[4]: <pyproj.Proj at 0xb5eac7ac>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants