[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-users
Subject:    [postgis-users] snaptogrid() function
From:       muhammad imran <imranserver () yahoo ! com>
Date:       2008-06-26 23:24:51
Message-ID: 886719.77994.qm () web53503 ! mail ! re2 ! yahoo ! com
[Download RAW message or body]

Does postgis snaptogrid function has implemented realm and rose algebra for precision \
model.? Kind Regards
imran

----- Original Message ----
From: Kevin Neufeld <kneufeld@refractions.net>
To: PostGIS Users Discussion <postgis-users@postgis.refractions.net>
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
> postgis-users@postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users



      
_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic