-
Notifications
You must be signed in to change notification settings - Fork 213
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
Qgis crash #3
Comments
I tried this on the current version of QGIS 2.10.1-Pisa (OSGeo4W install) under Windows 7 Pro. It worked fine. It gave me these results: print lat, lng
7.97335663032 54.2128392776 Then I tried it on Ubuntu 15.04 with QGIS 2.10.1-Pisa. QGIS crashed. I even tried this: try:
lat, lng = transform(in_projection, out_projection, 887590, 7210569)
except:
print "Unexpected error:", sys.exc_info()[0]
raise and that didn't help. The resulting error message when running QGIS from the prompt:
I also tried I think this is an issue with the QGIS software, not with pyproj. |
Feel free to reopen. Closing due to inactivity & likely unrelated to pyproj. |
I execute the following code lines in the Qgis python shell, then qgis crashes. When i execute the code outside of Qgis everthing works perfekt.
Code
from pyproj import Proj, transform
in_projection = Proj(init="epsg:3857")
out_projection = Proj(init="epsg:4326")
lat, lng = transform(in_projection, out_projection, 887590, 7210569)
The enviroment:
OS: Ubuntu 14.04 LTS
Qgis: 2.6.1-Brighton
Project cbs: WGS 84 / Pseudo Mercator (EPSG:3857)
PROJ.4-Version: 480
Qt: 4.8.6
Python: 2.7.6
pyproj: 1.9.4
The text was updated successfully, but these errors were encountered: