Bug report #2326

Define Current Projection in fTools fails

Added by Micha Silver almost 15 years ago. Updated over 14 years ago.

Status:Closed
Priority:Low
Assignee:cfarmer -
Category:Python plugins
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:12386

Description

When adding a shapefile which does not have a .prj attached, QGIS determines the CRS for that layer either by the Global CRS (in Settings->Options->CRS) or by the user choosing the CRS.
In order to then add the correct *.prj file to that shapefile, the fTools "Define Current Projection" should be used. However, the tool fails with the error: "Identical output coordinate reference system".
In other words, you *cannot
create a *.prj for a shapefile when the CRS chosen on loading the shapefile is the same CRS that should be saved to the *.prj.

Correct behavior should be:

Once the shapefile is loaded (and it's CRS is known to QGIS by either of the above options) the "Define current projection" should just output a correct *.prj based on the CRS chosen by the user, with nothing more than an information window saying:

"Creating a *.prj file for xxxx.shp based on CRS...."

with an OK-Cancel button.

History

#1 Updated by Alexander Bruy over 14 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

Seems this fixed in

Also available in: Atom PDF