[postgis-devel] SnapToGrid and 3D

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Mon Sep 13 06:34:14 PDT 2010


Nicklas Avén wrote:

> I thought I should fix #584 quick by just using SnapToGrid to round the
> coordinates but, SnapToGrid does not round the z-value.
> 
> It looks in the code like it is prepared for snapping z and m-values and
> that it is just to open it up.
> 
> Maybe we should do that for 2.0?
> 
> As I understand it it is prepared all the way so the elimination of
> duplicate vertexes after snapping is looking also at z and m to
> determine if it is a duplicate.
> 
> The quick fix of the regression tests now is to extract x, y and
> z-values separately and round them like numbers.
> 
> But I think we should open for snapping also the z-value.
> 
> /Nicklas

I'd say there's no reason not to change this in trunk - anyone else object?


ATB,

Mark.

-- 
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs



More information about the postgis-devel mailing list