int32_t
rt_raster_get_srid(rt_raster raster) {
+ assert(NULL != raster);
-
- assert(NULL != raster);
-
- return raster->srid;
+ return clamp_srid(raster->srid);
}
void
rt_raster_set_srid(rt_raster raster, int32_t srid) {
+ assert(NULL != raster);
-
- assert(NULL != raster);
-
- raster->srid = srid;
+ raster->srid = clamp_srid(srid);
}
int
gt);
ptarray_set_point4d(pts, 3, &p4d);
- ret = lwpoly_construct(raster->srid, 0, 1, rings);
+ ret = lwpoly_construct(rt_raster_get_srid(raster), 0, 1, rings);
return ret;
}
rast->ipY = read_float64(&ptr, endian);
rast->skewX = read_float64(&ptr, endian);
rast->skewY = read_float64(&ptr, endian);
- rast->srid = read_int32(&ptr, endian);
+ rt_raster_set_srid(rast, read_int32(&ptr, endian));
rast->width = read_uint16(&ptr, endian);
rast->height = read_uint16(&ptr, endian);
int i = 0;
int idx;
int32_t flag;
+ double gt[6] = {0.};
assert(NULL != raster);
assert(NULL != bandNums);
}
/* copy raster attributes */
- /* scale */
- rt_raster_set_scale(rast, raster->scaleX, raster->scaleY);
- /* offset */
- rt_raster_set_offsets(rast, raster->ipX, raster->ipY);
- /* skew */
- rt_raster_set_skews(rast, raster->skewX, raster->skewY);
+ rt_raster_get_geotransform_matrix(raster, gt);
+ rt_raster_set_geotransform_matrix(rast, gt);
+
/* srid */
rt_raster_set_srid(rast, raster->srid);
err = 0;
/* same srid */
- if (rast1->srid != rast2->srid) {
+ if (rt_raster_get_srid(rast1) != rt_raster_get_srid(rast2)) {
RASTER_DEBUG(3, "The two rasters provided have different SRIDs");
err = 1;
}
assert(NULL != rast2);
/* rasters must have same srid */
- if (rast1->srid != rast2->srid) {
+ if (rt_raster_get_srid(rast1) != rt_raster_get_srid(rast2)) {
rterror("rt_raster_from_two_rasters: The two rasters provided do not have the same SRID");
*err = 0;
return NULL;
*err = 0;
return NULL;
}
- raster->srid = _rast[i]->srid;
+ rt_raster_set_srid(raster, _rast[i]->srid);
rt_raster_get_geotransform_matrix(_rast[i], gt);
rt_raster_set_geotransform_matrix(raster, gt);
break;
*err = 0;
return NULL;
}
- raster->srid = _rast[0]->srid;
+ rt_raster_set_srid(raster, _rast[0]->srid);
rt_raster_set_geotransform_matrix(raster, gt);
RASTER_DEBUGF(4, "gt = (%f, %f, %f, %f, %f, %f)",
gt[0],
*err = 0;
return NULL;
}
- raster->srid = _rast[0]->srid;
+ rt_raster_set_srid(raster, _rast[0]->srid);
rt_raster_set_scale(raster, 0, 0);
/* set offsets if provided */
*err = 0;
return NULL;
}
- raster->srid = _rast[0]->srid;
+ rt_raster_set_srid(raster, _rast[0]->srid);
/* get upper-left corner */
rt_raster_get_geotransform_matrix(_rast[0], gt);
#include "../../postgis_config.h"
#include "lwgeom_pg.h"
-#include "liblwgeom.h"
-#include "liblwgeom_internal.h" /* for clamp_srid() */
#include "rt_pg.h"
#include "pgsql_compat.h"
CHECK_EQUALS(rt_raster_get_y_offset(raster), 642930.0);
CHECK_EQUALS(rt_raster_get_x_skew(raster), 0);
CHECK_EQUALS(rt_raster_get_y_skew(raster), 0);
- CHECK_EQUALS(rt_raster_get_srid(raster), -1);
+ CHECK_EQUALS(rt_raster_get_srid(raster), 0);
CHECK_EQUALS(rt_raster_get_width(raster), 3);
CHECK_EQUALS(rt_raster_get_height(raster), 1);
{
CHECK_EQUALS_DOUBLE(rt_raster_get_y_offset(raster), 5793244.00);
CHECK_EQUALS_DOUBLE(rt_raster_get_x_skew(raster), 0.0);
CHECK_EQUALS_DOUBLE(rt_raster_get_y_skew(raster), 0.0);
- CHECK_EQUALS(rt_raster_get_srid(raster), -1);
+ CHECK_EQUALS(rt_raster_get_srid(raster), 0);
CHECK_EQUALS(rt_raster_get_width(raster), 5);
CHECK_EQUALS(rt_raster_get_height(raster), 5);
{
BEGIN
+NOTICE: SRID value -1 converted to the officially unknown SRID value 0
+NOTICE: SRID value -1 converted to the officially unknown SRID value 0
+NOTICE: SRID value -1 converted to the officially unknown SRID value 0
1|5|5|8BUI|8BUI|8BUI
2|5|5|8BUI|8BUI|8BUI
3|5|5|8BUI|8BUI|8BUI
$$
DECLARE
BEGIN
- RETURN ST_AddBand(ST_MakeEmptyRaster(10, 10, ulx, uly, 1, 1, 0, 0, -1), '32BF', val, -1);
+ RETURN ST_AddBand(ST_MakeEmptyRaster(10, 10, ulx, uly, 1, 1, 0, 0, 0), '32BF', val, -1);
END;
$$
LANGUAGE 'plpgsql';
$$
DECLARE
BEGIN
- RETURN ST_AddBand(ST_MakeEmptyRaster(h, w, 0, 0, 1, 1, 0, 0, -1), '32BF', val, -1);
+ RETURN ST_AddBand(ST_MakeEmptyRaster(h, w, 0, 0, 1, 1, 0, 0, 0), '32BF', val, -1);
END;
$$
LANGUAGE 'plpgsql';
INSERT INTO rt_properties_test
VALUES ( 3, '1x1, ip:7.5,2.5 scale:5,5 skew:0,0, srid:-1, width:1, height:1',
- -1, 1, 1, --- SRID, width, height
+ 0, 1, 1, --- SRID, width, height
5, 5, 7.5, 2.5, 0, 0, --- georeference
(
'01' -- little endian (uint8 ndr)
||
'0000000000000000' -- skewY (float64 0)
||
-'FFFFFFFF' -- SRID (int32 -1)
+'00000000' -- SRID (int32 0)
||
'0100' -- width (uint16 1)
||
INSERT INTO rt_properties_test
VALUES ( 4, '1x1, ip:7.5,2.5 scale:5,5 skew:1,1, srid:-1, width:1, height:1',
- -1, 1, 1, --- SRID, width, height
+ 0, 1, 1, --- SRID, width, height
5, 5, 7.5, 2.5, 1, 1, --- georeference
(
'01' -- little endian (uint8 ndr)
||
'000000000000F03F' -- skewY (float64 1)
||
-'FFFFFFFF' -- SRID (int32 -1)
+'00000000' -- SRID (int32 0)
||
'0100' -- width (uint16 1)
||
INSERT INTO rt_properties_test
VALUES ( 5, '1x1, ip:7.5,2.5 scale:5,5 skew:3,7, srid:-1, width:1, height:1',
- -1, 1, 1, --- SRID, width, height
+ 0, 1, 1, --- SRID, width, height
5, 5, 7.5, 2.5, 3, 7, --- georeference
(
'01' -- little endian (uint8 ndr)
||
'0000000000001C40' -- skewY (float64 7)
||
-'FFFFFFFF' -- SRID (int32 -1)
+'00000000' -- SRID (int32 0)
||
'0100' -- width (uint16 1)
||
-- the terms of the GNU General Public Licence. See the COPYING file.
-----------------------------------------------------------------------
+SET client_min_messages TO warning;
+
-----------------------------------------------------------------------
--- Test of "Get" functions for properties of the raster.
-----------------------------------------------------------------------
--- ST_AddBand
-----------------------------------------------------------------------
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '1BB', -1, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '1BB', 0, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '1BB', 1, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '1BB', 2, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '1BB', 21.46, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '1BB', -1, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '1BB', 0, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '1BB', 1, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '1BB', 2, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '1BB', 21.46, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '2BUI', -1, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '2BUI', 0, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '2BUI', 3, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '2BUI', 4, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '2BUI', 21.46, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '2BUI', -1, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '2BUI', 0, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '2BUI', 3, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '2BUI', 4, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '2BUI', 21.46, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '4BUI', -1, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '4BUI', 0, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '4BUI', 15, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '4BUI', 16, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '4BUI', 21.46, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '4BUI', -1, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '4BUI', 0, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '4BUI', 15, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '4BUI', 16, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '4BUI', 21.46, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '8BSI', -129, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '8BSI', -128, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '8BSI', 0, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '8BSI', 127, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '8BSI', 128, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '8BSI', 21.46, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '8BSI', 210.46, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '8BSI', -129, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '8BSI', -128, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '8BSI', 0, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '8BSI', 127, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '8BSI', 128, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '8BSI', 21.46, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '8BSI', 210.46, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '8BUI', -1, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '8BUI', 0, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '8BUI', 255, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '8BUI', 256, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '8BUI', 21.46, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '8BUI', 410.46, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '8BUI', 255.9999999, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '8BUI', -1, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '8BUI', 0, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '8BUI', 255, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '8BUI', 256, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '8BUI', 21.46, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '8BUI', 410.46, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '8BUI', 255.9999999, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32768, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 0, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 32767, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 32768, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 21.46, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '16BSI', -32769, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '16BSI', -32768, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '16BSI', 0, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '16BSI', 32767, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '16BSI', 32768, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '16BSI', 21.46, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '16BSI', 210000.46, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BUI', -1, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BUI', 0, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BUI', 65535, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BUI', 65537, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BUI', 21.46, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BUI', 210000.4645643647457, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '16BUI', -1, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '16BUI', 0, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '16BUI', 65535, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '16BUI', 65537, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '16BUI', 21.46, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '16BUI', 210000.4645643647457, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BSI', -2147483649, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BSI', -2147483648, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BSI', 0, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BSI', 2147483647, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BSI', 2147483648, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BSI', 21.46, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BSI', 210000.4645643647457, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BSI', -2147483649, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BSI', -2147483648, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BSI', 0, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BSI', 2147483647, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BSI', 2147483648, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BSI', 21.46, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BSI', 210000.4645643647457, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BUI', -1, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BUI', 0, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BUI', 4294967295, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BUI', 4294967296, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BUI', 214294967296, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BUI', 21.46, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BUI', 4294967295.9999999, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BUI', -1, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BUI', 0, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BUI', 4294967295, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BUI', 4294967296, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BUI', 214294967296, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BUI', 21.46, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BUI', 4294967295.9999999, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BF', 0, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BF', 4294967000, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BF', 4294967000, NULL), 3, 3)::float4;
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BF', 4294967295, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BF', 4294967295, NULL), 3, 3)::float4;
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BF', 4294967296, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BF', 4294967296, NULL), 3, 3)::float4;
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BF', 21.46, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BF', 21.46, NULL), 3, 3)::float4;
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BF', 21003.1, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BF', 21003.1, NULL), 3, 3)::float4;
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BF', 123.456, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BF', 123.456, NULL), 3, 3)::float4;
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BF', 1234.567, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BF', 1234.567, NULL), 3, 3)::float4;
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BF', 210000.4645643647457, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '32BF', 210000.4645643647457, NULL), 3, 3)::float4;
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BF', 0, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BF', 4294967000, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BF', 4294967000, NULL), 3, 3)::float4;
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BF', 4294967295, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BF', 4294967295, NULL), 3, 3)::float4;
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BF', 4294967296, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BF', 4294967296, NULL), 3, 3)::float4;
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BF', 21.46, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BF', 21.46, NULL), 3, 3)::float4;
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BF', 21003.1, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BF', 21003.1, NULL), 3, 3)::float4;
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BF', 123.456, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BF', 123.456, NULL), 3, 3)::float4;
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BF', 1234.567, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BF', 1234.567, NULL), 3, 3)::float4;
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BF', 210000.4645643647457, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '32BF', 210000.4645643647457, NULL), 3, 3)::float4;
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '64BF', -1, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '64BF', 0, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '64BF', 14294967296.123456, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '64BF', 21.46, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '64BF', 21003.1, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '64BF', 123.4567, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '64BF', 1234.567, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '64BF', 210000.4645643647457, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '64BF', 1234.4645643647457, NULL), 3, 3);
-SELECT St_Value(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0,-1), 1, '64BF', 1234.5678, NULL), ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, 1), 3, 3);
-SELECT St_Value(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0,-1), 1, '64BF', 1234.5678, NULL), ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1), 3, 3);
-SELECT St_Value(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0,-1), 1, '64BF', 1234.5678, NULL), ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1)), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '64BF', -1, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '64BF', 0, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '64BF', 14294967296.123456, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '64BF', 21.46, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '64BF', 21003.1, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '64BF', 123.4567, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '64BF', 1234.567, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '64BF', 210000.4645643647457, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, '64BF', 1234.4645643647457, NULL), 3, 3);
+SELECT St_Value(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0,0), 1, '64BF', 1234.5678, NULL), ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1, 1), 3, 3);
+SELECT St_Value(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0,0), 1, '64BF', 1234.5678, NULL), ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0), 1), 3, 3);
+SELECT St_Value(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0,0), 1, '64BF', 1234.5678, NULL), ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, 0)), 3, 3);
-- array version test
SELECT (ST_DumpAsPolygons(newrast,3)).val As b3val FROM (SELECT ST_AddBand(NULL, array_agg(rast)) AS newrast FROM (SELECT ST_AsRaster(ST_Buffer(ST_Point(10,10), 34),200,200, '8BUI',i*30) As rast FROM generate_series(1,3) As i ) As foo ) As foofoo;
-SELECT ST_Value(ST_Band(ST_AddBand(ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0, -1), 1, '64BF', 123.4567, NULL), ARRAY[1]), 3, 3);
-SELECT ST_Value(ST_Band(ST_AddBand(ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0, -1), 1, '64BF', 1234.567, NULL), 1), 3, 3);
-SELECT ST_Value(ST_Band(ST_AddBand(ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0, -1), 1, '64BF', 1234.567, NULL)), 3, 3);
+SELECT ST_Value(ST_Band(ST_AddBand(ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0, 0), 1, '64BF', 123.4567, NULL), ARRAY[1]), 3, 3);
+SELECT ST_Value(ST_Band(ST_AddBand(ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0, 0), 1, '64BF', 1234.567, NULL), 1), 3, 3);
+SELECT ST_Value(ST_Band(ST_AddBand(ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0, 0), 1, '64BF', 1234.567, NULL)), 3, 3);
SELECT ST_Value(
ST_Band(
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
ST_AddBand(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(200, 200, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 1234.5678, NULL
)
, '64BF', 987.654321, NULL
+NOTICE: SRID value -1 converted to the officially unknown SRID value 0
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
SELECT ST_MapAlgebraExpr(NULL, 1, NULL, '[rast] + 20', 2) IS NULL FROM ST_TestRaster(0, 0, -1) rast;
-- Test empty raster
-SELECT 'T1', ST_IsEmpty(ST_MapAlgebraExpr(ST_MakeEmptyRaster(0, 10, 0, 0, 1, 1, 1, 1, -1), 1, NULL, '[rast] + 20', 2));
+SELECT 'T1', ST_IsEmpty(ST_MapAlgebraExpr(ST_MakeEmptyRaster(0, 10, 0, 0, 1, 1, 1, 1, 0), 1, NULL, '[rast] + 20', 2));
-- Test hasnoband raster
-SELECT 'T2', ST_HasNoBand(ST_MapAlgebraExpr(ST_MakeEmptyRaster(10, 10, 0, 0, 1, 1, 1, 1, -1), 1, NULL, '[rast] + 20', 2));
+SELECT 'T2', ST_HasNoBand(ST_MapAlgebraExpr(ST_MakeEmptyRaster(10, 10, 0, 0, 1, 1, 1, 1, 0), 1, NULL, '[rast] + 20', 2));
-- Test hasnodata value
SELECT 'T3', ST_Value(rast, 1, 1), ST_Value(ST_MapAlgebraExpr(ST_SetBandNoDataValue(rast, NULL), 1, NULL, '[rast] + 20', 2), 1, 1) FROM ST_TestRaster(0, 0, -1) rast;
SELECT ST_MapAlgebraFct(NULL, 1, NULL, 'raster_plus_twenty(float, text[])'::regprocedure, NULL) IS NULL FROM ST_TestRaster(0, 0, -1) rast;
-- Test empty raster
-SELECT ST_IsEmpty(ST_MapAlgebraFct(ST_MakeEmptyRaster(0, 10, 0, 0, 1, 1, 1, 1, -1), 1, NULL, 'raster_plus_twenty(float, text[])'::regprocedure));
-SELECT ST_IsEmpty(ST_MapAlgebraFct(ST_MakeEmptyRaster(0, 10, 0, 0, 1, 1, 1, 1, -1), 1, NULL, 'raster_plus_twenty(float, text[])'::regprocedure, NULL));
+SELECT ST_IsEmpty(ST_MapAlgebraFct(ST_MakeEmptyRaster(0, 10, 0, 0, 1, 1, 1, 1, 0), 1, NULL, 'raster_plus_twenty(float, text[])'::regprocedure));
+SELECT ST_IsEmpty(ST_MapAlgebraFct(ST_MakeEmptyRaster(0, 10, 0, 0, 1, 1, 1, 1, 0), 1, NULL, 'raster_plus_twenty(float, text[])'::regprocedure, NULL));
-- Test hasnoband raster
-SELECT ST_HasNoBand(ST_MapAlgebraFct(ST_MakeEmptyRaster(10, 10, 0, 0, 1, 1, 1, 1, -1), 1, NULL, 'raster_plus_twenty(float, text[])'::regprocedure));
-SELECT ST_HasNoBand(ST_MapAlgebraFct(ST_MakeEmptyRaster(10, 10, 0, 0, 1, 1, 1, 1, -1), 1, NULL, 'raster_plus_twenty(float, text[])'::regprocedure, NULL));
+SELECT ST_HasNoBand(ST_MapAlgebraFct(ST_MakeEmptyRaster(10, 10, 0, 0, 1, 1, 1, 1, 0), 1, NULL, 'raster_plus_twenty(float, text[])'::regprocedure));
+SELECT ST_HasNoBand(ST_MapAlgebraFct(ST_MakeEmptyRaster(10, 10, 0, 0, 1, 1, 1, 1, 0), 1, NULL, 'raster_plus_twenty(float, text[])'::regprocedure, NULL));
-- Test hasnodata value
SELECT ST_Value(rast, 1, 1), ST_Value(ST_MapAlgebraFct(ST_SetBandNoDataValue(rast, NULL), 1, NULL, 'raster_plus_twenty(float, text[])'::regprocedure), 1, 1) FROM ST_TestRaster(0, 0, -1) rast;
SELECT ST_MapAlgebraFctNgb(NULL, 1, NULL, 1, 1, 'ST_Sum4ma(float[][], text, text[])'::regprocedure, 'NULL', NULL) IS NULL FROM ST_TestRasterNgb(0, 0, -1) rast;
-- Test empty Raster. Should be true.
-SELECT ST_IsEmpty(ST_MapAlgebraFctNgb(ST_MakeEmptyRaster(0, 10, 0, 0, 1, 1, 1, 1, -1), 1, NULL, 1, 1, 'ST_Sum4ma(float[][], text, text[])'::regprocedure, 'NULL', NULL));
+SELECT ST_IsEmpty(ST_MapAlgebraFctNgb(ST_MakeEmptyRaster(0, 10, 0, 0, 1, 1, 1, 1, 0), 1, NULL, 1, 1, 'ST_Sum4ma(float[][], text, text[])'::regprocedure, 'NULL', NULL));
-- Test has no band raster. Should be true
-SELECT ST_HasNoBand(ST_MapAlgebraFctNgb(ST_MakeEmptyRaster(10, 10, 0, 0, 1, 1, 1, 1, -1), 1, NULL, 1, 1, 'ST_Sum4ma(float[][], text, text[])'::regprocedure, 'NULL', NULL));
+SELECT ST_HasNoBand(ST_MapAlgebraFctNgb(ST_MakeEmptyRaster(10, 10, 0, 0, 1, 1, 1, 1, 0), 1, NULL, 1, 1, 'ST_Sum4ma(float[][], text, text[])'::regprocedure, 'NULL', NULL));
-- Test huge neighborhood. Original raster returned.
SELECT
t|t
t|t
t|t
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
t
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
t|t
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
t
t
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
t|t|t|t|t
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
t|t|t
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
-NOTICE: SRID value -1 converted to the officially unknown SRID value 0
t|t|t
t|t
t
SELECT * FROM ST_MetaData(NULL);
SELECT * FROM ST_MetaData(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0, 0)
, 1, '64BF', 0, 0
)
);
|||||||||
-10|10|10|10|2|2|0|0|-1|1
+10|10|10|10|2|2|0|0|0|1
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0, -1),
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0, 0),
1, '32BUI', 0, 0
),
1, 1, 499
ST_SetValue(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0, -1),
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0, 0),
1, '8BUI', 0, 1
),
2, '32BUI', 0, 0
ST_SetValue(
ST_AddBand(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0, -1),
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0, 0),
1, '8BUI', 0, 1
),
2, '32BUI', 0, 0
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0, -1),
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0, 0),
1, '8BUI', 0, 0
),
1, 1, 1, 255
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(100, 100, 10, 10, 2, 2, 0, 0, -1),
+ ST_MakeEmptyRaster(100, 100, 10, 10, 2, 2, 0, 0, 0),
1, '32BF', 1, 0
),
1, 1, 1, 3.14159
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(100, 100, 10, 10, 2, 2, 0, 0, -1),
+ ST_MakeEmptyRaster(100, 100, 10, 10, 2, 2, 0, 0, 0),
1, '32BF', 1, 0
),
1, 1, 1, 3.14159
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(100, 100, 10, 10, 2, 2, 0, 0, -1),
+ ST_MakeEmptyRaster(100, 100, 10, 10, 2, 2, 0, 0, 0),
1, '32BF', 1, 0
),
1, 1, 1, 3.14159
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(100, 100, 10, 10, 2, 2, 0, 0, -1),
+ ST_MakeEmptyRaster(100, 100, 10, 10, 2, 2, 0, 0, 0),
1, '32BF', 1, 0
),
1, 1, 1, 3.14159
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10
ST_SetValue(
ST_SetValue(
ST_AddBand(
- ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,-1)
+ ST_MakeEmptyRaster(10, 10, 10, 10, 2, 2, 0, 0,0)
, 1, '64BF', 0, 0
)
, 1, 1, 1, -10