[postgis-devel] SnapToGrid(...) not 3d?
strk at refractions.net
strk at refractions.net
Tue Nov 29 14:14:30 PST 2005
On Tue, Nov 29, 2005 at 01:13:16PM -0800, Kevin Neufeld wrote:
> Hi all,
> It looks like the snaptogrid function drops z values. Is this a bug?
Nope, it's like that since the beginning.
Note that SnapToGrid removes consecutive points falling in
the same cell, so supporting Z (and/or M) would require a
definition of semantic for those cases (average?).
--strk;
>
>
> 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
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
--
/"\ ASCII Ribbon Campaign
\ / Respect for open standards
X No HTML/RTF in email
/ \ No M$ Word docs in email
More information about the postgis-devel
mailing list