mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-24 00:52:40 +00:00
b0bd31e6f8
Previous policy (WHEN SIMPLE) turned out to be non-simple, so this has been changed to TAINING. Bbox will then be recomputed by scanning output coordinates iff input had a bbox cache. AUTOCACHE_BBOX define (the default) will still force a computation of output box if worth it. Regress tests added for the case reported on postgis-users Run of regress tests do not require postgis install anymore. The library build in source tree will be used for this purpose. Version bumped to 1.1.2 and CHANGES file updated. git-svn-id: http://svn.osgeo.org/postgis/trunk@2298 b70326c6-7e19-0410-871a-916f4a2858ee
11 lines
822 B
SQL
11 lines
822 B
SQL
|
|
-- postgis-users/2006-January/010870.html
|
|
CREATE TEMP TABLE tmp (orig geometry);
|
|
INSERT INTO tmp (orig) VALUES ('01020000207D18000007000000D7A3701D641B3FC18B6CE7FB5A721841FA7E6A9C5E1B3FC191ED7C3F9872184139B4C816591B3FC1E3A59BC4D472184104560E4D891A3FC177BE9F1ABF7118417B14AEA7961A3FC18716D94E0C711841022B8716671B3FC1C74B370939721841D7A3701D641B3FC18B6CE7FB5A721841');
|
|
SELECT snaptogrid(orig, 0.001) ~= snaptogrid(snaptogrid(orig, 0.001), 0.001) FROM tmp;
|
|
SELECT snaptogrid(orig, 0.005) ~= snaptogrid(snaptogrid(orig, 0.005), 0.005) FROM tmp;
|
|
SELECT snaptogrid(orig, 0.002) ~= snaptogrid(snaptogrid(orig, 0.002), 0.002) FROM tmp;
|
|
SELECT snaptogrid(orig, 0.003) ~= snaptogrid(snaptogrid(orig, 0.003), 0.003) FROM tmp;
|
|
SELECT snaptogrid(orig, 0.0002) ~= snaptogrid(snaptogrid(orig, 0.0002), 0.0002) FROM tmp;
|
|
DROP TABLE tmp;
|