[postgis-devel] SnapToGrid and higher dimensions
schabi at logix-tt.com
Fri Dec 2 03:29:54 PST 2005
(Sorry, this mail was sent unfinished accidentally.)
strk at refractions.net wrote:
> A BOX4D type could do, representing grid cell prototype.
> Unfortunately adding a new type would require users to dump/reload
> to upgrade to postgis 1.1.0 (currenlty unneeded).
I agree with you that a BOX4D is not worth the effort, although I think
it is possible to add a completely new datatype without dump/reload. No
old data has to be migrated (because their storage format will not
change), we only have a bunch of new new and some changed definitions.
> SnapToGrid(geometry input, point offset,
> float8 xsize, float8 ysize, [float8 zsize], [float8 msize]);
I think that this is a good solution. Sematically, it is a good decision
to represent the offset by a Point.
More information about the postgis-devel