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

Qgis crash #3

Closed
Lindeextreme opened this issue Feb 25, 2015 · 2 comments
Closed

Qgis crash #3

Lindeextreme opened this issue Feb 25, 2015 · 2 comments

Comments

@Lindeextreme
Copy link

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

@micahcochran
Copy link
Collaborator

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:

Segmentation fault (core dumped)

I also tried import pyproj; pyproj.test(), under QGIS shell. It worked fine on Windows and Seg-faulted on Ubuntu.

I think this is an issue with the QGIS software, not with pyproj.

@snowman2
Copy link
Member

Feel free to reopen. Closing due to inactivity & likely unrelated to pyproj.

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