int d = 0;
double r = 0;
- int _d = 0;
+ /*int _d = 0;*/
double _r = -1;
int _i = 0;
/* j = 0, X */
for (j = 0; j < 2; j++) {
_i = 0;
- _d = 0;
+ /*_d = 0;*/
_r = -1;
if (j < 1 && dimX <= max) {
(r < _r) ||
FLT_EQ(r, _r)
) {
- _d = d;
+ /*_d = d;*/
_r = r;
_i = i;
}
SPITupleTable *tuptable = NULL;
HeapTuple tuple;
Datum datum;
- double v = 0;
bool isnull = FALSE;
POSTGIS_RT_DEBUGF(4, "Running plan %d", id);
/* [rast.x] */
case 0:
values[idx] = Int32GetDatum(arg->src_pixel[0][0] + 1);
- v = arg->src_pixel[0][0] + 1;
break;
/* [rast.y] */
case 1:
values[idx] = Int32GetDatum(arg->src_pixel[0][1] + 1);
- v = arg->src_pixel[0][1] + 1;
- v = values[idx];
break;
/* [rast.val] */
case 2:
/* [rast] */
case 3:
- if (!arg->nodata[0][0][0]) {
+ if (!arg->nodata[0][0][0])
values[idx] = Float8GetDatum(arg->values[0][0][0]);
- v = arg->values[0][0][0];
- }
else
nulls[idx] = TRUE;
break;
/* [rast1.x] */
case 4:
values[idx] = Int32GetDatum(arg->src_pixel[0][0] + 1);
- v = arg->src_pixel[0][0] + 1;
break;
/* [rast1.y] */
case 5:
values[idx] = Int32GetDatum(arg->src_pixel[0][1] + 1);
- v = arg->src_pixel[0][1] + 1;
break;
/* [rast1.val] */
case 6:
/* [rast1] */
case 7:
- if (!arg->nodata[0][0][0]) {
+ if (!arg->nodata[0][0][0])
values[idx] = Float8GetDatum(arg->values[0][0][0]);
- v = arg->values[0][0][0];
- }
else
nulls[idx] = TRUE;
break;
/* [rast2.x] */
case 8:
values[idx] = Int32GetDatum(arg->src_pixel[1][0] + 1);
- v = arg->src_pixel[1][0] + 1;
break;
/* [rast2.y] */
case 9:
values[idx] = Int32GetDatum(arg->src_pixel[1][1] + 1);
- v = arg->src_pixel[1][1] + 1;
break;
/* [rast2.val] */
case 10:
/* [rast2] */
case 11:
- if (!arg->nodata[1][0][0]){
+ if (!arg->nodata[1][0][0])
values[idx] = Float8GetDatum(arg->values[1][0][0]);
- v = arg->values[1][0][0];
- }
else
nulls[idx] = TRUE;
break;
}
- POSTGIS_RT_DEBUGF(4, "(i, idx, value, null) = (%d, %d, %f, %d)",
- i,
- idx,
- v,
- nulls[idx] != TRUE ? 0 : 1
- );
-
}
}
uint32_t ymax = 100;
uint32_t max_run;
double nodata;
- int rtn;
uint32_t values[] = {0, 91, 55, 86, 76, 41, 36, 97, 25, 63, 68, 2, 78, 15, 82, 47};
struct quantile_llist *qlls = NULL;
for (x = 0; x < xmax; x++) {
for (y = 0; y < ymax; y++) {
- rtn = rt_band_set_pixel(band, x, y, x + y, NULL);
+ rt_band_set_pixel(band, x, y, x + y, NULL);
}
}
for (x = 0; x < xmax; x++) {
for (y = 0; y < ymax; y++) {
- rtn = rt_band_set_pixel(band, x, y, values[(x * ymax) + y], NULL);
+ rt_band_set_pixel(band, x, y, values[(x * ymax) + y], NULL);
}
}
for (x = 0; x < xmax; x++) {
for (y = 0; y < ymax; y++) {
- rtn = rt_band_set_pixel(band, x, y, (((double) x * y) + (x + y) + (x + y * x)) / (x + y + 1), NULL);
+ rt_band_set_pixel(band, x, y, (((double) x * y) + (x + y) + (x + y * x)) / (x + y + 1), NULL);
}
}
for (x = 0; x < xmax; x++) {
for (y = 0; y < ymax; y++) {
- rtn = rt_band_set_pixel(band, x, y, (((double) x * y) + (x + y) + (x + y * x)) / (x + y + 1), NULL);
+ rt_band_set_pixel(band, x, y, (((double) x * y) + (x + y) + (x + y * x)) / (x + y + 1), NULL);
}
}
vcnts = rt_band_get_value_count(band, 1, NULL, 0, 0, NULL, &rtn);
uint32_t width = 100;
uint32_t y;
uint32_t height = 100;
- int rtn = 0;
char srs[] = "PROJCS[\"unnamed\",GEOGCS[\"unnamed ellipse\",DATUM[\"unknown\",SPHEROID[\"unnamed\",6370997,0]],PRIMEM[\"Greenwich\",0],UNIT[\"degree\",0.0174532925199433]],PROJECTION[\"Lambert_Azimuthal_Equal_Area\"],PARAMETER[\"latitude_of_center\",45],PARAMETER[\"longitude_of_center\",-100],PARAMETER[\"false_easting\",0],PARAMETER[\"false_northing\",0],UNIT[\"Meter\",1],AUTHORITY[\"EPSG\",\"2163\"]]";
uint64_t gdalSize;
for (x = 0; x < width; x++) {
for (y = 0; y < height; y++) {
- rtn = rt_band_set_pixel(band, x, y, (((double) x * y) + (x + y) + (x + y * x)) / (x + y + 1), NULL);
+ rt_band_set_pixel(band, x, y, (((double) x * y) + (x + y) + (x + y * x)) / (x + y + 1), NULL);
}
}
for (x = 0; x < width; x++) {
for (y = 0; y < height; y++) {
- rtn = rt_band_set_pixel(band, x, y, x, NULL);
+ rt_band_set_pixel(band, x, y, x, NULL);
}
}
for (x = 0; x < width; x++) {
for (y = 0; y < height; y++) {
values[x][y] = (((double) x * y) + (x + y) + (x + y * x)) / (x + y + 1);
- rtn = rt_band_set_pixel(band, x, y, values[x][y], NULL);
+ rt_band_set_pixel(band, x, y, values[x][y], NULL);
}
}
for (x = 0; x < width; x++) {
for (y = 0; y < height; y++) {
values[x][y] = v++;
- rtn = rt_band_set_pixel(band, x, y, values[x][y], NULL);
+ rt_band_set_pixel(band, x, y, values[x][y], NULL);
if (v == 128)
v = -127;
}
uint32_t width = 100;
uint32_t y;
uint32_t height = 100;
- int rtn = 0;
double value = 0;
char src_srs[] = "PROJCS[\"unnamed\",GEOGCS[\"unnamed ellipse\",DATUM[\"unknown\",SPHEROID[\"unnamed\",6370997,0]],PRIMEM[\"Greenwich\",0],UNIT[\"degree\",0.0174532925199433]],PROJECTION[\"Lambert_Azimuthal_Equal_Area\"],PARAMETER[\"latitude_of_center\",45],PARAMETER[\"longitude_of_center\",-100],PARAMETER[\"false_easting\",0],PARAMETER[\"false_northing\",0],UNIT[\"Meter\",1],AUTHORITY[\"EPSG\",\"2163\"]]";
for (x = 0; x < width; x++) {
for (y = 0; y < height; y++) {
- rtn = rt_band_set_pixel(band, x, y, (((double) x * y) + (x + y) + (x + y * x)) / (x + y + 1), NULL);
+ rt_band_set_pixel(band, x, y, (((double) x * y) + (x + y) + (x + y * x)) / (x + y + 1), NULL);
}
}
rt_raster rast;
rt_band band;
uint32_t x, y;
- int rtn;
const int maxX = 10;
const int maxY = 10;
LWPOLY *poly = NULL;
for (x = 0; x < maxX; x++) {
for (y = 0; y < maxY; y++) {
- rtn = rt_band_set_pixel(band, x, y, 1, NULL);
+ rt_band_set_pixel(band, x, y, 1, NULL);
}
}