[QGIS-trac] Re: [Quantum GIS] #2337: Projection issue: freezes when reprojecting a csv file

Quantum GIS qgis at qgis.org
Thu Mar 3 05:20:07 EST 2011


#2337: Projection issue: freezes when reprojecting a csv file
---------------------------------------------------------+------------------
   Reporter:  dr                                         |              Owner:  nobody       
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.6.0
  Component:  Projection Support                         |            Version:  Trunk        
   Keywords:                                             |   Platform_version:               
   Platform:  All                                        |           Must_fix:  No           
Status_info:  0                                          |  
---------------------------------------------------------+------------------

Comment(by aghisla):

 Replying to [comment:4 gislab]:
 > Replying to [comment:3 lutra]:
 > > When importing csv files it would be enough to have the plugin ask for
 the CRS(?).
 > I think this would be a good solution.

 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

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2337#comment:9>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list