[postgis-users] ST_UNION drops M coordinate
Satish Murthy
satish_m at hotmail.com
Wed Aug 5 10:22:01 PDT 2009
When I do this (notice the second ST_COLLECT):
select ST_AsEWKT (ST_COLLECT (geom)) from (
select (ST_DUMP(geom)).geom from (select p_geom as geom from (
select ST_COLLECT (geom_col, st_GeomFromEWKT('Point(1 -1 0 10)')) as
p_geom from tab) a
)as b ) as c
I get:
"MULTIPOINT(71.1 -42.31 10 10,1 -1 0 10,1 -1 0 10)"
This is fine, except that "1 -1 0 10" gets repeated.
BUT---
When I do (I use ST_UNION here):
select ST_AsEWKT (ST_COLLECT (geom)) from (
select (ST_DUMP(geom)).geom from (select p_geom as geom from (
select ST_UNION (geom_col, st_GeomFromEWKT('Point(1 -1 0 10)')) as p_geom
from tab) a
)as b ) as c
I get this:
"MULTIPOINT(1 -1 0,71.1 -42.31 10)"
No repetition, but the M coordinate is missing.
Any pointers on what's going wrong here?
_________________________________________________________________
Sports, news, fashion and entertainment. Pick it all up in a package called MSN India
http://in.msn.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20090805/f30c0481/attachment.html>
More information about the postgis-users
mailing list