#10222: [patch] Add line_merge to GEOS geometries under django.contrib.gis
-------------------------------+--------------------------------------------
          Reporter:  psmith    |         Owner:  jbronn        
            Status:  assigned  |     Milestone:  1.1           
         Component:  GIS       |       Version:  1.0           
        Resolution:            |      Keywords:  geos linemerge
             Stage:  Accepted  |     Has_patch:  1             
        Needs_docs:  0         |   Needs_tests:  0             
Needs_better_patch:  0         |  
-------------------------------+--------------------------------------------
Old 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)
> }}}

New 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)
 }}}

Comment (by jbronn):

 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.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10222#comment:2>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to