Bborie Park
|
1897194dd0
|
Fixed ST_AsRaster to duplicate exactly the attributes of a reference raster.
Associated ticket is #1336.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8263 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-30 20:35:57 +00:00 |
|
David Zwarg
|
8fee101ce1
|
Added helper user functions for common MapAlgebra operations: Min, Max, Mean, Range. #1318
git-svn-id: http://svn.osgeo.org/postgis/trunk@8262 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-30 19:26:34 +00:00 |
|
David Zwarg
|
3b770bde14
|
Updated tests for 'dog-ate-my-homework' test. Expanded comments and elaborated on complex conditionals in ST_MapAlgebraFctNgb
git-svn-id: http://svn.osgeo.org/postgis/trunk@8261 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-30 16:45:54 +00:00 |
|
David Zwarg
|
6582cf9f06
|
Added additional tests for ST_MapAlgebraFctNgb, changed string compare on nodatamode to !=
git-svn-id: http://svn.osgeo.org/postgis/trunk@8260 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-30 14:51:33 +00:00 |
|
Bborie Park
|
28c81a8579
|
In preparation of turning the table raster_columns into a view, refactored ST_BandMetadata to have the bandnum parameter be variadic. Fleshed out regression tests for ST_BandMetadata.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8259 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-29 23:25:49 +00:00 |
|
David Zwarg
|
5255d20dab
|
Nodata mode defaults to 'ignore' if it is NULL. Added tests for out of range neighborhoods.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8185 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-18 21:28:04 +00:00 |
|
David Zwarg
|
d7c4d5437d
|
Non-functional change. Updated author email address for dzwarg.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8184 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-18 20:56:57 +00:00 |
|
David Zwarg
|
663a3de49e
|
Refactored ST_MapAlgebraFctNgb to cache userfunction lookup, and accept NULL input and output values.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8183 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-18 20:53:46 +00:00 |
|
David Zwarg
|
15c2f240d2
|
Refactored ST_MapAlgebraFct to cache userfunction lookup, and accept NULL input and output values.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8182 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-18 20:15:00 +00:00 |
|
Bborie Park
|
028ea10f03
|
Added a flag --with-raster-dblwarning so as to provide the software builder the option of enabling all the value truncation/clamping/conversion warnings, which can be many. The new default is to suppress those warnings. All appropriate regression tests have been updated.
Associated ticket is #1307
git-svn-id: http://svn.osgeo.org/postgis/trunk@8181 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-18 18:30:00 +00:00 |
|
David Zwarg
|
1459ec6ebd
|
Enabled all tests on ST_MapAlgebraFctNgb.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8180 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-18 15:53:54 +00:00 |
|
Bborie Park
|
8faec69f9a
|
Fix the 8.4 error only described in #1296.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8165 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-17 22:48:57 +00:00 |
|
Bborie Park
|
6183db8972
|
Fixed invalid handling of nodatavalue in ST_BandMetaData(). Issue arises due to C backend using Float8GetDatum while SQL frontend using real datatype.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8162 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-17 14:49:34 +00:00 |
|
David Zwarg
|
237f13cc96
|
Added single version of map algebra that operates on neighborhoods.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8154 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-14 23:21:12 +00:00 |
|
Bborie Park
|
5bd86f0e99
|
Added ability to specify raster width and height to ST_Resample.
Associated ticket is #1267
git-svn-id: http://svn.osgeo.org/postgis/trunk@8153 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-14 21:40:25 +00:00 |
|
Bborie Park
|
7264f90764
|
Added checks to make sure user-function is valid. Also added check for volatility of user-function with notice if function is volatile.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8147 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-12 15:12:30 +00:00 |
|
Bborie Park
|
3f1a35b8fb
|
Add ST_MapAlgebraFct for 2 rasters. This is the sibling of 2-raster ST_MapAlgebraExpr. Renamed RASTER_mapAlgebra2Expr to RASTER_mapAlgebra2 as both 2-raster ST_MapAlgebraExpr and ST_MapAlgebraFct call the same function.
Associated ticket is #1281.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8137 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-11 15:41:32 +00:00 |
|
Bborie Park
|
8a5872696a
|
Removed all remaining memory leaks from testapi.c
git-svn-id: http://svn.osgeo.org/postgis/trunk@8130 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-09 23:52:45 +00:00 |
|
Bborie Park
|
ee0f16bd37
|
Rolled back attempt to clean up memory handling. We'll just live with this until testapi.c is replaced by cunit tests for raster.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8129 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-09 23:12:29 +00:00 |
|
Bborie Park
|
41d2a118dc
|
Separated the output raster's extent calculation from RASTER_mapAlgebra2Expr() in rt_pg.c to rt_raster_from_two_rasters() in rt_api.c. Added test of rt_raster_from_two_rasters() in testapi.c
git-svn-id: http://svn.osgeo.org/postgis/trunk@8128 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-09 23:00:53 +00:00 |
|
Bborie Park
|
0fb583a086
|
Fixed bug where an expression doesn't contain a placeholder (either rast1 or rast2).
Associated ticket is #1276.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8126 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-09 15:35:06 +00:00 |
|
Bborie Park
|
53e28c2724
|
Renamed ST_MapAlgebra2Expr to ST_MapAlgebra after concensus with Pierre and Regina.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8111 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-08 05:27:51 +00:00 |
|
Bborie Park
|
4a340dd97c
|
Replaced ST_MapAlgebraExpr's "nodatavalueexpr" parameter with "nodataval" and datatype changed from text to double precision. This makes this parameter the same as "nodatanodataval" found in ST_MapAlgebra2Expr.
Associated ticket is #866
git-svn-id: http://svn.osgeo.org/postgis/trunk@8110 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-08 00:00:51 +00:00 |
|
Bborie Park
|
c395e3cfe2
|
Addition of 2-raster map algebra function ST_MapAlgebra2Expr. Next is ST_MapAlgebra2Fct.
Ticket is #1268.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8108 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-07 21:07:56 +00:00 |
|
Bborie Park
|
f759f57e69
|
Renamed output parameter "hasnodatavalue" to "hasnodata" in ST_BandMetadata(). This makes the parameter name consistent with all other use of "hasnodata" and the docs for ST_BandMetadata.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8103 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-11-06 19:30:32 +00:00 |
|
Bborie Park
|
4c7dbc99ce
|
Corrected rt_raster_same_alignment() and RASTER_sameAlignment() to behave as an end-user would expect it to. So intead of errors when parameters don't match, return false.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7999 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-10-21 19:10:53 +00:00 |
|
David Zwarg
|
41b8676733
|
Implemented raster map algebra with user functions/callbacks. (#860)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7980 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-10-14 18:11:27 +00:00 |
|
Sandro Santilli
|
b14980566d
|
Do not input an explicit value to mean unknown SRID (in raster test)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7962 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-10-10 07:35:36 +00:00 |
|
Bborie Park
|
49ca7588dd
|
Added additional error checking and error messages to ST_SameAlignment function
git-svn-id: http://svn.osgeo.org/postgis/trunk@7959 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-10-07 00:29:40 +00:00 |
|
Bborie Park
|
d911b1ee21
|
Implements ST_SameAlignment.
Associated ticket is #589.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7951 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-10-05 23:03:19 +00:00 |
|
Bborie Park
|
2bbfeb294e
|
For linestrings, use same logic for points where extent is increased by half a pixel to catch geometries on the edges.
Associated ticket is #1213
git-svn-id: http://svn.osgeo.org/postgis/trunk@7941 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-10-04 19:50:54 +00:00 |
|
David Zwarg
|
bc06f1739b
|
Changed ST_MapAlgebra to ST_MapAlgebraExpr. Also moved around the pixeltype parameter -- it is no longer optional. Also updated docs that referred to ST_MapAlgebra. (#860)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7925 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-09-30 20:03:23 +00:00 |
|
Bborie Park
|
6a8a4356c4
|
Updated regression tests to correctly support change of unknown SRID from -1 to 0.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7923 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-09-30 00:11:55 +00:00 |
|
Bborie Park
|
167c3b8c9d
|
Changed function ST_Intersects(raster, raster, int, int) to ST_Intersects(raster, raster). Added additional comments to rt_raster_geopoint_to_cell().
Associated ticket is #1212
git-svn-id: http://svn.osgeo.org/postgis/trunk@7919 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-09-29 18:33:27 +00:00 |
|
Bborie Park
|
224a487980
|
Removed ST_Intersects(raster, int, raster, int) version of two raster ST_Intersects.
Associated ticket is #1212
git-svn-id: http://svn.osgeo.org/postgis/trunk@7901 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-09-27 03:40:08 +00:00 |
|
Regina Obe
|
265c3a8605
|
add missing geos flag to let it make check under mingw
git-svn-id: http://svn.osgeo.org/postgis/trunk@7891 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-09-25 20:37:39 +00:00 |
|
Bborie Park
|
b443689cf4
|
Tweaks to makefiles due to linker symbol errors in OSX. Hopefully this can also resolve the issue with #1207.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7889 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-09-24 19:05:10 +00:00 |
|
Bborie Park
|
c5d7903487
|
Further tweaks to rt_raster_gdal_rasterize to correctly handle auto-computed extents of multipoints. Addition of ST_Intersects for two rasters. Refactored the one raster and one geometry version of ST_Intersects.
Associated ticket is #1176
git-svn-id: http://svn.osgeo.org/postgis/trunk@7884 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-09-22 15:07:25 +00:00 |
|
Bborie Park
|
6f0e380b17
|
Updated expected output due to change in message
git-svn-id: http://svn.osgeo.org/postgis/trunk@7817 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-09-07 13:58:19 +00:00 |
|
Bborie Park
|
152a2d6786
|
Added optimizations and shortcuts for rt_band_get_quantiles_stream
git-svn-id: http://svn.osgeo.org/postgis/trunk@7802 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-09-02 01:54:43 +00:00 |
|
Bborie Park
|
aba77a3674
|
Fixed the function rt_band_get_summary_stats rt_core/rt_api.c to correctly handle the situation where a band's values are all nodata
git-svn-id: http://svn.osgeo.org/postgis/trunk@7788 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-08-25 23:23:46 +00:00 |
|
Bborie Park
|
56791ce3b5
|
Fixed the problem where having configure detect that GDAL has the GDALFPolygonize function does not cause the code to use GDALFPolygonize. This is due to the macro GDALFPOLYGONIZE not being set anywhere. So, it is now being set in raster_config.h.in and included in rt_core/rt_api.h. Had to update testapi.c as the geometries generated differ depending on whether or not GDALFPolygonize is used.
Associated ticket is #650
git-svn-id: http://svn.osgeo.org/postgis/trunk@7785 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-08-25 14:44:55 +00:00 |
|
Bborie Park
|
d432dc28e5
|
Inclusion of missing ST_PixelWidth and ST_PixelHeight functions and regression tests.
Associated ticket is #928
git-svn-id: http://svn.osgeo.org/postgis/trunk@7779 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-08-24 15:23:25 +00:00 |
|
Bborie Park
|
3ac670b992
|
Refactored ST_ValueCount and ST_ValuePercent to be a C function rather than a plpgsql function.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7778 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-08-23 22:41:22 +00:00 |
|
Regina Obe
|
df057abedf
|
#1158 add proj flags to fix mingw test issue
git-svn-id: http://svn.osgeo.org/postgis/trunk@7774 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-08-21 03:34:56 +00:00 |
|
Bborie Park
|
4c3dac62a8
|
More fixups for the quantile coverage function. Fixes segfault that seems to only occur on OSX.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7771 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-08-20 17:51:04 +00:00 |
|
Bborie Park
|
28797da0e1
|
Adds coverage table version of ST_Quantile and ST_ApproxQuantile. Function implemented using the algorithm discussed in
A One-Pass Space-Efficient Algorithm for Finding Quantiles (1995)
by Rakesh Agrawal, Arun Swami
in Proc. 7th Intl. Conf. Management of Data (COMAD-95)
http://www.almaden.ibm.com/cs/projects/iis/hdb/Publications/papers/comad95.pdf
Also refactored the regression test for rt_histogram due to unnecessary columns in output
git-svn-id: http://svn.osgeo.org/postgis/trunk@7765 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-08-19 19:08:36 +00:00 |
|
Bborie Park
|
cd974c4adc
|
Commit of patch provided by David Zwarg in #482 adding the functions ST_SetRotation, ST_Rotation, ST_PixelHeight and ST_PixelWidth.
Associated tickets are #482, #928, #929 and #936
git-svn-id: http://svn.osgeo.org/postgis/trunk@7763 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-08-19 14:04:50 +00:00 |
|
Bborie Park
|
33352aacb5
|
Consolidated various struct declarations from rt_api.c into rt_api.h as these structs are duplicatively redeclared in rt_pg.c and testapi.c
git-svn-id: http://svn.osgeo.org/postgis/trunk@7745 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-08-13 18:10:44 +00:00 |
|
Bborie Park
|
ed8d71db19
|
Addition of ST_AsRaster function to provide the ability to convert geometries into rasters.
Associated ticket is #1141.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7675 b70326c6-7e19-0410-871a-916f4a2858ee
|
2011-07-25 15:52:36 +00:00 |
|