Commit graph

459 commits

Author SHA1 Message Date
Regina Obe 62d0287ec6 Force sorting in ST_ColorMap test (fix aliasing issue rid was aliased as testid)
closes #3503

git-svn-id: http://svn.osgeo.org/postgis/trunk@14794 b70326c6-7e19-0410-871a-916f4a2858ee
2016-03-20 19:52:40 +00:00
Regina Obe ef1a2d9ff4 Force sorting in ST_ColorMap test
references #3503

git-svn-id: http://svn.osgeo.org/postgis/trunk@14793 b70326c6-7e19-0410-871a-916f4a2858ee
2016-03-20 19:41:05 +00:00
Paul Ramsey f2b5bf3767 Expunge all trace of rt_init_allocators
git-svn-id: http://svn.osgeo.org/postgis/trunk@14704 b70326c6-7e19-0410-871a-916f4a2858ee
2016-02-26 11:19:07 +00:00
Daniel Baston 2465d24e9d #3365, remove code paths for POSTGIS_GEOS_VERSION < 33
git-svn-id: http://svn.osgeo.org/postgis/trunk@14466 b70326c6-7e19-0410-871a-916f4a2858ee
2015-12-01 23:16:41 +00:00
Bborie Park a96eb0893c syntax cleanup
git-svn-id: http://svn.osgeo.org/postgis/trunk@14195 b70326c6-7e19-0410-871a-916f4a2858ee
2015-10-05 17:37:18 +00:00
Bborie Park cf6e8f31fd code cleanup
git-svn-id: http://svn.osgeo.org/postgis/trunk@14194 b70326c6-7e19-0410-871a-916f4a2858ee
2015-10-05 16:44:19 +00:00
Regina Obe 1198c42fe9 #3314 missed some spots forcing order of results
git-svn-id: http://svn.osgeo.org/postgis/trunk@14193 b70326c6-7e19-0410-871a-916f4a2858ee
2015-10-05 16:26:25 +00:00
Regina Obe 38ebe36833 #3314: change mask test to use st_dumpvalues to avoid endian differences. Also force sort of records (since SQL doesn't guarantee sort will be the same across systems) for multi record results
git-svn-id: http://svn.osgeo.org/postgis/trunk@14192 b70326c6-7e19-0410-871a-916f4a2858ee
2015-10-05 15:59:06 +00:00
Regina Obe ffc47387c9 #3315: fix typos in error messages for map algebra mask and provide more descriptive error about dimension mismatch
git-svn-id: http://svn.osgeo.org/postgis/trunk@14185 b70326c6-7e19-0410-871a-916f4a2858ee
2015-10-04 20:47:09 +00:00
Regina Obe f38b921529 #3297 fix check_gdal regress test to not test initial state (so not sensitive to users default postgis.gdal_enabled_drivers settings
git-svn-id: http://svn.osgeo.org/postgis/trunk@14116 b70326c6-7e19-0410-871a-916f4a2858ee
2015-09-26 15:48:51 +00:00
Sandro Santilli ec7535cc68 Restore liblwgeom API compatibility (#3156)
Adds an lwgeom_set_debuglogger function, restore lwgeom_set_handler
to the same arguments set as with 2.1.x.
Updates all callers (2/3 of which are back to their original version).

git-svn-id: http://svn.osgeo.org/postgis/trunk@13646 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-10 23:28:01 +00:00
Paul Ramsey 74e84aeae1 #2287, fix regressions with new debug in raster
git-svn-id: http://svn.osgeo.org/postgis/trunk@13619 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-04 19:45:36 +00:00
Paul Ramsey 75e4f978a6 #2287, move debug messages in --enable-debug builds to the DEBUG PgSQL logging channel
git-svn-id: http://svn.osgeo.org/postgis/trunk@13617 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-04 18:43:34 +00:00
Paul Ramsey e0d2f255ea Only use new geodesics when Proj 4.9 is installed
git-svn-id: http://svn.osgeo.org/postgis/trunk@13526 b70326c6-7e19-0410-871a-916f4a2858ee
2015-05-19 18:11:48 +00:00
Paul Ramsey 870eaef414 Remove the many and unloved $Id$ tags that clutter the code base
git-svn-id: http://svn.osgeo.org/postgis/trunk@13496 b70326c6-7e19-0410-871a-916f4a2858ee
2015-05-13 18:13:18 +00:00
Bborie Park da27ffe625 add unit tests for numeric overflow. ticket #3100
git-svn-id: http://svn.osgeo.org/postgis/trunk@13468 b70326c6-7e19-0410-871a-916f4a2858ee
2015-05-02 20:27:49 +00:00
Bborie Park f32b7827e9 Fix ST_DumpValues() crasher when cleaning. Ticket #3086
git-svn-id: http://svn.osgeo.org/postgis/trunk@13390 b70326c6-7e19-0410-871a-916f4a2858ee
2015-03-23 16:23:20 +00:00
Regina Obe 03dfe9ee7b #3080 regress failure on 9.5. Put in an OFFSET 0 on all the queries to prevent double ST_Reclass calling in 9.5 on constant table
git-svn-id: http://svn.osgeo.org/postgis/trunk@13386 b70326c6-7e19-0410-871a-916f4a2858ee
2015-03-23 03:43:42 +00:00
Paul Ramsey af14a2ebfb #3041, Cunit 2.1-3 breaks testing
Renovate the raster cunit as well


git-svn-id: http://svn.osgeo.org/postgis/trunk@13238 b70326c6-7e19-0410-871a-916f4a2858ee
2015-02-18 22:56:28 +00:00
Sandro Santilli 7a9dbb81b6 Remove use of lw_vasprintf from raster
reduces useless heap allocations

git-svn-id: http://svn.osgeo.org/postgis/trunk@13218 b70326c6-7e19-0410-871a-916f4a2858ee
2015-02-17 10:03:35 +00:00
Bborie Park c55d0393a3 fix up cunit test
git-svn-id: http://svn.osgeo.org/postgis/trunk@13200 b70326c6-7e19-0410-871a-916f4a2858ee
2015-01-24 17:43:19 +00:00
Bborie Park 35239b6bfa add unit test for #3020. use rectangular out-db raster
git-svn-id: http://svn.osgeo.org/postgis/trunk@13197 b70326c6-7e19-0410-871a-916f4a2858ee
2015-01-24 17:27:11 +00:00
Sandro Santilli 16827278f6 Disreguard ALTER responses during testing
git-svn-id: http://svn.osgeo.org/postgis/trunk@13185 b70326c6-7e19-0410-871a-916f4a2858ee
2015-01-21 11:11:11 +00:00
Sandro Santilli 0329633309 Do not expect DO responses in raster regress
Fixes testsuite broke by r13123

git-svn-id: http://svn.osgeo.org/postgis/trunk@13125 b70326c6-7e19-0410-871a-916f4a2858ee
2014-11-11 09:25:43 +00:00
Sandro Santilli 9d07a9bde1 Implement ST_Retile and ST_CreateOverview (#2247)
Includes testcases and documentation

git-svn-id: http://svn.osgeo.org/postgis/trunk@12941 b70326c6-7e19-0410-871a-916f4a2858ee
2014-09-03 14:52:33 +00:00
Sandro Santilli 790f448d6d Fix output georeference on warping rasters with default georeference
Closes #2911 and re-closes #2251

git-svn-id: http://svn.osgeo.org/postgis/trunk@12928 b70326c6-7e19-0410-871a-916f4a2858ee
2014-08-28 15:15:43 +00:00
Sandro Santilli 3fac48144c Fix crash on null input to ST_Union(raster)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12925 b70326c6-7e19-0410-871a-916f4a2858ee
2014-08-27 08:53:30 +00:00
Bborie Park 57e9771814 forgot to add unit tests to git. ticket #2828
git-svn-id: http://svn.osgeo.org/postgis/trunk@12859 b70326c6-7e19-0410-871a-916f4a2858ee
2014-08-05 12:24:49 +00:00
Bborie Park 2ff7023685 ST_Envelope(raster) in C instead of ST_Envelope(ST_ConvexHull(raster)). ticket #2828
git-svn-id: http://svn.osgeo.org/postgis/trunk@12832 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-26 13:47:29 +00:00
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