Skip to content

Two version of a dataset #779

Answered by rcoup
ankitkariryaa asked this question in Q&A
Discussion options

You must be logged in to vote

You can use kart import --replace-existing — this will load in d_v2.gpkg as a new revision of the same dataset, but identical records from the existing data get (effectively) matched so kart log/kart diff etc will only show the differences.

Note that for this to work properly, you really want a consistent primary key across your import sources. Kart tries to auto-detect this (eg: GeoPackage mandates you have a primary key), but you can also manually specify it via --primary-key.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ankitkariryaa
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants