Quantcast
Viewing all articles
Browse latest Browse all 2341

Closed Task: Shape.Create should insert a part for polygons and polylines [19970]

Polylines and polygons must have at least one part. But Shape.Create method doesn't insert the part, which leads to additional coding by the users to insert the part manually.
Probably it's better:
1) to insert this part in Shape.Create in case polyline or polygon type was specified;
2) make changes to Shape.InsertPart routine. In case user inserts a part which starts from the same point as the existing one, the routine will return true (such part does exist) but won't insert it for the second time. In such a manner compatibility should be preserved. I believe this additional check will be useful in other situations as well.
In case there are objections against such changes - let me know.
Thanks.
Comments: It was implemented quite some time ago. v.4.9 has it for sure.

Viewing all articles
Browse latest Browse all 2341

Trending Articles