geo:linestring-concat( $linestrings as cts:linestring* ) as cts:linestring
Construct a linestring by concatenating the vertices of the input linestrings, in order.
Parameters | |
---|---|
linestrings | The linestrings to be concatenated. |
xquery version "1.0-ml"; import module namespace geo = "http://marklogic.com/geospatial" at "/MarkLogic/geospatial/geospatial.xqy"; geo:linestring-concat(( cts:linestring((cts:point(1,1),cts:point(2,2),cts:point(3,3))), cts:linestring((cts:point(3,3),cts:point(4,4),cts:point(5,5))) )) ==> A cts:linestring similar to the following: cts:linestring("LINESTRING(1 1,2 2,3 3,4 4,5 5)")