Opened 16 years ago
Last modified 13 years ago
#10222 closed
[patch] Add line_merge to GEOS geometries under django.contrib.gis — at Version 2
Description (last modified by ) ¶
In the C API of GEOS, GEOSLineMerge
returns a new geometry that is the result of having merged contiguous line strings in a geometry collection or multi-line string geometry.
Example:
>>> geomcoll = fromstr('MULTILINESTRING((1 1, 3 3), (3 3, 4 2))') >>> print geomcoll.line_merge() LINESTRING(1 1, 3 3, 4 2)
Change History (3)
by , 16 years ago
Attachment: | linemerge.patch added |
---|
comment:1 by , 16 years ago
milestone: | → 1.1 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 16 years ago
Description: | modified (diff) |
---|
Now in the gis-1.1 mercurial repo, see http://geodjango.org/hg/gis-1.1/rev/87b34dce202d.
It is now a merged
property that is only available on LineString
and MultiLineString
instances.
Note:
See TracTickets
for help on using tickets.
Patch to add line_merge to geos geometries, with test case