Does postgis snaptogrid function has implemented realm and rose algebra for precision model.? Kind Regards imran
----- Original Message ---- From: Kevin Neufeld <[EMAIL PROTECTED]> To: PostGIS Users Discussion <[email protected]> Sent: Thursday, June 26, 2008 12:13:09 AM Subject: Re: [postgis-users] snaptogrid() function An example query using ST_SnapToGrid() would be: UPDATE mytable SET the_geom = ST_SnapToGrid(the_geom, 0.001); This query will "snap" your geometries to a precision grid of 10^-3. The other variants are the same thing, but allow you to specify an offset origin other than the default of 0,0. Ie. The above query is the same as doing: UPDATE mytable SET the_geom = ST_SnapToGrid(the_geom, 0, 0, 0.001, 0.001); Because this function employs this "offset to origin" concept, care should be taken if you actually want to use this function to reduce the precision of your geometries. Refer to this thread: http://postgis.refractions.net/pipermail/postgis-users/2008-May/019651.html In the future, I see us leaving this method, but adding an ST_PrecisionReducer() method. Cheers, Kevin muhammad imran wrote: > Dear All, > Can any body share any helping material e.g manual documents, notes, code , > exampls etc for snapttogrid()function for postGIS. concepts of snaping, > limitations etc things to do for next version regarding snaping. > Kind Regards > imran > > > > _______________________________________________ > postgis-users mailing list > [email protected] > http://postgis.refractions.net/mailman/listinfo/postgis-users _______________________________________________ postgis-users mailing list [email protected] http://postgis.refractions.net/mailman/listinfo/postgis-users _______________________________________________ postgis-users mailing list [email protected] http://postgis.refractions.net/mailman/listinfo/postgis-users
