koordinates / kart-qgis-plugin

A QGIS integration plugin for Kart repositories. Distributed version-control for geospatial and tabular data.
https://kartproject.org
GNU General Public License v2.0
37 stars 16 forks source link

Handling duplicate name/conflict #86

Open antoniolocandro opened 2 years ago

antoniolocandro commented 2 years ago

if the kart repository already includes a layer that happens to have the same name as one you are importing the plugin shows only there is conflict but no way to handle it, ideally it would allow user to specify a non-conflicting name if wanted or cancel the operations

Steps:

  1. Add a layer to the dataset from any source for example 'airportheliport'
  2. Load a GPKG that also has a source 'airportheliport'

image

pfw commented 2 years ago

If you currently have a need to have two versions of the same dataset in a repo you can use the command line with something similar to this:

kart import postgresql://username:@localhost/data_gov_au mdb_boundaries:another

Which will import the mdb_boundaries table as a dataset with the name another. You can also import a GPKG in a similar way.

kart import GPKG:/Volumes/GIS/data.gov.au/mdb-boundaries.gpkg mdbboundaries:another

We'll also look at how we can best support that as an option in the plugin.