Ticket #387 (closed defect: fixed)
ST_Transform decimal issue on Win32
| Reported by: | colivier | Owned by: | pramsey |
|---|---|---|---|
| Priority: | medium | Milestone: | PostGIS 1.5.0 |
| Component: | postgis | Version: | trunk |
| Keywords: | ST_Transform Win32 decimal | Cc: | laurens@… |
Description
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
