Opened 13 years ago

Closed 13 years ago

#3770 closed patch (fixed)

Cannot add parts to multipoint or multilinestring feature

Reported by: mayeulk Owned by: jef
Priority: minor: annoyance Milestone: Version 1.7.0
Component: Vectors Version:
Keywords: Cc: pcav
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

Not all buttons in the advance editing toolbar are available for all geometry types: you cannot add parts to multipoint or multilinestring feature, but can with multipolygons. Tested with r 15754 and postgis as a backend:

  • You cannot add a point to a multipoint feature (you can only add a new feature). You can move or delete one of its parts . You can copy a multipoint feature and paste it as a new multipoint feature.
  • You cannot add a part to a multiline string (you can only add a new feature). You can move or delete one of its parts. You can copy a

multiline feature and paste it as a new multiline feature.

  • You can add and delete parts to multipolygon. (As a minor note, to

delete a part of a multipolygon. you have to click on one of its vertice, which *might* be a problem if you have a set of contiguous (parts of) polygons).

As a side point, note that it is the responsibility of the backend to generate new id's when copy/pasting to avoid duplicates, e.g. with: ALTER TABLE test_multipoints

ADD CONSTRAINT test_multipoints_pkey PRIMARY KEY(id);

otherwise duplicated id's are created (which does not prevent most functions to work apparently).

I consider this as an annoyance more than a major bug because you can always create more features and duplicate the attributes, potentially with a field like relation_id (the OSM way from a conceptual point of view). If two points belong to the same relation (should be a multipoint), then they have the same relation_id. Still, if you already have a database with multi* geometries and *must* keep this structure, fixing this bug will help.

Attachments (1)

multipart.diff (86.3 KB ) - added by jef 13 years ago.
patch to add support for adding parts to points and lines

Download all attachments as: .zip

Change History (4)

by jef, 13 years ago

Attachment: multipart.diff added

patch to add support for adding parts to points and lines

comment:1 by jef, 13 years ago

Type: bugpatch

comment:2 by jef, 13 years ago

Owner: set to jef
Status: newassigned

comment:3 by jef, 13 years ago

Resolution: fixed
Status: assignedclosed

applied in commit:b8642a93

Note: See TracTickets for help on using tickets.