Opened 16 years ago

Last modified 13 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)

Change History (1)

by psmith, 16 years ago

Attachment: linemerge.patch added

Patch to add line_merge to geos geometries, with test case

Note: See TracTickets for help on using tickets.
Back to Top