Commit graph

412 commits

Author SHA1 Message Date
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
Bborie Park 972305ae7c Addition of ST_AddBand(raster, ...) for out-db bands. Ticket #2276
git-svn-id: http://svn.osgeo.org/postgis/trunk@11311 b70326c6-7e19-0410-871a-916f4a2858ee
2013-04-23 19:32:06 +00:00
Bborie Park 1059e4808b Added numerical parameters version of ST_SetGeoReference(raster).
Ticket #613

git-svn-id: http://svn.osgeo.org/postgis/trunk@11304 b70326c6-7e19-0410-871a-916f4a2858ee
2013-04-16 18:23:36 +00:00
Bborie Park 2f6ff216c8 Code cleanup to shut gcc up
git-svn-id: http://svn.osgeo.org/postgis/trunk@11223 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-29 16:34:05 +00:00
Bborie Park f2705864ef Refactored expression variant of ST_MapAlgebra() to be faster.
Performance is almost as good as ST_MapAlgebraExpr(). Ticket #2133

git-svn-id: http://svn.osgeo.org/postgis/trunk@11222 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-29 16:33:57 +00:00
Bborie Park 993eefd8f0 Fix bad dimensions when rescaling rasters with default geotransform
matrix. Ticket #2251

git-svn-id: http://svn.osgeo.org/postgis/trunk@11215 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-27 13:30:42 +00:00
Bborie Park f64e5c278c Enhanced ST_Union(raster, uniontype) to union all bands of all rasters.
Ticket #2200.

git-svn-id: http://svn.osgeo.org/postgis/trunk@11207 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-26 04:14:48 +00:00
Bborie Park 272988c583 Delete old core raster tests. Ticket #2115
git-svn-id: http://svn.osgeo.org/postgis/trunk@11203 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-25 17:11:42 +00:00
Bborie Park f3122464c1 Addition of ST_FromGDALRaster(). This is what happens on a long airplane
flight! Ticket #2123.

git-svn-id: http://svn.osgeo.org/postgis/trunk@11202 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-25 03:14:49 +00:00
Bborie Park aa6b23a751 Added ability to specify name of filename column in raster2pgsql. More
stuff being done stuck in a tube at 30k feet.

git-svn-id: http://svn.osgeo.org/postgis/trunk@11200 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-25 03:05:13 +00:00
Bborie Park eb75a33623 Added ST_MinConvexHull(raster). Ticket #2210
git-svn-id: http://svn.osgeo.org/postgis/trunk@11118 b70326c6-7e19-0410-871a-916f4a2858ee
2013-02-26 23:23:38 +00:00
Bborie Park c9d0c51865 Changed name of exclusion constraint to by dynamic due to conflict of
implicit index names. Ticket #2215

git-svn-id: http://svn.osgeo.org/postgis/trunk@11117 b70326c6-7e19-0410-871a-916f4a2858ee
2013-02-26 17:42:12 +00:00
Bborie Park c131910b48 Faster ST_Union() done using memcpy when possible
git-svn-id: http://svn.osgeo.org/postgis/trunk@11095 b70326c6-7e19-0410-871a-916f4a2858ee
2013-02-16 01:00:33 +00:00
Bborie Park ac3a63c074 Changed how rasters with unknown SRID and default geotransform are
handled when calling GDAL Warp API. Ticket #2203

git-svn-id: http://svn.osgeo.org/postgis/trunk@11094 b70326c6-7e19-0410-871a-916f4a2858ee
2013-02-15 23:53:32 +00:00
Bborie Park 4c656b32ab Fix function parameter value overflow that caused problems when copying
data from a GDAL dataset. Problem first appeared in ST_Resize(). Ticket #2188

git-svn-id: http://svn.osgeo.org/postgis/trunk@11057 b70326c6-7e19-0410-871a-916f4a2858ee
2013-01-28 23:01:25 +00:00
Sandro Santilli e4f2312d2d Drop "lwgeom_init_allocators" need, add "lwgeom_set_handlers"
This change allows using liblwgeom from clients which cannot define
C-level methods for link-back (e.g. python ctypes). See #2089.

NOTE: existing clients should take care of calling the new function
      because their "lwgeom_init_allocators" won't be called anymore.
      Failure to do so will result in default allocators / reporters
      being used.

Thanks Giuseppe Sucameli for the base work on this

git-svn-id: http://svn.osgeo.org/postgis/trunk@10937 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-27 12:56:59 +00:00
Bborie Park 867cee8314 Stomp out memory leaks in CUnit tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@10868 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-19 23:26:45 +00:00
Sandro Santilli ec4425d172 Revert "Move JSON input test where it belons (#2156)"
Accidentally committed an unrelated patch..

git-svn-id: http://svn.osgeo.org/postgis/trunk@10860 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-19 18:06:17 +00:00
Sandro Santilli 701c3bc5eb Move JSON input test where it belons (#2156)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10859 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-19 18:01:19 +00:00