Open MattReimer opened 2 years ago
@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: https://github.com/Riverscapes/RiverscapesXML/pull/375#issuecomment-964343723
This may have a similar solution to ArcRave projects with the same name. https://github.com/Riverscapes/RaveAddIn/issues/175
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.