[postgis-tickets] [PostGIS] #2146: ST_AsText returns 'e' as exponent

PostGIS trac at osgeo.org
Tue Dec 11 03:25:47 PST 2012


#2146: ST_AsText returns 'e' as exponent
---------------------+------------------------------------------------------
 Reporter:  yossi    |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.3
Component:  postgis  |     Version:  2.0.x        
 Keywords:           |  
---------------------+------------------------------------------------------
 The following query:

 {{{
 select ST_AsText(ST_MakePoint(1E-7, 1e-8))
 }}}
  returns:

 {{{
 POINT(1e-007 1e-008)
 }}}
 I would expect it to return:

 {{{
 POINT(1E-007 1E-008)
 }}}
 As far as I can see capital E is the standard used in Postgres, as well as
 in standard defintions.
 Some floating point numbers fails on parsing as is, and in general since
 it is not clearly defined that it will always be 'e', it is more difficult
 to reliably parse.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2146>
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