[postgis-tickets] [PostGIS] #2611: ST_SnapToGrid doesn't snap

PostGIS trac at osgeo.org
Tue Jan 14 09:32:02 PST 2014


#2611: ST_SnapToGrid doesn't snap
---------------------+------------------------------------------------------
 Reporter:  geognu   |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  high     |   Milestone:  PostGIS 2.1.2
Component:  postgis  |     Version:  2.1.x        
 Keywords:           |  
---------------------+------------------------------------------------------
 Hi.

 Testing various ST_SnapToGrid options looks like snapping is not working
 for values < 0.5, e.g. running the query

 UPDATE mytable
 SET the_geom=ST_SnapToGrid(the_geom, 1)

 I get the results, whilst

 UPDATE mytable
 SET the_geom=ST_SnapToGrid(the_geom, 0.0000001)

 doesn't work at all, leaving the geometry untouched.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2611>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list