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

Sandro Santilli strk at keybit.net
Mon Feb 11 07:29:48 PST 2013


On Tue, Feb 12, 2013 at 01:16:12AM +1000, Egil Möller wrote:
> Some upgrades later...
> 
> POSTGIS="2.0.0 r9605" GEOS="3.3.3-CAPI-1.7.4" PROJ="Rel. 4.8.0, 6 March
> 2012" GDAL="GDAL 1.9.2, released 2012/10/08" LIBXML="2.7.8"
> LIBJSON="UNKNOWN" TOPOLOGY RASTER
> 
> iuufishing=> select st_astext(st_SimplifyPreserveTopology('LINESTRINGM(0
> 0 0, 1 1 1, 10 10 10)'::geometry, 1));
>        st_astext      
> -----------------------
>  LINESTRING(0 0,10 10)
> (1 row)
> 
> iuufishing=> select st_astext(st_simplify('LINESTRINGM(0 0 0, 1 1 1, 10
> 10 10)'::geometry, 1));
>            st_astext          
> -------------------------------
>  LINESTRING M (0 0 0,10 10 10)
> (1 row)
> 
> 
> So SimplifyPreserveTopology never got fixed?

SimplifyPreserveTopology is implemented by GEOS, which doesn't support M

--strk;


More information about the postgis-users mailing list