-
Notifications
You must be signed in to change notification settings - Fork 0
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
Layers cannot have the same name #66
Comments
@MattReimer I just checked some projects in WebRAVE and QRAVE and these "temporary" fixes are forcing the desired behavior for the end-user. I like what you're saying here about this not being the ideal final solution, but for our short term problems, this is great. Thanks! |
I thought I posted this, but apparently I did not: |
This may have a similar solution to ArcRave projects with the same name. |
FWIW QRiS will never experience this problem because it tags each map layer with the in-memory QRiS object with which it is associated. This allows recursion to then find the map layer by comparing each layer's tag with the same in-memory object. Names are never checked. The downside of this memory-based matching is that I don't think that we can use QGZ files with QRiS because the QRiS memory addresses will not only change between sessions, but I'm not even sure if QGIS will repopulate these in-memory objects on reload. |
Sometimes we have a case like this in the business logic:
In such cases QRave will simply refuse to load the second layer.
It seems like we're name matching the layers when we add them to the map so we should really do something more to make sure we have uniqueness.
For now we'll just tell people not to do this (looking at you @joewheaton)
For the BRAT case I've added " (All)" to the end of each layer name. It's an imperfect fix but it buys us time to solve this on our own schedule for the next version.
The text was updated successfully, but these errors were encountered: