Commit graph

430 commits

Author SHA1 Message Date
Sandro Santilli 4c97ca2271 Cleanup after raster import tests using overview
It seems to not be automatic...

git-svn-id: http://svn.osgeo.org/postgis/trunk@12792 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-17 14:23:51 +00:00
Sandro Santilli f2296f9e0f Include overviews in the test for reprojected rasters (#2843)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12791 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-17 14:02:13 +00:00
Sandro Santilli 7964cec7c2 Remove obsoleted shell versions of test aux scripts (#2844)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12790 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-17 09:02:30 +00:00
Sandro Santilli 9e569f9f3c Add support for raster reprojection on import (#2843)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12789 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-17 08:59:53 +00:00
Bborie Park c7e5baf6b0 Validate that ST_MapAlgebra callback function has correct return
datatype. Ticket #2802

git-svn-id: http://svn.osgeo.org/postgis/trunk@12744 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-06 20:01:53 +00:00
Bborie Park 5f37e1f0a5 escape delimiter of ST_Band(). Ticket #2812
git-svn-id: http://svn.osgeo.org/postgis/trunk@12741 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-06 18:33:41 +00:00
Bborie Park 6dc54f2ef7 Raster max extent uses envelope like Geometry. Ticket #2777
git-svn-id: http://svn.osgeo.org/postgis/trunk@12740 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-06 18:10:23 +00:00
Bborie Park e22285d18a fix obsolete URL in headers
git-svn-id: http://svn.osgeo.org/postgis/trunk@12737 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-06 17:32:55 +00:00
Bborie Park 2efe725eae added NEWS and updated tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@12735 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-06 15:27:39 +00:00
Sandro Santilli ddc4422893 Check that ST_MapAlgebra strict callbacks get passed an user arg
Closes #2803
Includes a testcase

git-svn-id: http://svn.osgeo.org/postgis/trunk@12720 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-03 12:32:40 +00:00
Bborie Park 3631ca5c6a add comments for out-db raster in regress tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@12639 b70326c6-7e19-0410-871a-916f4a2858ee
2014-06-23 15:36:32 +00:00
Sandro Santilli 35806a72d9 Disable ST_MemSize test for outdb rasters
I don't seem to be able to get a static memory size for them, so
for now the test is disabled (but the problem remains)

git-svn-id: http://svn.osgeo.org/postgis/trunk@12638 b70326c6-7e19-0410-871a-916f4a2858ee
2014-06-23 14:39:40 +00:00
Sandro Santilli eea65650a2 Fix ST_MemSize test query with PostgreSQL 9.1
See https://travis-ci.org/postgis/postgis/builds/28204298#L2377

git-svn-id: http://svn.osgeo.org/postgis/trunk@12637 b70326c6-7e19-0410-871a-916f4a2858ee
2014-06-23 08:54:46 +00:00
Sandro Santilli b3c5bbe26b Subtract size of offdb raster paths in test for ST_MemSize
Doing so should make the resulting size equal on all systems,
fixing the travis builds:
https://travis-ci.org/postgis/postgis#L2373-L2380

git-svn-id: http://svn.osgeo.org/postgis/trunk@12636 b70326c6-7e19-0410-871a-916f4a2858ee
2014-06-23 07:37:53 +00:00
Bborie Park 741e3d50ed fix premature memory free in RASTER_getBandPath (ST_BandPath)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12631 b70326c6-7e19-0410-871a-916f4a2858ee
2014-06-21 17:30:13 +00:00
Sandro Santilli 23898d4d51 Implement ST_MemSize(raster)
Closes #2770
Includes testcases, but no documentation

git-svn-id: http://svn.osgeo.org/postgis/trunk@12630 b70326c6-7e19-0410-871a-916f4a2858ee
2014-06-20 10:37:22 +00:00
Bborie Park ff1d8309f2 disable one unit test
git-svn-id: http://svn.osgeo.org/postgis/trunk@12540 b70326c6-7e19-0410-871a-916f4a2858ee
2014-05-13 15:33:31 +00:00
Bborie Park 7d58fb71bd add VSICURL keyword for GUC postgis.gdal_enabled_drivers. add GUC posgis.enable_outdb_rasters
git-svn-id: http://svn.osgeo.org/postgis/trunk@12492 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-26 14:01:02 +00:00
Bborie Park 344943cd2b check before inserting records into spatial_ref_sys. ticket #2715
git-svn-id: http://svn.osgeo.org/postgis/trunk@12488 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-23 16:16:51 +00:00
Bborie Park 2bf085f19c Unit tests fail on PostgreSQL 9.1 due to GUC behavior changes between 9.1 and 9.2. Ticket #2714
git-svn-id: http://svn.osgeo.org/postgis/trunk@12486 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-22 14:29:30 +00:00
Bborie Park 55e3d2dbb3 Addition of GUC postgis.gdal_enabled_drivers with default set to all GDAL drivers disabled
git-svn-id: http://svn.osgeo.org/postgis/trunk@12474 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-13 03:07:41 +00:00
Bborie Park fc802115de by default, prevent PostGIS raster from using GDAL drivers that can easily be abused (VRT, MEM, WCS, WMS)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12457 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-10 21:53:49 +00:00
Paul Ramsey bf2901b473 #2622, Update links to PostGIS website in source file headers
git-svn-id: http://svn.osgeo.org/postgis/trunk@12198 b70326c6-7e19-0410-871a-916f4a2858ee
2014-01-29 17:49:35 +00:00
Bborie Park a89b72f14c Addition of mask parameter for ST_MapAlgebra. Merge of pull request 17 from github. Lots of thanks to nclay for the hard work. Ticket #2341.
git-svn-id: http://svn.osgeo.org/postgis/trunk@12179 b70326c6-7e19-0410-871a-916f4a2858ee
2014-01-07 04:16:00 +00:00
Bborie Park b51daacc41 Add ST_CountAgg(). Ticket #2567
git-svn-id: http://svn.osgeo.org/postgis/trunk@12161 b70326c6-7e19-0410-871a-916f4a2858ee
2013-12-15 19:24:35 +00:00
Bborie Park acb238da0e added ST_SummaryStatsAgg(). Ticket #2565
git-svn-id: http://svn.osgeo.org/postgis/trunk@12159 b70326c6-7e19-0410-871a-916f4a2858ee
2013-12-14 20:54:44 +00:00
Bborie Park 4b73954d08 fix parse cleanup of reclassarg and add unit tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@12152 b70326c6-7e19-0410-871a-916f4a2858ee
2013-12-07 14:18:20 +00:00
Bborie Park c74a871e0f fix NULL raster handling in ST_AsPNG, ST_AsJPEG and ST_AsTIFF
git-svn-id: http://svn.osgeo.org/postgis/trunk@12146 b70326c6-7e19-0410-871a-916f4a2858ee
2013-11-27 15:50:14 +00:00
Bborie Park 0284eaab2b Rename GUC postgis.gdal.datapath to postgis.gdal_datapath. Ticket #2540
git-svn-id: http://svn.osgeo.org/postgis/trunk@12116 b70326c6-7e19-0410-871a-916f4a2858ee
2013-11-09 02:54:31 +00:00
Bborie Park 71fd0f57b6 Added missing operators. Ticket #2532
git-svn-id: http://svn.osgeo.org/postgis/trunk@12108 b70326c6-7e19-0410-871a-916f4a2858ee
2013-11-07 15:02:54 +00:00
Bborie Park 7f35d8de48 Change raster license from v3+ to v2+. Ticket #2516
git-svn-id: http://svn.osgeo.org/postgis/trunk@12058 b70326c6-7e19-0410-871a-916f4a2858ee
2013-10-28 18:53:52 +00:00
Bborie Park a41e5d6763 added regression tests for ticket #2493
git-svn-id: http://svn.osgeo.org/postgis/trunk@11999 b70326c6-7e19-0410-871a-916f4a2858ee
2013-10-03 03:45:24 +00:00
Bborie Park 2d853de768 Fix behavior of ST_PixelAsXXX functions with regard to exclude_nodata_value parameter
git-svn-id: http://svn.osgeo.org/postgis/trunk@11898 b70326c6-7e19-0410-871a-916f4a2858ee
2013-08-31 15:46:41 +00:00
Bborie Park c9e428f82e Split rt_core/rt_api.c and rt_pg/rt_pg.c into smaller files.
git-svn-id: http://svn.osgeo.org/postgis/trunk@11719 b70326c6-7e19-0410-871a-916f4a2858ee
2013-08-02 19:51:09 +00:00
Bborie Park d0032d97b2 Fixed variable datatype in ST_Neighborhood. Ticket #2384
git-svn-id: http://svn.osgeo.org/postgis/trunk@11692 b70326c6-7e19-0410-871a-916f4a2858ee
2013-07-17 14:45:32 +00:00
Bborie Park 4336f28e4f Addition of GUC postgis.gdal.datapath to specify GDAL config variable GDAL_DATA. Ticket #1678
git-svn-id: http://svn.osgeo.org/postgis/trunk@11554 b70326c6-7e19-0410-871a-916f4a2858ee
2013-06-20 15:57:50 +00:00
Bborie Park 02b2715d4a Added spatial_index column to raster_columns view. Ticket #2361
git-svn-id: http://svn.osgeo.org/postgis/trunk@11553 b70326c6-7e19-0410-871a-916f4a2858ee
2013-06-20 15:57:44 +00:00
Bborie Park 4b7c3b7d28 Refactored use of out-db rasters for regression tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@11496 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-24 17:27:48 +00:00
Bborie Park 9e5db41057 Removed unnecessary test due to introduction of ST_FromGDALRaster()
git-svn-id: http://svn.osgeo.org/postgis/trunk@11495 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-24 17:27:38 +00:00
Bborie Park c7c613a38e Added more predefined color ramps for ST_ColorMap(raster). Removed RGB
<-> HSV colorspace conversion as it sometimes resulted in strange
answers when interpolating.

git-svn-id: http://svn.osgeo.org/postgis/trunk@11411 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-10 22:27:44 +00:00
Bborie Park 46a76d3b39 Addition of ST_ColorMap(raster). Ticket #2290
git-svn-id: http://svn.osgeo.org/postgis/trunk@11392 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-10 00:09:11 +00:00
Bborie Park a7e0ca4fe3 Added ST_TRI(raster). Ticket #2164. Thanks to Nathaniel Clay for writing the function and required docs and regression tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@11380 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-07 15:39:58 +00:00
Bborie Park 61085d5967 Added ST_Roughness(raster). Ticket #2302. Thanks to Nathaniel Clay for writing the function and required docs and regression tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@11379 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-07 15:39:51 +00:00
Bborie Park 1ad6b96d8d Added ST_TPI(raster). Ticket #2163. Thanks to Nathaniel Clay for writing
the function and required docs and regression tests.

git-svn-id: http://svn.osgeo.org/postgis/trunk@11378 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-07 15:39:40 +00:00
Bborie Park af3836ec52 Added ST_Summary(raster). Ticket #2280
git-svn-id: http://svn.osgeo.org/postgis/trunk@11326 b70326c6-7e19-0410-871a-916f4a2858ee
2013-04-26 14:47:40 +00:00
Bborie Park dff246801d Added better handling of file paths for msys
git-svn-id: http://svn.osgeo.org/postgis/trunk@11323 b70326c6-7e19-0410-871a-916f4a2858ee
2013-04-24 15:54:58 +00:00
Bborie Park bd4596f366 Added parameter to ST_AsBinary(raster) to permit out-db bands to be treated as in-db. Ticket #2222
git-svn-id: http://svn.osgeo.org/postgis/trunk@11320 b70326c6-7e19-0410-871a-916f4a2858ee
2013-04-23 23:46:27 +00:00
Bborie Park a5b0f95781 Added test for loading out-db rasters in raster2pgsql
git-svn-id: http://svn.osgeo.org/postgis/trunk@11314 b70326c6-7e19-0410-871a-916f4a2858ee
2013-04-23 20:37:11 +00:00
Bborie Park 4d98d37242 Explicitly initialize memory as valgrind complains
git-svn-id: http://svn.osgeo.org/postgis/trunk@11313 b70326c6-7e19-0410-871a-916f4a2858ee
2013-04-23 19:32:18 +00:00
Bborie Park 5ce17c5337 Added bash versions of "bootstrapping" code for rt_addband test
git-svn-id: http://svn.osgeo.org/postgis/trunk@11312 b70326c6-7e19-0410-871a-916f4a2858ee
2013-04-23 19:32:14 +00:00