[postgis-devel] SnapToGrid(...) not 3d?

Kevin Neufeld kneufeld at refractions.net
Tue Nov 29 13:13:16 PST 2005


Hi all,
It looks like the snaptogrid function drops z values. Is this a bug?


select asewkt(geomfromewkt('POINT(1.1234 2.23456 3.34567)'));
            asewkt            
-------------------------------
 POINT(1.1234 2.23456 3.34567)
(1 row)

select asewkt(snaptogrid(geomfromewkt('POINT(1.1234 2.23456 3.34567)'), 
0.001));
       asewkt      
--------------------
 POINT(1.123 2.235)
(1 row)


Cheers,
Kevin



-- 
Kevin Neufeld,
Refractions Research Inc.,
kneufeld at refractions.net
Phone: (250) 383-3022 
Fax:   (250) 383-2140 




More information about the postgis-devel mailing list