[QGIS-trac] Re: [Quantum GIS] #3529: Default CRS does not work as expected

Quantum GIS qgis at qgis.org
Tue Mar 1 04:03:47 EST 2011


#3529: Default CRS does not work as expected
------------------------------------------------+---------------------------
   Reporter:  benoitrsa                         |              Owner:  nobody       
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.7.0
  Component:  Projection Support                |            Version:  Trunk        
   Keywords:  CRS,Projection,load,default       |   Platform_version:  Win7, XP     
   Platform:  Windows                           |           Must_fix:  Yes          
Status_info:  0                                 |  
------------------------------------------------+---------------------------

Comment(by benoitrsa):

 Sorry for delays. I was doing some more tests.

 Ok, some more info.

 Please get the file at [1] (too big to attach on this message) and unzip
 it into a local folder.
 Two files:
 - google-satellite-z15-1-28022011-091106.tif a GeoTIFF raster file,
 georeferenced in WGS84 UTM30N (EPSG:32630)
 - GDAL_info.txt: the information on the above file given by GDAL.

 Now:
 1) open a new QGIS project
 2) set the project CRS to WGS84 - UTM30N (EPSG:32630)
 3) in the Settings/Options dialog, CRS tab, select option "Prompt for
 CRS".
 4) load the provided GeoTIFF file into the project
 5) you are asked to define its CRS. This is wrong and should not happen!

 QGIS up to verion 1.6 knew how to read the internal CRS of a raster/vector
 file. Not anymore!

 Also note that the option "Prompt for CRS" should *only be activated* if
 the layer to be loaded does not have a CRS (as the text in the dialog box
 says). In 1.7, it is ALWAYS activated whatever the presence or not of a
 CRS in the loaded layer, at least for GeTIFF files.

 For the shapefile problem described previously it seems to be an entirely
 different issue: QGIS does not recognise the *.prj file anymore and needs
 its own *.qpj file instead in order to recognise that a shapefile has a
 CRS. Wrong again, but this is another issue.


 [1] http://www.bc-consult.com/xchange/CRS_example.zip (890 KB)

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/3529#comment:2>
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