Commit graph

318 commits

Author SHA1 Message Date
Bborie Park 0814092391 Added 2-raster expression variant of ST_MapAlgebra() and regression
tests.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10441 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-16 19:55:50 +00:00
Bborie Park cff576de11 Additional tweaking of returning empty raster from map algebra of
INTERSECTION or UNION extent

git-svn-id: http://svn.osgeo.org/postgis/trunk@10440 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-16 19:55:41 +00:00
Bborie Park 0d253d3aab Corrected handling of NULL raster resulting from NO intersection of input rasters in map algebra. Fixed spelling mistakes. Additional tests for intersections of more than 3 rasters that don't actually intersect in ST_MapAlgebra
git-svn-id: http://svn.osgeo.org/postgis/trunk@10439 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-16 19:55:34 +00:00
Bborie Park 2558772ba5 Added one-raster expression variant for ST_MapAlgebra and appropriate
regression tests.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10438 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-16 19:55:26 +00:00
Bborie Park 9d2003cf48 Changed how ST_MapAlgebra regression test runs on PostgreSQL 9.0 as
usage of "GROUP BY raster" does not work.  Ticket is #2048.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10429 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-15 03:34:15 +00:00
Bborie Park 0daaaa2fdd Bug fix where pos array size was incorrect.
git-svn-id: http://svn.osgeo.org/postgis/trunk@10422 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-12 19:31:39 +00:00
Bborie Park 6d4a860c64 Duplicated and refactored the ST_XXX4ma() functions for ST_MapAlgebra
usage.  Exception for ST_InvDistWeight4ma() and ST_MinDist4ma(), both of
which are new for 2.1. Added regression tests as well.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10419 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-12 16:06:27 +00:00
Bborie Park 514fd04622 Added n-raster ST_MapAlgebra(). Additional error checking in
rt_raster_iterator(). Added regression checks for n-raster
ST_MapAlgebra(). Ticket is #2030. Added news and docs for
ST_MapAlgebra().

git-svn-id: http://svn.osgeo.org/postgis/trunk@10392 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-10 22:02:40 +00:00
Bborie Park fdc512a4f2 Addition of flag nbnodata to rt_raster_iterator() thus allowing some
memory savings from ST_Union(raster)

git-svn-id: http://svn.osgeo.org/postgis/trunk@10373 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-03 23:07:09 +00:00
Bborie Park 1fd8813cf3 Addition of ST_Union(raster) function and regression tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@10370 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-03 20:53:22 +00:00
Bborie Park 7c9cf073c8 Added regression test for rt_raster_clone() and added missing SRID copy.
git-svn-id: http://svn.osgeo.org/postgis/trunk@10369 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-03 20:53:15 +00:00
Bborie Park 563fb8ac54 Added multi-band support for ST_Union. Ticket is #2021
git-svn-id: http://svn.osgeo.org/postgis/trunk@10360 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-02 21:45:41 +00:00
Bborie Park b88337d497 Addition of C-based ST_Union(raster) aggregate function (ticket #1364). Renamed low level function rt_raster_has_no_band() to raster_has_band(). Updated docs and NEWS for ST_Union.
git-svn-id: http://svn.osgeo.org/postgis/trunk@10344 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-28 23:09:31 +00:00
Bborie Park 7a2facadff Additional regression tests for ST_Neighborhood and tweaked to support a
distance values of zero for one axis.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10333 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-26 15:56:17 +00:00
Bborie Park 75918f8da5 Added regression tests, bug fixes and code cleanup for
rt_raster_iterator().

git-svn-id: http://svn.osgeo.org/postgis/trunk@10331 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-25 22:22:33 +00:00
Bborie Park 7d78e9441f Added rt_raster_iterator(), which is feature complete. Now need to add
lots of regression tests before moving on to the PostgreSQL side to hook
into it.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10330 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-25 22:22:27 +00:00
Bborie Park 5cc2737a76 Changed behavior when there is no pixels in the neighborhood for
ST_Neighborhood.  It should still return an array as the pixel of
interest could have a value... just surrounded by NODATA.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10329 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-25 19:23:43 +00:00
Bborie Park 862339e5cd Added correct handling of rt_band's ownsdata flag indicating if the
memory used for the band's data (only for inline, not offline) is
managed internally.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10327 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-25 14:07:22 +00:00
Bborie Park 83f25d261e Changed output array of ST_Neighborhood to have dimensions of Y,X
instead of X,Y. This matches that found for GDAL blocks.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10323 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-24 15:07:58 +00:00
Bborie Park 9735b2f561 Additional tests for ST_Neighborhood()
git-svn-id: http://svn.osgeo.org/postgis/trunk@10322 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-24 15:07:50 +00:00
Bborie Park 0a946a4627 Additional regression tests for rt_raster_get_nearest_pixel()
git-svn-id: http://svn.osgeo.org/postgis/trunk@10306 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-19 18:48:37 +00:00
Bborie Park c800930a2b Tweaked ST_Neighborhood() to use two separate distance parameters for X
and Y axes.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10304 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-19 18:48:24 +00:00
Bborie Park ce7f81ffdc Added regression tests for ST_InvDistWeight4ma()
git-svn-id: http://svn.osgeo.org/postgis/trunk@10302 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-19 18:48:08 +00:00
Bborie Park c1c79590fe Added new variant on existing ST_SetValues where instead of a noset 2D
array of booleans, the parameter nosetvalue can be used instead.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10260 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-08 01:21:21 +00:00
Bborie Park 9bb86a38b8 Tweaked tests to use new variants of ST_AddBand and ST_SetValues
git-svn-id: http://svn.osgeo.org/postgis/trunk@10154 b70326c6-7e19-0410-871a-916f4a2858ee
2012-08-02 19:27:55 +00:00
Bborie Park 2d9fbc9d1a Rewrote ST_AddBand(raster, ...) array version in C. Ticket is #1363
git-svn-id: http://svn.osgeo.org/postgis/trunk@10150 b70326c6-7e19-0410-871a-916f4a2858ee
2012-08-01 23:16:41 +00:00
Bborie Park 7eef12ba61 Added regression tests and docs for two of the ST_SetValues variants
git-svn-id: http://svn.osgeo.org/postgis/trunk@10148 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-31 23:44:16 +00:00
Bborie Park 3a94058312 Make PostgreSQL 8.4 happy with the rt_polygon regression test.
git-svn-id: http://svn.osgeo.org/postgis/trunk@10143 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-30 22:40:40 +00:00
Bborie Park e33c9bac72 Refactored ST_AddBand to permit adding one or more new bands in one
call.  Ticket is #1938.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10130 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-27 19:46:03 +00:00
Bborie Park c5cd786a07 Removed garbage comments
git-svn-id: http://svn.osgeo.org/postgis/trunk@10118 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-25 03:36:30 +00:00
Bborie Park 433e5f0847 Consolidated create_* and drop_* scripts into respective regression
tests.  Should make things easier to build a valgrind test suite.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10117 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-25 03:36:24 +00:00
Bborie Park c175d60ef0 Added ST_DFullyWithin(raster, raster) and regression tests.
Ticket is #1920

git-svn-id: http://svn.osgeo.org/postgis/trunk@10115 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-25 03:36:05 +00:00
Bborie Park b0c173cbdb Added rt_raster_full_within_distance() and regression tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@10114 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-25 03:35:57 +00:00
Bborie Park f3875ab86a Added ST_DWithin(raster, raster) and regression tests. Ticket is #1922
git-svn-id: http://svn.osgeo.org/postgis/trunk@10112 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-25 03:35:45 +00:00
Bborie Park eb52042f58 Added rt_raster_within_distance() and regression tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@10111 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-25 03:35:36 +00:00
Bborie Park 6b50e23c33 Added ST_Disjoint(raster, raster), regression tests and docs. Ticket is
git-svn-id: http://svn.osgeo.org/postgis/trunk@10110 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-24 18:01:31 +00:00
Bborie Park 1d9b503ead Added ST_CoveredBy and regression tests. Ticket is #1917.
git-svn-id: http://svn.osgeo.org/postgis/trunk@10108 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-23 22:57:17 +00:00
Bborie Park 990cfb1c9d Added rt_raster_covered_by() and related tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@10106 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-23 22:57:05 +00:00
Bborie Park 3b3e96d27f Added ST_Covers() and regression tests. Ticket is #1916
git-svn-id: http://svn.osgeo.org/postgis/trunk@10104 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-23 22:56:53 +00:00
Bborie Park 607714c29a Added rt_raster_covers() and regression tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@10103 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-23 22:56:45 +00:00
Bborie Park 0a380a004a Added ST_ContainsProperly(raster, raster) and regression tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@10101 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-23 18:58:14 +00:00
Bborie Park 6bced093be Addition of rt_raster_contains_properly and regression tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@10100 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-23 18:58:05 +00:00
Bborie Park 2ed157c71e Added regression tests for ST_Within(raster, raster). Ticket is #1923.
git-svn-id: http://svn.osgeo.org/postgis/trunk@10099 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-23 17:50:23 +00:00
Bborie Park 743417d895 Reintroduced ST_Intersects(geometry, raster) and ST_Intersects(raster,
geometry).  Added notes regarding the use of ST_Polygon when needing to
test the spatial relationship between a raster and a geometry.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10095 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-23 17:49:57 +00:00
Bborie Park 27d289efcc Updated regression tests to reflect the removal of various functions
git-svn-id: http://svn.osgeo.org/postgis/trunk@10093 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-23 17:49:46 +00:00
Bborie Park 38dd49660f Addition of ST_Contains and regression tests. Ticket is #1914
git-svn-id: http://svn.osgeo.org/postgis/trunk@10089 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-23 17:49:18 +00:00
Bborie Park b81c7f6edf Added rt_raster_contains() and regression tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@10088 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-23 17:49:11 +00:00
Bborie Park 2cc2b381cc Addition debug messages and disabled one regression test for ST_Touches
due to floating point issues.  Will need to see the WKB output.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10081 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-20 00:31:51 +00:00
Bborie Park 92f85585b1 Addition of ST_Touches() for rasters and related regression tests.
Ticket is #1921

git-svn-id: http://svn.osgeo.org/postgis/trunk@10078 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-19 20:10:13 +00:00
Bborie Park 42c9e61289 Remove rt_spatial_relationship regression tests as similar tests are
done in rt_intersects and rt_intersection

git-svn-id: http://svn.osgeo.org/postgis/trunk@10077 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-19 20:10:00 +00:00