Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a vector layer stored in PostGIS. I split several lines in the layer and simplified others by removing vertices.

When I tried to save the changes to the layer I got postgres more postgres errors about duplicate gids.

Is this a result splitting features and if so how do I get around the issue?


share|improve this question

Ah, trap for young players (or perhaps that should be new players ;)

After more poking around I realised that while cut and pasting line segments between layers on occasions I had forgotten to select the new layer before pasting and thereby duplicating the feature in the original layer. Hence the duplicate gids.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.