[QGIS-trac] [Quantum GIS] #1085: layer's SRS not recognized (at *first load* only)

Quantum GIS qgis at qgis.org
Tue May 13 08:55:28 EDT 2008


#1085: layer's SRS not recognized (at *first load* only)
---------------------------------------------------------+------------------
   Reporter:  msieczka                                   |              Owner:  nobody       
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 0.9.2
  Component:  Projection Support                         |            Version:  HEAD         
   Keywords:                                             |   Platform_version:               
   Platform:  All                                        |           Must_fix:  Yes          
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 Even if the layer's SRS is not prone to bug #1079, as described in #1079
 comment:2, QGIS fails to recognize the layer's SRS at each *first*, but
 *only at first* load. Example:

 The attached layer is in EPSG:32633, which is in proj4 lingo:

 {{{
 +proj=utm +zone=33 +ellps=WGS84 +datum=WGS84 +units=m +no_defs
 }}}

 the layer's ogrinfo output confirms:

 {{{
 $ ogrinfo -al -so sample_utm33n
 INFO: Open of `sample_utm33n'
       using driver `ESRI Shapefile' successful.

 Layer name: area
 Geometry: Polygon
 Feature Count: 1
 Extent: (564573.435057, 5660045.542715) - (633165.320045, 5739296.325524)
 Layer SRS WKT:
 PROJCS["WGS_1984_UTM_Zone_33N",
     GEOGCS["GCS_WGS_1984",
         DATUM["WGS_1984",
             SPHEROID["WGS_1984",6378137,298.257223563]],
         PRIMEM["Greenwich",0],
         UNIT["Degree",0.017453292519943295]],
     PROJECTION["Transverse_Mercator"],
     PARAMETER["latitude_of_origin",0],
     PARAMETER["central_meridian",15],
     PARAMETER["scale_factor",0.9996],
     PARAMETER["false_easting",500000],
     PARAMETER["false_northing",0],
     UNIT["Meter",1]]
 cat: Real (11.0
 }}}

 *Quit any QGIS instances you running.* Load the shapefile into QGIS.
 Depending on your setting in Settings > Options > Projection, QGIS will
 assign your default SRS or it will prompt you to pick on from the list -
 which means that QGIS fails to recognize the layer's SRS. Interstingly, at
 each subsequent loading of the same layer this problem does not take place
 anymore!

 I suspect this is a QGIS issue. If it's down to GDAL or anything else
 please forward the ticket where it belongs.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1085>
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