[postgis-devel] SnapToGrid higher dimensions (was: measures test fail)

strk strk at keybit.net
Mon Oct 25 02:39:14 PDT 2010


On Mon, Oct 25, 2010 at 11:30:55AM +0200, Nicklas Avén wrote:
> well, problem and problem.
> 
> I think most people expect when they do what you did in r6083
> http://trac.osgeo.org/postgis/changeset/6083 that also z will be
> snapped. Of course we can not always meet peoples expectations, but when
> it is possible it makes the software very much more easy to use. All
> remembering of special rules for special functions makes things more
> difficult. From that perspective, when everything in the code is
> prepared for z and m snapping except the part in LWGEOM_snaptogrid where
> z and m grid values are set to 0, I thought it would have been nice to
> get all dimensions snapped when writing ST_SnapToGrid(the_geom, 0.01)
> 
> I think your suggestion is quite appealing, eventually with just a
> special case for the example ST_SnapToGrid(the_geom, 0.01), since I
> think that is the most common usage and that wouldn't conflict with
> anything in overloading the function.

Uhm... 
 ST_SnapToGrid(the_geom, 0.01) snapping all dimensions ?
X and Y might be lon,lat while Z could be meters...
M go figure out what it is...


--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html



More information about the postgis-devel mailing list