]> granicus.if.org Git - postgis/commitdiff
Deleted empty rt_raster_map_algebra function from rt_core. MapAlgebra
authorJorge Arévalo <jorge.arevalo at deimos-space.com>
Wed, 16 Mar 2011 18:48:39 +0000 (18:48 +0000)
committerJorge Arévalo <jorge.arevalo at deimos-space.com>
Wed, 16 Mar 2011 18:48:39 +0000 (18:48 +0000)
implemented at PostgreSQL level.

git-svn-id: http://svn.osgeo.org/postgis/trunk@6911 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_core/rt_api.c
raster/rt_core/rt_api.h

index bc009a3e42fbb360b0174bc325a2cf2bd9e07f7a..051c88395169acc8d816ddd389e87962c6dabcac 100644 (file)
@@ -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;
-}
index 8237c60edf93c7336fdf4f57cec1c9d52f98dd75..0828da5dae993ee1df2f7ed60aade9af247dded7 100644 (file)
@@ -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 */
+