Opened 17 years ago
Last modified 14 years ago
#10222 closed
[patch] Add line_merge to GEOS geometries under django.contrib.gis — at Initial Version
| Reported by: | psmith | Owned by: | nobody |
|---|---|---|---|
| Component: | GIS | Version: | 1.0 |
| Severity: | Keywords: | geos linemerge | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
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)
Note:
See TracTickets
for help on using tickets.
Patch to add line_merge to geos geometries, with test case