[postgis-tickets] r15106 - Add ST_SnapToGrid so 32-bit and 64-bit answers agree
Regina Obe
lr at pcorp.us
Tue Sep 13 12:09:18 PDT 2016
Author: robe
Date: 2016-09-13 12:09:17 -0700 (Tue, 13 Sep 2016)
New Revision: 15106
Modified:
branches/2.2/regress/in_encodedpolyline.sql
branches/2.2/regress/in_encodedpolyline_expected
Log:
Add ST_SnapToGrid so 32-bit and 64-bit answers agree
Closes #3629 for PostGIS 2.2
Modified: branches/2.2/regress/in_encodedpolyline.sql
===================================================================
--- branches/2.2/regress/in_encodedpolyline.sql 2016-09-13 18:06:49 UTC (rev 15105)
+++ branches/2.2/regress/in_encodedpolyline.sql 2016-09-13 19:09:17 UTC (rev 15106)
@@ -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: branches/2.2/regress/in_encodedpolyline_expected
===================================================================
--- branches/2.2/regress/in_encodedpolyline_expected 2016-09-13 18:06:49 UTC (rev 15105)
+++ branches/2.2/regress/in_encodedpolyline_expected 2016-09-13 19:09:17 UTC (rev 15106)
@@ -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