Opened 13 years ago

Last modified 13 years ago

#3604 new bug

paste doesn't convert geometry or give error on incompatible geometry

Reported by: kyngchaos Owned by:
Priority: major: does not work as expected Milestone: Version 1.7.0
Component: Vectors Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

For example, I'm working in a PostGIS multipolygon layer. I copy a polygon (not multi) from a shapefile and paste it into the postGIS layer. QGIS doesn't give me a warning or convert the polygon to a multipolygon, and editing works fine on the feature. But when I try to save the PostGIS layer, QGIS now gives me an error that there is an invalid geometry type and a feature wasn't saved (the one I pasted in).

I would like it to convert the polygon to multipolygon, and other simple conversions. But at least QGIS should refuse to paste and give a warning about a geometry mismatch.

Change History (3)

comment:1 by kyngchaos, 13 years ago

Hmm, it looks like even copying from a multipolygon layer (both shapefile and another PostGIS layer) is not working. I still get invalid geometry.

comment:2 by kyngchaos, 13 years ago

Now at least copying from a similar postgis multipolygon layer seems to be working. Still can't copy from the shapefile.

comment:3 by kyngchaos, 13 years ago

Definitely something with copying from a shapefile to postgis. I converted the shapefile to a multipolygon postgis layer outside QGIS, added that layer to QGIS, and copy from that to my postgis layer works.

Note: See TracTickets for help on using tickets.