Opened 8 years ago

Closed 8 years ago

#3629 closed defect (fixed)

Getting regress on encoded line in 32-bit windows

Reported by: robe Owned by: pramsey
Priority: medium Milestone: PostGIS 2.2.3
Component: postgis Version: 2.2.x
Keywords: windows, 32-bit Cc:

Description

This seems to be happening only for the 32-bit windows runs.

 in_encodedpolyline .. failed (diff expected obtained: /projects/postgis/tmp/2.2.3dev_pg9.5_geos3.5.0_gdal2.1.1w32/test_42_diff)
-----------------------------------------------------------------------------
--- in_encodedpolyline_expected	2016-09-06 18:58:07 -0400
+++ /projects/postgis/tmp/2.2.3dev_pg9.5_geos3.5.0_gdal2.1.1w32/test_42_out	2016-09-12 04:05:08 -0400
@@ -1,2 +1,2 @@
 linefromencodedpolyline_01|SRID=4326;LINESTRING(-120.2 38.5,-120.95 40.7,-126.453 43.252)
-linefromencodedpolyline_02|SRID=4326;LINESTRING(-120.234472 38.5,-120.95 40.734352,-126.453 43.252)
+linefromencodedpolyline_02|SRID=4326;LINESTRING(-120.23447 38.5,-120.950002 40.73435,-126.453 43.252002)
-----------------------------------------------------------------------------

Looks like a floating point precision issue

Change History (3)

comment:1 by robe, 8 years ago

Summary: Getting failus on encoded lineGetting regress on encoded line in 32-bit windows

comment:2 by robe, 8 years ago

In 15104:

Add ST_SnapToGrid so 32-bit and 64-bit answers agree
References #3629 for PostGIS 2.3

comment:3 by robe, 8 years ago

Resolution: fixed
Status: newclosed

In 15106:

Add ST_SnapToGrid so 32-bit and 64-bit answers agree
Closes #3629 for PostGIS 2.2

Note: See TracTickets for help on using tickets.