-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Projection issue: freezes when reprojecting a csv file #12397
Comments
Author Name: Giovanni Manghi (@gioman) If the points you are importing are in the WGS84 /UTM zone system, then you need to configure the vector crs accordingly in the vector properties -> general tab. Alternatively save the imported csv as shapefile (right button in the legend -> save as shapefile) and qgis will ask you the crs of the vector. In my case (Ubuntu linux, qgis 1.4), with OTFR enabled, the imported csv defined with the wrong crs and other layers, I'm not experiencing freezes, but I cannot see anything in the canvas. But that is not the worst part: define the correct crs (WGS84 /UTM zone 43N CRS) for the imported csv, enable otfr and define as project crs WGS84 /UTM zone 43N CRS. Add a wgs84 layer (example: http://thematicmapping.org/downloads/TM_WORLD_BORDERS-0.3.zip ), it will show fine. Zoom out, at some point qgis crashes:
|
Author Name: Maxim Dubinin (@simgislab) freezes for me too that was the point probably, yes, trying to project already projected vector is bad, but is it possible to indicate it with more obvious error message and not just freeze QGIS on trying to continue working with it like nothing happened? |
Author Name: Giovanni Manghi (@gioman) Replying to [comment:2 gislab]:
When importing csv files it would be enough to have the plugin ask for the CRS(?). |
Author Name: Maxim Dubinin (@simgislab) Replying to [comment:3 lutra]:
|
Author Name: Anne Ghisla (Anne Ghisla) Replying to [comment:4 gislab]:
With QGIS Trunk r 15304, and Options > CRS > Prompt for CRS, then in Project properties I set projection as WGS84 /UTM zone 43N and OFTR enabled, everything goes fine (load wgs84 layers and zoom out). If I set as QGIS default Options > CRS > Global default CRS, I load the csv layer and see it with wrong coordinates, then I set Project properties as above. I zoom to layer extent and get a popup window titled "qgis " and with text "Could not draw 54-22 because" and an empty space. In the shell I read: failed with error: latitude or longitude exceeded limits Debug: /home/anne/src/qgis/src/core/qgscoordinatetransform.cpp: 490: (transformCoords) throwing exception Debug: /home/anne/src/qgis/src/core/qgscoordinatetransform.cpp: 304: (transformInPlace) rethrowing exception Debug: /home/anne/src/qgis/src/core/qgsvectorlayer.cpp: 1107: (draw) Failed to transform a point while drawing a feature of type _. Rendering stopped. forward transform of (10316.6, 23900.4) This is almost OK, it's not a freeze and the user can safely remove the faulty layer and fix CRS settings. However the error message does not show up in the popup window. Anne |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Magnus Homann (@homann)
|
Author Name: Giovanni Manghi (@gioman) This does not happens any more on master.
|
Author Name: dr - (dr -)
Original Redmine Issue: 2337
Affected QGIS version: master
Redmine category:projection_support
Assignee: Magnus Homann
Open attached csv file with delimited text plugin;
Set on the fly CRS transformation and set WGS84 /UTM zone 43N CRS (Projected);
Click on layer name and choose Zoom to layer extent;
Open any shapefile in lon/lat wgs84 projection;
At result QGIS freezes.
The text was updated successfully, but these errors were encountered: