Riverscapes / gcd

Geomorphic Change Detection For Windows
http://gcd.riverscapes.xyz
GNU General Public License v3.0
25 stars 5 forks source link

Exporting GCD Project with linear extractions with same name #372

Closed philipbaileynar closed 4 years ago

philipbaileynar commented 4 years ago

We don't force unique names for linear extractions in GCD. If you have two linear extractions with the same name and then export the project to the cross section viewer you get a UNIQUE CONSTRAINT FAILED error because the two linear extractions have the same name.

Should GCD force unique linear extraction names?

Action: check for duplicate names before attempting to export the database.

philipbaileynar commented 4 years ago

I ended up fixing this within the Cross Section Viewer instead of changing the GCD. The Cross Section Viewer now ensures unique names for each linear extraction at the point that it attempts to build the database during import.

Fixing it on the cross section viewer will ensure that any legacy GCD projects will also work.