- added function rt_band_get_summary_stats to rt_core/rt_api.c and rt_api.h
- added test case to test/core/testapi.c
- added function RASTER_summaryStats to rt_pg/rt_pg.c
- added SQL functions for ST_SummaryStats to rt_pg/rtpostgis.sql.in.c
- added regression tests in test/regress
Associated ticket is #930.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7148 b70326c6-7e19-0410-871a-916f4a2858ee
- added function rt_raster_from_band to rt_core/rt_api.c and rt_api.h
- added test case to test/core/testapi.c
- added function RASTER_band to rt_pg/rt_pg.c
- added SQL functions for ST_Band to rt_pg/rtpostgis.sql.in.c
- added regression tests in test/regress
Associated ticket is #339 and attached patch st_band.3.patch
git-svn-id: http://svn.osgeo.org/postgis/trunk@7147 b70326c6-7e19-0410-871a-916f4a2858ee
- Only calling function memory context is used, except in SRF functions, where
multi_call_memory_ctx is used.
- rt_context internals hidden. The memory management and error reporting is
performed by rtalloc/rterror family functions. They simply call rt_context
struct fields as requested. Same philosophy here than in liblwgeom.
- Now rt_context memory is statically allocated. Before this, new memory for
rt_context was allocated in every function call. And the memory was allocated
outside the calling function (in fcinfo->flinfo->fn_mcxt postgres memory
context).
git-svn-id: http://svn.osgeo.org/postgis/trunk@7106 b70326c6-7e19-0410-871a-916f4a2858ee
-Removed function name in message for warnings
-Added doc about rules when to return notice or error
-Removed commented out notices
-removed warning when passed raster is null. Just return null
-Get band number with PG_GETARG_INT32 instead of PG_GETARG_UINT16 which was converting values < 0 to something > 0
git-svn-id: http://svn.osgeo.org/postgis/trunk@6978 b70326c6-7e19-0410-871a-916f4a2858ee
-Renamed index and nband to bandindex in many functions
-Better handling for NULL in RASTER_setBandNoDataValue following ticket #883. Return original raster if can't set nodata value
git-svn-id: http://svn.osgeo.org/postgis/trunk@6963 b70326c6-7e19-0410-871a-916f4a2858ee
-Moved some warning in the core
-Renamed the parameters to make more explicit which one is "to" and which one is "from"
-Fixed confusion in parameter order.
-Set many rtpostgis.sql.in.c functions to STRICT
-Removed check for null in RASTER_getPixelValue since st_value is now strict. More might follow.
-Removed (or moved) some documentation from rt_api.c already present in rt_api.h
git-svn-id: http://svn.osgeo.org/postgis/trunk@6960 b70326c6-7e19-0410-871a-916f4a2858ee
-Added function name to many error messages
-Standardized the way we write "nodata" from "NODATA" to "nodata"
-Moved some documentation to the header file
-My editor remove a lot of trailing space and convert tab to 4 spaces. Please make your editor do the same.
-Removed declarations of many unused variable
git-svn-id: http://svn.osgeo.org/postgis/trunk@6920 b70326c6-7e19-0410-871a-916f4a2858ee
documentation).
- RASTER_addBand code moved to core level. The new RASTER_addBand function calls
the core one (rt_raster_generate_new_band).
- Added regression tests for MapAlgebra.
- Deleted lexer/parser at core level. Not used.
- Fixed small bug in documentation: ST_SetBandNoDataValue returns a raster, not
an integer.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6832 b70326c6-7e19-0410-871a-916f4a2858ee
ST_Value accept a boolean parameter which, when set to false, have the function to return nodata values as their true value instead of null.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6680 b70326c6-7e19-0410-871a-916f4a2858ee
Related ticket #593. Fixed bug with debug functions at raster core level. Still
need to change the loader and the doc.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6678 b70326c6-7e19-0410-871a-916f4a2858ee
postgis_raster_lib_version, to match the PostGIS build date and version. Related
ticket #653
git-svn-id: http://svn.osgeo.org/postgis/trunk@6554 b70326c6-7e19-0410-871a-916f4a2858ee
default_info_handler() call. Other minor bugs fixed. Created DEBUG file in
raster directory, similar to postgis/DEBUG file. Erased references to old raster debug variables in configure.ac. Deleted old readme file.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6136 b70326c6-7e19-0410-871a-916f4a2858ee
- Modified PostGIS 'configure.ac' script to add support for new raster type (driven by '--with-raster' configure option.
- Added raster build options to 'GNUMakefile' script.
- PostGIS Python scripts moved to a 'python' subdirectory inside 'raster/scripts' directory.
- References to "WKT" deleted from source code.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6019 b70326c6-7e19-0410-871a-916f4a2858ee