]> granicus.if.org Git - postgis/commitdiff
Add ST_SnapToGrid so 32-bit and 64-bit answers agree
authorRegina Obe <lr@pcorp.us>
Tue, 13 Sep 2016 16:55:27 +0000 (16:55 +0000)
committerRegina Obe <lr@pcorp.us>
Tue, 13 Sep 2016 16:55:27 +0000 (16:55 +0000)
References #3629 for PostGIS 2.3

git-svn-id: http://svn.osgeo.org/postgis/trunk@15104 b70326c6-7e19-0410-871a-916f4a2858ee

regress/in_encodedpolyline.sql
regress/in_encodedpolyline_expected

index 7e95392709940e88a9c5cb18a264b241bb9f1a6a..1fba56ac56fe4250ff3d82dc4269e5ceb8f8aa1b 100644 (file)
@@ -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@chtxCn`{nI', 6));
+select 'linefromencodedpolyline_02',st_asewkt(ST_SnapToGrid(st_linefromencodedpolyline('_izlhAj}oidF{}jgCrotj@chtxCn`{nI', 6),0.001));
index d3a53bb4d50e3c8febdeed846a6035aac5ede4bf..b0d626237fb36e67e115fcc0bff70419742ad24e 100644 (file)
@@ -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)