Feature request #5221

Write QPJ file when defining CRS for layer

Added by Andy Harfoot about 5 years ago. Updated over 1 year ago.

Status:Closed Start Date:03/22/2012
Priority:Low Due date:
Assigned to:- % Done:

100%

Category:Projection Support
Target version:Future Release - Nice to have
Platform: Resolution:fixed/implemented
Platform version: Pull Request or Patch supplied:No
Status info: Tag:

Description

If a layer is loaded that doesn't have an assigned CRS (eg a Shapefile without a PRJ) then depending on program options settings, QGIS will either prompt for a CRS or assign a default CRS for the dataset. Without saving a copy of the dataset, this CRS information can only then be saved in a QGIS project. It would seem sensible at the point of CRS assignment to a layer to write out a qpj file for the dataset, or present the user with the option to do this.

I thought that the fTools 'Define current projection' command would do this (in the same way that you would define a projection in ArcGIS), but it seems to mirror the behaviour described above.

Is there a situation where it is not desireable to record the CRS of a dataset with the data files, once it has been assigned?
Should this functionality apply whenever the CRS of a layer is altered?

Using QGIS 1.7.4 (411aff6) under Win7 64bit.

History

Updated by Giovanni Manghi about 5 years ago

  • Target version set to Version 2.0.0

Updated by Pirmin Kalberer over 4 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

Updated by Andre Joost about 4 years ago

With Quantum GIS Lisboa, a .prj file will be written by using fTools 'Define current projection' command, but no .qpj file. This should work in most cases, because QGIS writes all essential information in the prj file, like TOWGS84 and EPSG code. So I think this ticket can be closed.

Updated by Médéric RIBREUX over 1 year ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100
  • Resolution set to fixed/implemented

Hello, bug triage...

Ok I am closing it because fTools works...

Also available in: Atom