Ticket #2706 (closed feature: fixed)
WKT.write(collection) fails
| Reported by: | strk | Owned by: | tschaub |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.11 Release |
| Component: | Format.WKT | Version: | 2.9 |
| Keywords: | Cc: | ||
| State: |
Description
It seems to me that WKT.write() fails when passed a Feature whose geometry is a Geometry.Collection. This was tested adding such a testcase in WKT.html.
Won't have time shortly for working on a patch so I tought to file it to avoid forgetting about the issue.
Oh, since I looked at it, the problem lies in lack of a 'geometrycollection' element in the 'extract' property of WKT class. Most likely portion of the code in 'write' should be put in its own function (ie: extractGeometry) to reuse it from the 'geometrycollection' extracter in a recursive manner.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

