Opened 5 years ago

Closed 22 months ago

Last modified 22 months ago

#3317 closed enhancement (fixed)

ST_LineMerge documentation should mention no support for M values

Reported by: pauldzy Owned by: robe
Priority: low Milestone: PostGIS 2.5.0
Component: documentation Version: 2.1.x
Keywords: ST_LineMerge Cc:

Description

ST_LineMerge strips off M values from input geometries. It would be nice if the documentation mentioned this.

SELECT ST_AsEWKT(

ST_LineMerge(

ST_GeomFromEWKT('SRID=0;MULTILINESTRINGM((-29 -27 10,-30 -29.7 20,-36 -31 30,-45 -33 40),(-45 -33 40,-46 -32 50))')

)

);

Change History (7)

comment:1 Changed 5 years ago by strk

Any function implemented by GEOS will strip the M ordinate value, until GEOS adds support for it: https://github.com/libgeos/libgeos/pull/45

comment:2 Changed 3 years ago by pramsey

Milestone: PostGIS 2.1.9PostGIS 2.2.6

comment:3 Changed 3 years ago by robe

strk you have that GEOS ticket closed was it ever committed or was it committed into some test branch

output is still same as of:

POSTGIS="2.4.0 r15853" PGSQL="100" GEOS="3.7.0dev-CAPI-1.11.0 8fe2ce6" PROJ="Rel. 4.9.3, 15 August 2016" GDAL="GDAL 2.2.2, released 2017/09/15" LIBXML="2.7.8" LIBJSON="0.12" LIBPROTOBUF="1.2.1" RASTER
 SELECT ST_AsEWKT(

    ST_LineMerge(

        ST_GeomFromEWKT('SRID=0;MULTILINESTRINGM((-29 -27 10,-30 -29.7 20,-36 -31 30,-45 -33 40),(-45 -33 40,-46 -32 50))')

    )

); 

                       st_asewkt
-------------------------------------------------------
 LINESTRING(-29 -27,-30 -29.7,-36 -31,-45 -33,-46 -32)
(1 row)


Do we need to change something in PostGIS to enable M output o

comment:4 Changed 3 years ago by strk

Nope, branch not merged yet, it is "mvalues" and conflicts with current master.

Nobody seems to be taking care of that work anymore.

comment:5 Changed 3 years ago by robe

Milestone: PostGIS 2.2.6PostGIS 2.5.0

comment:6 Changed 22 months ago by robe

Resolution: fixed
Status: newclosed

In 16686:

Put a note that ST_LineMerge strips M dimension. Provide an example of Z-dimension linestrings
Closes #3317

comment:7 Changed 22 months ago by robe

In 16687:

Fix typo in last commit
References #3317 for PostGIS 2.5.0

Note: See TracTickets for help on using tickets.