Closed CoryAlbrecht closed 4 years ago
@CoryAlbrecht using your sample data worked without issues with qgis master/linux and pgsql 10 and postgis 2.4.
Geometry collapsed due to intersection avoidance.
are you sure you are not pasting into a layer that has the (advanced) snapping option "avoid intersection" active and by chance the pasted polygon is overlapped to an existing one?
@gioman Like I said, it is not over top of anything else in the same layer. This what my advanced snapping options kook like .
I upped the snapping from 15 pixels to 30 when I got 4K monitors to work with, but that was a year ago and this is a recent problem.
@gioman Like I said, it is not over top of anything else in the same layer. This what my advanced snapping options kook like
please attach a dump of your postgis table from where the feature is being copied and the sql to recreate the target table. The json you posted here is not enough to replicate the issue.
Closing for lack of feedback. Please reopen if necessary.
When trying to pas a feature into a PostGIS layer that was copied from another PostGIS layer, the pasting fails.
First, a message banner pops up on top of the map canvas saying that pasting 1 feature was successful. When that disappears, an error message appears saying:
Layer timeline_level1: PostGIS error while adding features: ERROR: null value in column "geom" violates not-null constraint DETAIL: Failing row contains (null, null, f3aecfe1-f0b5-4e62-acbd-a88c9191f2d7, 0a1afc2c-5498-4625-bdf4-ac5a5d9d9733, {}, {}, null, null, null, null, null, 0.085, null, null, {}, {}, {}, {}, t).
However, Menu→Vector→Geometry Tools→Check Validity… finds no errors. Neither does the Processing Tools Check validity. Using Processing Tools Fix geometry and copying the feature from the scratch layer created still has the same problem when pasting, and is identical to the original (when pasting as GeoJSON from QGIS to Vim and using diff -u).
The feature being pasted is attached in geojson format feature.zip
In the console output there's one line that says: Paste features : 1 features were successfully pasted. Geometry collapsed due to intersection avoidance.
Except the geometry has been validated as good, it's not over top of any other feature or even near anything else on teh canvas. There's no clipping layers or anything like that.
QGIS console output when doing Ctrl+V