[Qgis-developer] feedback from today's course: various problems

Marco Hugentobler marco at hugis.net
Thu Dec 3 03:06:40 EST 2009


Hi Giovanni

Please fill 2 tickets:

1. merging of multipolygons

2.  > "Could not commit changes to layer regions
> Errors: ERROR: 1 feature(s) not added.
> SUCCESS: 2 feature(s) deleted."

(probably this is because QgsVectorLayer adds features before deleting.

Regards,
Marco

Am Mittwoch, 2. Dezember 2009 22.30:22 schrieb Giovanni Manghi:
> > - apparently it is not possible to merge two polygons when one of them
> > has an island
> 
> With shapefiles (in qgis?) is not possible, as in not possible merging
> non overlapping or non adjacent polygons.
> 
> This merge operations are possible with postgis and spatialite layers.
> 
> But here the strange thing: I actually noticed that with postgis and
> spatialite layers (type multipolygon) I cannot merge adjacent or
> overlapping polygons...
> 
> the message is:
> 
> "The union operation would result in a geometry type that is not
> compatible with the current layer and therefore is canceled"
> 
> the same message when you try to merge non overlapping or non adjacent
> polygons (or with islands) in shapefiles.
> 
> Moreover in trunk -buth not in 1.3- when I merge in postgis two non
> adjacent polygons, after toggling editing I obtain the following
> 
> "ERROR:  duplicate key value violates unique constraint "regions_pkey""
> 
> and then
> 
> "Could not commit changes to layer regions
> Errors: ERROR: 1 feature(s) not added.
> SUCCESS: 2 feature(s) deleted."
> 
> If the same is done on a spatialite layer only the latter message is
> shown (again, only in trunk, not in 1.3).
> 
> To test I used the layer "regions" you can find into the spatialite
> sample dataset and the layer "world borders" you can find googling the
> net.
> 
> Seems to me something is wrong, let me know if you want me to file a
> ticket.
> 
> cheers
> 
> -- Giovanni --
> 
> 
> 
> 
> 
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
> 

-- 
Dr. Marco Hugentobler
HUGIS - GIS programming and consulting
Webereistr. 66
CH-8134 Zürich
marco at hugis.net
http://homepage.hispeed.ch/hugis/
Technical Advisor QGIS Project Steering Committee


More information about the Qgis-developer mailing list