Bug report #3743

[OsX] Georeferencer: can't set map coords from map canvas, and other odd behavior

Added by William Kyngesburye almost 13 years ago. Updated almost 11 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:Digitising
Affected QGIS version:master Regression?:No
Operating System:OS X Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed
Crashes QGIS or corrupts data:No Copied to github as #:13802

Description

When adding a GCP (Add Point) in the georeferencer window, I can't set the map coordinates from the map canvas. From the Enter Map Coordinates dialog, when I click the From Map Canvas button, a duplicate georeferencer window pops out of the QGIS application icon in the OSX Dock, then minimizes to the Dock, leaving an inactive copy of the georeferencer window. This copy stays on top of (covering) the now-active QGIS map window - I can't resize the window, it doesn't respond to mouse clicks except to move the window, but I can't move the window offscreen because it snaps back so it's completely within the screen.

Even in what I can see of the QGIS map window, if I click anywhere, at least the duplicate window goes away and the minimized window pops back, but no GCP is added, and I can't try to add any more. Also, in the map canvas window, if I pan and zoom around, there is no tool to switch back to to set the GCP map point. The only way to get exit all this is to bring the minimized back and close it, cancelling the georeferencer operation.

OSX 10.6.7, Qt 4.7.2

History

#1 Updated by William Kyngesburye over 12 years ago

  • Assignee deleted (nobody -)
  • Priority changed from Low to High
  • Must fix changed from No to Yes

#2 Updated by William Kyngesburye over 12 years ago

  • Pull Request or Patch supplied set to No

According to a user, docking the georeferencer appears to be a workaround (can't test this right now). After opening the initial Georeferencer window, open Preferences from the QGIS menu (confusing, since it opens georeferencer prefs at this point) and check "Show georeferencer window docked".

#3 Updated by Paolo Cavallini over 12 years ago

Confirmed with current development snapshot

#4 Updated by William Kyngesburye over 12 years ago

I have a new view of the problem - it's not hung up on anything really, but the Enter Map Coordinates dialog is hidden.

After clicking in the map canvas for the destination coordinates, and the georeferencer window pops back out of the Dock, the Enter Map Coordinates is behind both the georeferencer window and the map canvas window. You need to move the two out of the way to get to it and click OK, then you have your GCP and can continue.

So, the first and primary bug is that the Enter Map Coordinates dialog is not reactivated after the Georeferencer window pops out of the Dock. A way to work around this is to first resize the map canvas window so some desktop is visible. When you start the georeferencer, resize its window too so that same desktop area is visible. Then, after clicking the source location in the Georeferencer window and the Enter Map Coordinates dialog first pops up, move that dialog off to that visible area of the screen (it resets its location to the center of the screen each time). Now you can activate the Enter Map Coordinates dialog after clicking the destination coordinate.

Another bug is that when the georeferencer is docked (Qt dock, not OS X dock), the georeferencer preferences (configure georeferencer, not transformation settings) is not available from the georeferencer window (Preferences, strangely, opens the keyboard shortcuts configuration dialog). The only way to get to Configure Georeferencer to undock the georeferencer is when the Enter Map Coordinates window is active.

#5 Updated by Giovanni Manghi over 12 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

#6 Updated by Giovanni Manghi about 12 years ago

  • Crashes QGIS or corrupts data set to No
  • Subject changed from georeferencer: can't set map coords from map canvas, and other odd behavior to [OsX] Georeferencer: can't set map coords from map canvas, and other odd behavior
  • Affected QGIS version set to master

#7 Updated by Giovanni Manghi almost 12 years ago

  • Target version changed from Version 1.7.4 to 35
  • Status info deleted (0)

At a recent training course the issue still confirmed on a Snow Leopard Mac and QGIS 1.7.4: the georeferencer can't set GPCs from canvas. Nevertheless the tool is able to load a previously saved GPC file and perform the georeferencing operation.

#8 Updated by Giovanni Manghi almost 12 years ago

  • Target version changed from 35 to Version 1.8.0

#9 Updated by Olivier redlead over 11 years ago

I'm not sure if the problem is the same (seems simpler here) :

After placing my point on the map canvas, the Georeferencer window reappears but in front of the point-input dialog. This forces me to move the Georeferencer window to be able to confirm the point, which is a little bit annoying.
(1.7.4 Snow Leopard)

But I have no such thing as duplicate or inactive windows...

#10 Updated by Matt Burton-Kelly over 11 years ago

Chiming in with Olivier redlead's issue in 1.7.4 Snow Leopard, but 1) is this issue creep and 2) is this issue a duplicate of #2214 ?

Olivier redlead wrote:

I'm not sure if the problem is the same (seems simpler here) :

After placing my point on the map canvas, the Georeferencer window reappears but in front of the point-input dialog. This forces me to move the Georeferencer window to be able to confirm the point, which is a little bit annoying.
(1.7.4 Snow Leopard)

But I have no such thing as duplicate or inactive windows...

#11 Updated by William Kyngesburye over 11 years ago

  • Priority changed from High to Severe/Regression

Olivier redlead wrote:

I'm not sure if the problem is the same (seems simpler here) :

Yes, that's the same problem.

Matt Burton-Kelly wrote:

Chiming in with Olivier redlead's issue in 1.7.4 Snow Leopard, but 1) is this issue creep and 2) is this issue a duplicate of #2214 ?

That looks like the same issue, now. This one started looking like a different, though similar problem, but is now exactly the same. The original problem was probably just a change in how Qt handled window activation/hiding.

I'd call this a regression.

#12 Updated by Paolo Cavallini over 11 years ago

  • Target version changed from Version 1.8.0 to Version 2.0.0

#13 Updated by William Kyngesburye almost 11 years ago

Now that I'm back up to speed with the Mac build, I can verify that this is still a problem.

I thought about it a bit, and the solution may be simple: make the Enter coordinate dialog (qgsmapcoordsdialog) a floating window instead of a standard dialog window. Then it won't be left behind everything. You may need to move it a little to see the canvas better, but it's small.

I don't know Qt, so a patch would help so I can test this idea.

#14 Updated by Larry Shaffer almost 11 years ago

Should be fixed with commit 4aa013d

Please verify. Works fine here on Mac 10.7.5 with Qt 4.8.4.

#15 Updated by William Kyngesburye almost 11 years ago

Yep, that works for me. Probably should get verification that this doesn't cause a problem on other systems.

#16 Updated by Giovanni Manghi almost 11 years ago

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

Also available in: Atom PDF