[Qgis-user] problems with 'geometry creator'
Nyall Dawson
nyall.dawson at gmail.com
Tue Jun 13 02:33:07 PDT 2017
On 13 June 2017 at 02:53, DelazJ <delazj at gmail.com> wrote:
> Btw, giving a deeper look to the help provided in the code, I wonder if
> "geom_to_wkt(line_merge(geom_from_wkt('MULTILINESTRING((0 0, 1 1),(1 1, 2
> 2))')))"
> and especially MULTILINESTRING((0 0, 1 1),(1 1, 2 2))') is a valid
> multilinestring (a multipart feature whose parts already touch themselves).
> Shouldn't it be two separate linestrings?
That's exactly what line_merge does - it takes a single
multilinestring geometry and any touching parts are converted to a
single connected linestring.
> Also, in the application function help line_merge(geometry) should instead
> be line_merge(geometry1, geometry2,.., geometry n), shouldn't it?
No, because it takes just a single multilinestring input, not multiple inputs.
Nyall
More information about the Qgis-user
mailing list