[postgis-tickets] r15104 - Add ST_SnapToGrid so 32-bit and 64-bit answers agree
Regina Obe
lr at pcorp.us
Tue Sep 13 09:55:27 PDT 2016
Author: robe
Date: 2016-09-13 09:55:27 -0700 (Tue, 13 Sep 2016)
New Revision: 15104
Modified:
trunk/regress/in_encodedpolyline.sql
trunk/regress/in_encodedpolyline_expected
Log:
Add ST_SnapToGrid so 32-bit and 64-bit answers agree
References #3629 for PostGIS 2.3
Modified: trunk/regress/in_encodedpolyline.sql
===================================================================
--- trunk/regress/in_encodedpolyline.sql 2016-09-13 08:39:11 UTC (rev 15103)
+++ trunk/regress/in_encodedpolyline.sql 2016-09-13 16:55:27 UTC (rev 15104)
@@ -1,2 +1,2 @@
select 'linefromencodedpolyline_01',st_asewkt(st_linefromencodedpolyline('_p~iF~ps|U_ulLnnqC_mqNvxq`@'));
-select 'linefromencodedpolyline_02',st_asewkt(st_linefromencodedpolyline('_izlhAj}oidF{}jgCrotj at chtxCn`{nI', 6));
+select 'linefromencodedpolyline_02',st_asewkt(ST_SnapToGrid(st_linefromencodedpolyline('_izlhAj}oidF{}jgCrotj at chtxCn`{nI', 6),0.001));
Modified: trunk/regress/in_encodedpolyline_expected
===================================================================
--- trunk/regress/in_encodedpolyline_expected 2016-09-13 08:39:11 UTC (rev 15103)
+++ trunk/regress/in_encodedpolyline_expected 2016-09-13 16:55:27 UTC (rev 15104)
@@ -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.234 38.5,-120.95 40.734,-126.453 43.252)
More information about the postgis-tickets
mailing list