Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong scale displayed in map canvas #14473

Closed
qgib opened this issue Nov 22, 2011 · 18 comments
Closed

wrong scale displayed in map canvas #14473

qgib opened this issue Nov 22, 2011 · 18 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Nov 22, 2011

Author Name: Regis Haubourg (@haubourg)
Original Redmine Issue: 4560

Assignee: Giuseppe Sucameli


Hi ,
I upgraded Qgis 1.1 to 1.7.2 this morning. There is a major bug in map scale display in map canvas. It displays enormous numbers. I'm under Windows XP. I used standalone installer. project projection and data are epsg 2154 (France Lambert 93).
Side effect of this, all visibility levels are misinterpreted by qgis.

In my opinion, this is a critical bug, if confirmed, and requires an update of installers recently launched.

Régis


@qgib
Copy link
Contributor Author

qgib commented Nov 22, 2011

Author Name: Regis Haubourg (@haubourg)


I upgraded 1.7.1 to 1.7.2 not "1.1 to 1.7.2

@qgib
Copy link
Contributor Author

qgib commented Nov 22, 2011

Author Name: Gary Sherman (@g-sherman)


Filed under wrong project. Moved to QGIS


  • project_id was changed from 4 to 17
  • assigned_to_id removed Gary Sherman

@qgib
Copy link
Contributor Author

qgib commented Nov 22, 2011

Author Name: Regis Haubourg (@haubourg)


Sorry for that Gary. Régis

@qgib
Copy link
Contributor Author

qgib commented Nov 22, 2011

Author Name: Regis Haubourg (@haubourg)


The bug seems related to projection behaviour.
When i switch project projection to IGN:LAMB93 (ID10089), scale is OK. When I go back to epsg 2154, wrong scale comes back.

EPSG:2154 is the old epsg definition for lambert 93. Datas I use are defined in EPSG:2154.
If i reproject on the fly to 4326 WGS84, scale stays wrong. If I switch to IGN:LAMB93, then switch to 4326, scale is OK..

régis

@qgib
Copy link
Contributor Author

qgib commented Nov 22, 2011

Author Name: Richard Duivenvoorde (@rduivenvoorde)


seems a small dataset, can you make it available to this issue?

@qgib
Copy link
Contributor Author

qgib commented Nov 22, 2011

Author Name: Regis Haubourg (@haubourg)


Here comes a dataset that reproduce the bug on my computer.
Régis


  • 3564 was configured as lacs.zip

@qgib
Copy link
Contributor Author

qgib commented Nov 22, 2011

Author Name: Richard Duivenvoorde (@rduivenvoorde)


I've installed 1.7.2 on a fresh XP here

Loading your data in it, makes it a epsg:4326 project with your data loaded as epsg:2154 (which is ok). At that moment the scale shows huge numbers (as you show),

BUT after setting the project crs to epsg:2154 also AND setting the units to meters (were degrees with me, don't know why. epsg:2154 is a projected crs isn't it?), the scale seems ok to me?

@qgib
Copy link
Contributor Author

qgib commented Nov 22, 2011

Author Name: Regis Haubourg (@haubourg)


I think you found the bug. It seems that Qgis keep decimal degrees as units in memory, when on the fly reprojection activated. User interface is greyed out and meters are checked as units on screen.

Playing with those parameters (activating meters units / checking on the fly reprojection) generates Qgis crashes! Something strange lying under.

@qgib
Copy link
Contributor Author

qgib commented Nov 22, 2011

Author Name: Richard Duivenvoorde (@rduivenvoorde)


yes, confirmed here both on a machine running XP with osgeo4w (and upgrading from 1.7.0 to 1.7.2) and a machine running XP where I installed a fresh 1.7.2 via the standalone installer:

  • as soon as you have some 'recently used coordinate reference systems', and you try to select one in the crs tab of the Project properties, go to the first tab and then back to the crs tab qgis just crashes. In the event viewer there is only a message about a crash in a qt-treewidget

  • on the osgeo4w I also installed the dev/nightly version, and that one does NOT have the problem


  • fixed_version_id was configured as Version 1.7.2

@qgib
Copy link
Contributor Author

qgib commented Nov 22, 2011

Author Name: Giuseppe Sucameli (@brushtyler)


The problem was fixed in master by 62ed7ef.

@qgib
Copy link
Contributor Author

qgib commented Nov 22, 2011

Author Name: Anita Graser (@anitagraser)


I can confirm the crashes Richard described in 1.7.2 on Ubuntu.

@qgib
Copy link
Contributor Author

qgib commented Nov 23, 2011

Author Name: Werner Macho (Werner Macho)


applied patch 62ed7ef into release-1_7 to prepare for 1.7.3 release
gotta take a look if is is already fixed in upcoming 1.8
closing this for now as it works (for me) after applying the patch


  • status_id was changed from Open to Closed
  • assigned_to_id was configured as Werner Macho
  • resolution was changed from to fixed

@qgib
Copy link
Contributor Author

qgib commented Nov 24, 2011

Author Name: Giuseppe Sucameli (@brushtyler)


Anita Graser wrote:

I can confirm the crashes Richard described in 1.7.2 on Ubuntu.

And I fixed that crash in master by commit 98d5a76

@qgib
Copy link
Contributor Author

qgib commented Nov 24, 2011

Author Name: Giuseppe Sucameli (@brushtyler)


Werner Macho wrote:

applied patch 62ed7ef into release-1_7 to prepare for 1.7.3 release
gotta take a look if is is already fixed in upcoming 1.8
closing this for now as it works (for me) after applying the patch

You should backport also commit c0dc60b, both this and mine (98d5a76) fixed crashes in select projection dialog due to commit 2034d59 (a very dangerous change because it's into a showEvent method: a one-line change has required 2 other commit to work well again!).

@qgib
Copy link
Contributor Author

qgib commented Nov 24, 2011

Author Name: Giuseppe Sucameli (@brushtyler)


I hope that removing ticket resolution will re-open the ticket.


  • resolution was changed from fixed to

@qgib
Copy link
Contributor Author

qgib commented Nov 24, 2011

Author Name: Giuseppe Sucameli (@brushtyler)


No, no way to reopen the ticket... Ok, I'm going to open a new ticket for the crashes.


  • resolution was changed from to fixed

@qgib
Copy link
Contributor Author

qgib commented Nov 24, 2011

Author Name: Werner Macho (Werner Macho)


  • resolution was changed from fixed to worksforme
  • assigned_to_id was changed from Werner Macho to Giuseppe Sucameli

@qgib
Copy link
Contributor Author

qgib commented Dec 4, 2011

Author Name: Giuseppe Sucameli (@brushtyler)


Now this ticket is really fixed in release-1_7 branch, commit ids:
05e70ff
70e2dc3

Thanks macho for the backports!


  • resolution was changed from worksforme to fixed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority labels May 24, 2019
@qgib qgib added this to the Version 1.7.2 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority
Projects
None yet
Development

No branches or pull requests

1 participant