Commit graph

865 commits

Author SHA1 Message Date
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
Bborie Park c6bdfe74a9 Make sure to free OGR geometry when the geometry is empty
git-svn-id: http://svn.osgeo.org/postgis/trunk@10867 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-19 23:26:39 +00:00
Bborie Park f16ede3b16 Changed memory handling of offline band path. Now explicitly owned
internally

git-svn-id: http://svn.osgeo.org/postgis/trunk@10866 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-19 23:26:33 +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
Bborie Park c7921b194d Tweaked UpdateRasterSRID() to drop/add coverage tile as needed
git-svn-id: http://svn.osgeo.org/postgis/trunk@10853 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-18 20:42:05 +00:00
Bborie Park 26da7b4da1 Fixed handling of identifiers with single quote (') such as in O'Reilly.
git-svn-id: http://svn.osgeo.org/postgis/trunk@10845 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-15 00:55:51 +00:00
Bborie Park dda7ce4652 Changed testing of extent geometry
git-svn-id: http://svn.osgeo.org/postgis/trunk@10843 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-14 20:28:03 +00:00
Bborie Park 10162a38a8 Updated raster2pgsql help and docs to reflect changes to
regular_blocking.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10842 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-14 20:27:54 +00:00
Bborie Park 4c1f9a321c regular_blocking constraint removed. regular_blocking column of
raster_columns now looks for spatially_unique and coverage_tile
constraints. Ticket #2150

git-svn-id: http://svn.osgeo.org/postgis/trunk@10841 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-14 20:27:46 +00:00
Bborie Park 29c95b58be Added regression tests for ST_IsCoverageTile().
git-svn-id: http://svn.osgeo.org/postgis/trunk@10840 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-14 20:27:38 +00:00
Bborie Park bc906c6c6d Added support for padded edge tiles to ST_IsCoverageTile()
git-svn-id: http://svn.osgeo.org/postgis/trunk@10839 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-14 20:27:30 +00:00
Bborie Park ed72bde7d3 Added support for no-band rasters to ST_Tile(raster)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10838 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-14 20:27:21 +00:00
Bborie Park 25b8f66978 Added parameters to ST_Tile(raster) to control padding of generated tiles.
ST_Tile(raster) no longer defaults to padding tiles. Ticket #2069

git-svn-id: http://svn.osgeo.org/postgis/trunk@10836 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-14 20:27:06 +00:00
Bborie Park d13a3a5175 Addition of coverage_tile constraint for raster. Ticket #2148
git-svn-id: http://svn.osgeo.org/postgis/trunk@10835 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-14 20:26:56 +00:00
Bborie Park 5cc34a67e5 Addition of ST_IsCoverageTile() to tell if tile is part of a coverage
git-svn-id: http://svn.osgeo.org/postgis/trunk@10834 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-14 20:26:49 +00:00
Bborie Park 094543e095 Added raster's spatially_unique constraint. Ticket #2149. Still needs
regression tests but won't happen until regular_blocking is finished.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10833 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-14 20:26:41 +00:00
Bborie Park 00fd6a924c Tweaked the extent computed for the extent constraint
git-svn-id: http://svn.osgeo.org/postgis/trunk@10832 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-14 20:26:30 +00:00
Bborie Park 702c0ea4d4 Changed blocksize constraint to permit multiple possible values. Ticket
is #2143. We just need a coverage constraint and a spatially unique
constraint to determine regularly blocked.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10831 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-14 20:26:20 +00:00
Bborie Park d83f052c5e raster2pgsql no longer pads tiles by default based upon tile position and tile
size. This is part of the refactoring to remove padded tiles. Flag -P
added so that users can indicate that tiles should be padded.
Ticket #826.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10829 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-14 20:26:05 +00:00
Bborie Park dc568e069e Quiet down ST_SameAlignment(raster, raster) as it was way too talkative
git-svn-id: http://svn.osgeo.org/postgis/trunk@10827 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-14 20:25:45 +00:00
Bborie Park 3fd546c380 Updated regression tests for raster2pgsql
git-svn-id: http://svn.osgeo.org/postgis/trunk@10826 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-14 20:25:33 +00:00
Bborie Park b6117968e6 More verbose output when constraints fail to be added to a raster
column. Ticket #2141

git-svn-id: http://svn.osgeo.org/postgis/trunk@10819 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-07 22:07:18 +00:00
Bborie Park cebb5c8923 Fixed behavior of ST_ConvexHull() for empty rasters. Ticket #2126
git-svn-id: http://svn.osgeo.org/postgis/trunk@10810 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-07 01:08:21 +00:00
Mateusz Loskot d9eb8fd557 Added RasterReader.copy_to() utility based on SQL command COPY TO and PostGIS Raster functions ST_As<FORMAT> and outputs rasters to hex-encoded plain text or binary raster file.
git-svn-id: http://svn.osgeo.org/postgis/trunk@10805 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-06 17:39:04 +00:00
Bborie Park 658209cda6 Fixed handling of SRS strings as they are passed to GDAL functions.
Ticket #2134

git-svn-id: http://svn.osgeo.org/postgis/trunk@10803 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-06 05:43:59 +00:00
Bborie Park 1d1dadd509 Removed PICFLAGS from CFLAGS when compiling CUnit suites. Ticket #2125
git-svn-id: http://svn.osgeo.org/postgis/trunk@10779 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-02 22:36:16 +00:00
Bborie Park 249b501069 Added ST_Resize(raster) to resize a raster using desired width/height.
Ticket #1293.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10774 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-01 01:19:53 +00:00
Bborie Park 58e564f82b Removed requirements of SRID for calling GDAL Warp API
git-svn-id: http://svn.osgeo.org/postgis/trunk@10773 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-01 01:19:45 +00:00
Bborie Park fac9a0cdad Additional cleanup and validation regarding ticket #1653
git-svn-id: http://svn.osgeo.org/postgis/trunk@10770 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-30 01:13:10 +00:00
Bborie Park 997d2424cf Added a special case to RASTER_GDALWarp() where if the input raster has
no SRID (SRID_UNKNOWN) AND the operation does not involve a
reprojection, then use a catchall/substitute SRID (in this case 4326).
Ticket #2119

git-svn-id: http://svn.osgeo.org/postgis/trunk@10768 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-30 01:12:58 +00:00
Bborie Park e11c36ae9e Removed confusion between ST_Resample(raster) and ST_Transform(raster)
by removing srid parameter for ST_Resample(). Ticket #1653

git-svn-id: http://svn.osgeo.org/postgis/trunk@10760 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-29 18:59:22 +00:00
Bborie Park 2a743f9a05 Renamed RASTER_resample() to RASTER_GDALWarp() and adjusted SQL
functions as needed. Next is to audit and possibly refactor those
functions that make use of RASTER_resample().

git-svn-id: http://svn.osgeo.org/postgis/trunk@10759 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-29 18:59:13 +00:00
Regina Obe 5abfd469a8 #1795 make raster_views, raster_columns, geometry_columns, geometry_views, spatial_ref_sys public viewable -- none issue since they are views that only list user viewable tables and aspatial_ref_sys is harmless public info.
git-svn-id: http://svn.osgeo.org/postgis/trunk@10750 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-29 02:12:06 +00:00
Bborie Park 4baab52252 Added CUnit test suites for raster core. Old raster core regression
tests can still be found in raster/test/core but are no longer run.
Probably should delete before 2.1 is released.
Ticket #173

git-svn-id: http://svn.osgeo.org/postgis/trunk@10749 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-29 01:21:33 +00:00
Bborie Park 1806858225 Refactored return and parameters of rt_raster_iterator()
git-svn-id: http://svn.osgeo.org/postgis/trunk@10746 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-28 20:16:45 +00:00
Bborie Park 0f70d41994 Refactored return and parameters of rt_raster_from_two_rasters()
git-svn-id: http://svn.osgeo.org/postgis/trunk@10745 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-28 19:31:59 +00:00
Bborie Park f43ac4e121 Refactored return and parameters of rt_raster_surface()
git-svn-id: http://svn.osgeo.org/postgis/trunk@10744 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-28 15:27:47 +00:00
Bborie Park 224492f6fa Added ST_NotSameAlignmentReason(raster, raster). Ticket #1709
git-svn-id: http://svn.osgeo.org/postgis/trunk@10742 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-27 00:58:36 +00:00
Bborie Park 3b70874da9 Added ST_Transform(raster) variant that allows of aligning output
rasters to a reference raster. Ticket #2105

git-svn-id: http://svn.osgeo.org/postgis/trunk@10741 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-26 21:09:02 +00:00
Bborie Park 0b19048c55 Renamed variants of ST_World2RasterCoord() and ST_Raster2WorldCoord() to
ST_WorldToRasterCoord() and ST_RasterToWorldCoord() as names are
inconsistent with other PostGIS function names. Ticket #2104

git-svn-id: http://svn.osgeo.org/postgis/trunk@10740 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-26 19:13:04 +00:00
Bborie Park c93a40d0b1 Where appropriate, functions in rt_core now use standardized function
return states.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10735 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-25 21:55:42 +00:00
Bborie Park cf1fad5072 Fixed issue where ST_AsRaster() may not return raster with specified
pixel types. Ticket #2100

git-svn-id: http://svn.osgeo.org/postgis/trunk@10710 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-19 23:18:59 +00:00
Bborie Park a267014232 Code cleanup of rt_raster_gdal_rasterize()
git-svn-id: http://svn.osgeo.org/postgis/trunk@10709 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-19 23:18:53 +00:00
Bborie Park a0adf1f20b Refactored internal use variables and functions for rt_raster_iterator()
git-svn-id: http://svn.osgeo.org/postgis/trunk@10708 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-19 23:18:48 +00:00
Bborie Park faab58c46c Added RANGE uniontype option for ST_Union(raster) Ticket #2097
git-svn-id: http://svn.osgeo.org/postgis/trunk@10696 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-16 22:59:46 +00:00
Bborie Park 60bddebf57 Fixed SQL error in regression test
git-svn-id: http://svn.osgeo.org/postgis/trunk@10691 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-16 03:39:42 +00:00
Bborie Park 8aab3b0353 Added docs and regression test for extent parameter variants of
ST_Slope, ST_Aspect and ST_Hillshade

git-svn-id: http://svn.osgeo.org/postgis/trunk@10690 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-16 01:32:10 +00:00
Bborie Park 81d92baf7d If hillshade < 0, hillshade = 0 for ST_HillShade()
git-svn-id: http://svn.osgeo.org/postgis/trunk@10689 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-16 01:32:02 +00:00
Bborie Park 14dfdbfd6b Added variants of ST_Slope, ST_Aspect and ST_Hillshade to provide
support for tiles in a coverage. Ticket is #2078

git-svn-id: http://svn.osgeo.org/postgis/trunk@10688 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-16 01:31:55 +00:00