[postgis-users] st_union drops M values

Lauri Kajan lauri.kajan at gmail.com
Mon Nov 21 02:53:39 PST 2011


Hi all,

I aked this before but no answers. Does anybody have any ideas?

I'm trying to make a union of geometries with M-values.
But ST_Union seems to drop all the M-values.

Or am I doing something wrong?
Here is a sample query:
 select st_asewkt(st_union('LINESTRINGM(0 0 0, 1 1
1)'::geometry,'LINESTRINGM(1 1 1, 2 2 2)'::geometry));
Output of this is
"MULTILINESTRING((0 0,1 1),(1 1,2 2))"

Same happens with 4D LINESTRING geometries. Output is only XYZ.

Is there a other way to accomplish what I want or is this a bug?



Thanks

-Lauri



More information about the postgis-users mailing list