[postgis-devel] [PostGIS] #387: ST_Transform decimal issue on Win32

PostGIS trac at osgeo.org
Mon Jan 18 09:29:22 PST 2010


#387: ST_Transform decimal issue on Win32
----------------------------------------+-----------------------------------
 Reporter:  colivier                    |       Owner:  pramsey
     Type:  defect                      |      Status:  new    
 Priority:  medium                      |   Milestone:         
Component:  postgis                     |     Version:  trunk  
 Keywords:  ST_Transform Win32 decimal  |  
----------------------------------------+-----------------------------------
 On Win32,

 SELECT
 ST_AsEWKT(ST_Transform(ST_GeomFromEWKT('SRID=28992;LINESTRING(121197.452
 483388.474 0 ,121194.232643364 483391.530431554 0)));


 Should produce (Unix platform result):
 LINESTRING(SRID=4326;4.89123288936406 52.3373804303248 0, 4.89118534786195
 52.3374077015756 0)

 Instead of (Win32 result):
 LINESTRING(SRID=4326;4.891594203993788 52.338389215425934 0,
 4.891546655317309 52.338416489781068 0)

 Decimal digits should be the same upon platforms at least till 10E-6.

 Initial problem reported by Laurens Janzen, on postgis-users
 (seems to be present on both trunk and 1.4)


 Nota: regression tests on ST_Transform only care about integer

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