From: Jorge Arévalo Date: Wed, 16 Mar 2011 18:48:39 +0000 (+0000) Subject: Deleted empty rt_raster_map_algebra function from rt_core. MapAlgebra X-Git-Tag: 2.0.0alpha1~1891 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13357fffa4e411594d4019522be4a436e61d48ec;p=postgis Deleted empty rt_raster_map_algebra function from rt_core. MapAlgebra implemented at PostgreSQL level. git-svn-id: http://svn.osgeo.org/postgis/trunk@6911 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/raster/rt_core/rt_api.c b/raster/rt_core/rt_api.c index bc009a3e4..051c88395 100644 --- a/raster/rt_core/rt_api.c +++ b/raster/rt_core/rt_api.c @@ -3568,25 +3568,3 @@ int32_t rt_raster_copy_band(rt_context ctx, rt_raster raster1, return rt_raster_add_band(ctx, raster2, newband, nband2); } -/** - * Return a raster which values are the result of an SQL expression involving - * pixel value from the input raster band. - * @param ctx: context, for thread safety - * @param raster: raster on which the expression is evaluated. - * @param nband: band number of the raster to be evaluated. Default to 1. - * @param expr: SQL expression to apply to with value pixels. Ex.: "rast + 2" - * @param nodatavalueexpr: SQL expression to apply to nodata value pixels. Ex.: - * "2" - * @param pixtype: pixeltype assigned to the resulting raster. Expression - * results are truncated to this type. Default to the pixeltype of the first - * raster. - * @return a raster which values are the result of an SQL expression involving - * pixel value from the input raster band. - */ -rt_raster rt_raster_map_algebra(rt_context ctx, rt_raster raster, int nband, - const char * expr, const char * nodatavalueexpr, rt_pixtype pixtype) -{ - rt_raster newraster = NULL; - - return newraster; -} diff --git a/raster/rt_core/rt_api.h b/raster/rt_core/rt_api.h index 8237c60ed..0828da5da 100644 --- a/raster/rt_core/rt_api.h +++ b/raster/rt_core/rt_api.h @@ -728,23 +728,5 @@ int rt_raster_has_no_band(rt_context ctx, rt_raster raster, int nband); int32_t rt_raster_copy_band(rt_context ctx, rt_raster raster1, rt_raster raster2, int nband1, int nband2); -/** - * Return a raster which values are the result of an SQL expression involving - * pixel value from the input raster band. - * @param ctx: context, for thread safety - * @param raster: raster on which the expression is evaluated. - * @param nband: band number of the raster to be evaluated. Default to 1. - * @param expr: SQL expression to apply to with value pixels. Ex.: "rast + 2" - * @param nodatavalueexpr: SQL expression to apply to nodata value pixels. Ex.: - * "2" - * @param pixtype: pixeltype assigned to the resulting raster. Expression - * results are truncated to this type. Default to the pixeltype of the first - * raster. - * @return a raster which values are the result of an SQL expression involving - * pixel value from the input raster band. - */ -rt_raster rt_raster_map_algebra(rt_context ctx, rt_raster raster, int nband, - const char * expr, const char * nodatavalueexpr, rt_pixtype pixtype); - - #endif /* RT_API_H_INCLUDED */ +