[postgis-devel] [PostGIS] #2051: ST_AsGeoJSON printing too many digits

PostGIS trac at osgeo.org
Wed Oct 17 03:05:50 PDT 2012


#2051: ST_AsGeoJSON printing too many digits
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.2
Component:  postgis  |     Version:  2.0.x        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by strk):

 Ok so I think the proper fix to this would be to count the number of
 integer digits and detract them from the given precision. That way we
 should never give random numbers when out of significant digits (as
 happening in this case, right?)

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2051#comment:8>
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