[postgis-devel] [PostGIS] #1292: ST_SnapToGrid returns a value out of range

PostGIS trac at osgeo.org
Tue Jan 3 00:08:30 PST 2012


#1292: ST_SnapToGrid returns a value out of range
---------------------------+------------------------------------------------
 Reporter:  realityexists  |       Owner:  pramsey      
     Type:  defect         |      Status:  new          
 Priority:  medium         |   Milestone:  PostGIS 2.0.0
Component:  postgis        |     Version:  trunk        
 Keywords:                 |  
---------------------------+------------------------------------------------

Comment(by realityexists):

 Happens with latitude as well (2.0.0 r8577, Windows).

 SELECT ST_SnapToGrid(ST_GeomFromText('POINT(-141 90)', 4326),
 0.00001)::geography
   => ERROR:  Coordinate values are out of range [-180 -90, 180 90] for
 GEOGRAPHY type

 Is there any workaround other than round-tripping everything though
 ST_AsText()? This is causing problems in my application that are difficult
 to track down, but I still want to use ST_SnapToGrid.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1292#comment:2>
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-devel mailing list