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

PostGIS trac at osgeo.org
Wed Oct 17 02:02: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):

 * ST_AsText uses DBL_DIG (16):
 http://tigcc.ticalc.org/doc/float.html#DBL_DIG
  * ST_AsGeoJSON uses OUT_MX_DOUBLE_PRECISION (15):
 source:/trunk/liblwgeom/liblwgeom.h.in#L1337

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