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

PostGIS trac at osgeo.org
Wed Oct 17 04:38:55 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 colivier):

 In a GIS common world we deal with 1e-2 to 1e10.

 1e300 seems useless/overkill, but obviously must not lead to a crash,
 so scientific notation appears as a nice workaround/answer,
 without having to compute exact memory to allocate for coordinates.

 Indeed, not documented as not a real world feature.

 (Same use case with 1e-300 from my point of view too)

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