[postgis-users] ST_SimplifyPreserveTopology and ST_Simplify does not preserve measures

Egil Möller egil at skytruth.org
Thu Feb 7 06:59:12 PST 2013


It seems like ST_SimplifyPreserveTopology and ST_Simplify does not
preserve measure coordinates and mangles my linestringm to an ordinary
linestring. Why is that? It seems like a rather random limitation!

mydb=> select ST_AsEWKT(line) from ais_path limit 1;
 SRID=4326;LINESTRINGM(102.647916667 5.63022166667
1357100014,102.647916667 5.63022166667 1357446366)

mydb=> select ST_AsEWKT(ST_SimplifyPreserveTopology(line, 1000)) from
ais_path limit 1;
 SRID=4326;LINESTRING(102.647916667 5.63022166667,102.647916667
5.63022166667)

Best regards,
Egil


More information about the postgis-users mailing list