Bug report #5257

fTools 'Define current projection' problem

Added by elcuco - over 7 years ago. Updated over 2 years ago.

Status:Closed
Priority:Normal
Assignee:Alexander Bruy
Category:Processing/QGIS
Affected QGIS version:master Regression?:
Operating System: Easy fix?:
Pull Request or Patch supplied:No Resolution:fixed
Crashes QGIS or corrupts data:No Copied to github as #:14991

Description

Hi,
In QGIS 1.7.4, after I loaded a shapefile without a .prj file, I tried to use the fTools 'Define current projection' to creat it. I choose the CRS (I do not import it from another layer) and hit the OK button. But QGIS gives back this messege: "Output spatial reference system is not valid"
I've tried in several computers with Windows XP and 7 and all of them gives the message.
I guess this is a bug, right?
Best regards

Pedro

toponimia.zip (11.7 KB) elcuco -, 2012-04-02 07:43 AM

Associated revisions

Revision 51ff2b54
Added by Alexander Bruy over 7 years ago

correctly handle user defined CRSes (fix #5257)

History

#1 Updated by Alexander Bruy over 7 years ago

  • Status changed from Open to Closed

#2 Updated by Alexander Bruy over 7 years ago

  • Resolution set to fixed

#3 Updated by Filipe Dias over 7 years ago

This is not fixed in QGIS 1.7 and QGIS Master (downloaded today)

#4 Updated by Giovanni Manghi over 7 years ago

  • Status changed from Closed to Feedback
  • Resolution deleted (fixed)

Filipe Dias wrote:

This is not fixed in QGIS 1.7 and QGIS Master (downloaded today)

can you please attach a sample to allow further tests? thanks

#5 Updated by Alexander Bruy over 7 years ago

Filipe Dias wrote:

This is not fixed in QGIS 1.7 and QGIS Master (downloaded today)

Not reproducible here with latest master. Please provide sample dataset and step-by-step instruction.

#6 Updated by elcuco - over 7 years ago

Here it goes the shapefile that i'm trying to get fTools 'Define current projection' to work. The CRS that I whant is EPSG 20790. I'm trying to get it to work on Windows.

#7 Updated by Alexander Bruy over 7 years ago

elcuco - wrote:

Here it goes the shapefile that i'm trying to get fTools 'Define current projection' to work. The CRS that I whant is EPSG 20790. I'm trying to get it to work on Windows.

Works here with this data

#8 Updated by Giovanni Manghi over 7 years ago

I have noticed that sometimes some old "configuration" of ftools remain stored in the .qgis folder, and removing it makes things work. Please give it a try (eventually to a backup the same folder to save installed plugins).

#9 Updated by elcuco - over 7 years ago

Giovanni Manghi wrote:

I have noticed that sometimes some old "configuration" of ftools remain stored in the .qgis folder, and removing it makes things work. Please give it a try (eventually to a backup the same folder to save installed plugins).

Well, this error occurred in several new and clean installations of QGIS 1.7.4 in windows computers.

#10 Updated by Giovanni Manghi over 7 years ago

Well, this error occurred in several new and clean installations of QGIS 1.7.4 in windows computers.

it depends on how "clean" was the installation, it sometimes not enough to remove the QGIS program, it is needed to swipe the .qgis folder and/or the registry entries. It doesn't mean that is the case, but for instance minutes ago I fixed a ftools thing by removing the .qgis folder.

#11 Updated by elcuco - over 7 years ago

Giovanni Manghi wrote:

Well, this error occurred in several new and clean installations of QGIS 1.7.4 in windows computers.

it depends on how "clean" was the installation, it sometimes not enough to remove the QGIS program, it is needed to swipe the .qgis folder and/or the registry entries. It doesn't mean that is the case, but for instance minutes ago I fixed a ftools thing by removing the .qgis folder.

It was the first time QGIS was installed in those computers. The same error occurred in 7 computers. It's, at least, odd, don't you think?

#12 Updated by Paolo Cavallini over 7 years ago

  • Target version changed from Version 1.7.4 to Version 1.8.0

Confirmed here, current trunk on debian testing

#13 Updated by zirneklitis - over 7 years ago

Confirmed (Fedora 14 x 64 / 1.9.90-Alpha, 927dcbd). The configuration files were removed before opening QGIS (~/.qgis, ~/.config/QuantumGIS).

#14 Updated by Alexander Bruy over 7 years ago

  • Status changed from Feedback to Closed

Fixed in changeset commit:"f4460cb82154b0b5612e8b61c335b7fbecfda13d".

#15 Updated by Giovanni Manghi over 7 years ago

  • OS version deleted (XP, 7)
  • Affected QGIS version changed from 1.7.4 to master
  • Status changed from Closed to Reopened
  • Operating System deleted (Windows)

Alexander Bruy wrote:

Fixed in changeset commit:"f4460cb82154b0b5612e8b61c335b7fbecfda13d".

It still doesn't work with custom CRSs. Works with CRSs in the internal QGIS DB.

#16 Updated by Alexander Bruy over 7 years ago

  • Status changed from Reopened to Closed

#17 Updated by Alexander Bruy over 7 years ago

  • Resolution set to fixed
  • Assignee set to Alexander Bruy

#18 Updated by Giovanni Manghi over 2 years ago

The "ftools" category is being removed from the tracker, changing the category of this ticket to "Processing/QGIS" to not leave the category orphaned.

Also available in: Atom PDF