Additional tests for ST_Neighborhood()

git-svn-id: http://svn.osgeo.org/postgis/trunk@10322 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Bborie Park 2012-09-24 15:07:50 +00:00
parent d6da0c36f5
commit 9735b2f561
2 changed files with 9 additions and 0 deletions

View file

@ -74,4 +74,11 @@ SELECT
ST_Neighborhood(rast, 1, -9, 3, 3, 3, FALSE)
FROM raster_neighborhood;
SELECT
ST_Neighborhood(rast, 1, 4, 4, 1, 1)
FROM raster_neighborhood;
SELECT
ST_Neighborhood(rast, 1, 4, 4, 1, 2)
FROM raster_neighborhood;
DROP TABLE IF EXISTS raster_neighborhood;

View file

@ -11,3 +11,5 @@ NOTICE: Pixel has no neighbors for band at distance 1 x 1
NOTICE: Pixel has no neighbors for band at distance 1 x 1
NOTICE: Pixel has no neighbors for band at distance 3 x 3
{{0,0,0,0,0,0,0},{0,0,0,0,0,0,0},{0,0,0,0,0,0,0},{0,0,0,0,0,0,0},{0,0,0,0,0,0,0},{0,0,0,0,0,0,0},{0,0,0,0,0,0,0}}
{{1,1,NULL},{1,1,1},{NULL,1,1}}
{{1,1,1,NULL,1},{1,1,1,1,1},{1,NULL,1,1,1}}