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

Data catalog: double click on map from different location fails #886

Conversation

lindakarlovska
Copy link
Contributor

Describe the bug
Double click on map from different than current location adds the layer into layer tree but the layer does not exist in current location so it fails to display it.

Expected behavior
I suppose it should inform user that the map is in different location and ask if they want to switch to that mapset.

@lindakarlovska lindakarlovska self-assigned this Aug 9, 2020
@lindakarlovska lindakarlovska added GUI wxGUI related bug Something isn't working gsoc Reserved for Google Summer of Code student(s) labels Aug 9, 2020
Copy link
Contributor

@mlennert mlennert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch ! Does this issue only arise through double-click ?

However, I'm not sure it is a good idea to allow the user to switch directly to the other location and the display the map.

This raises the more general question, linked to new central role of the data catalog, of how to handle the display of maps from different locations in the same Display window. IMHO, this should be avoided, and the user clearly informed.

So, in the specific issue raised here, IMHO the user should just be informed that the map is in a different location and cannot be displayed. Possibly we could inform the user on how to switch locations.

@petrasovaa petrasovaa added this to PRs in progress in New GUI Startup via automation Aug 10, 2020
@petrasovaa
Copy link
Contributor

That's a good point of course, we discussed this with @wenzeslaus and for now let's go with @mlennert's suggestion. It is also consistent with the fact, you can't display layer from other location through context menu. For future (not this PR) it would make sense to have a custom dialog allowing not just switching to that mapset but also reprojection.

…h do not allow to display the map contained by the different than current location.
Comment on lines 586 to 590
"The map is not in the current location and cannot be displayed."
"\n\n"
"To view this map, switch to the selected mapset."
),
caption=_("Unable to display the map"),
Copy link
Contributor

@petrasovaa petrasovaa Aug 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make the message little bit more specific:
"Map <mymap@mapset> is not in the current location and therefore cannot be displayed. \n\n To display this map switch to mapset <mapset> first."

@petrasovaa petrasovaa merged commit b423257 into OSGeo:master Aug 12, 2020
New GUI Startup automation moved this from PRs in progress to Done Aug 12, 2020
@neteler neteler added this to the 8.0.0 milestone Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gsoc Reserved for Google Summer of Code student(s) GUI wxGUI related
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

[Bug] Data catatalog: double click on map from different location fails
4 participants