if (FLT_NEQ(grid_shift_xw, 0.)) {
min_x = dst_gt[0] + grid_shift_xw;
min_x = modf(fabs(*grid_xw - min_x) / grid_pix_x, &djunk);
- if (FLT_NEQ(min_x, 0.)) grid_shift_xw *= -1;
+ if (FLT_NEQ(min_x, 0.) && FLT_NEQ(min_x, 1.)) grid_shift_xw *= -1;
min_x = dst_gt[0] + grid_shift_xw;
if (min_x > dst_gt[0]) {
grid_shift_xw = grid_pix_x - fabs(grid_shift_xw);
if (FLT_NEQ(grid_shift_yw, 0.)) {
max_y = dst_gt[3] + grid_shift_yw;
max_y = modf(fabs(*grid_yw - max_y) / grid_pix_y, &djunk);
- if (FLT_NEQ(max_y, 0.)) grid_shift_yw *= -1;
+ if (FLT_NEQ(max_y, 0.) && FLT_NEQ(max_y, 1.)) grid_shift_yw *= -1;
max_y = dst_gt[3] + grid_shift_yw;
if (max_y < dst_gt[3]) {
grid_shift_yw = grid_pix_y - fabs(grid_shift_yw);
values[2] = CStringGetTextDatum(drv_set2[call_cntr].long_name);
values[3] = CStringGetTextDatum(drv_set2[call_cntr].create_options);
- POSTGIS_RT_DEBUGF(4, "Result %d, Index %s", call_cntr, values[0]);
- POSTGIS_RT_DEBUGF(4, "Result %d, Short Name %s", call_cntr, values[1]);
- POSTGIS_RT_DEBUGF(4, "Result %d, Full Name %s", call_cntr, values[2]);
- POSTGIS_RT_DEBUGF(5, "Result %d, Create Options %s", call_cntr, values[3]);
+ POSTGIS_RT_DEBUGF(4, "Result %d, Index %d", call_cntr, drv_set2[call_cntr].idx);
+ POSTGIS_RT_DEBUGF(4, "Result %d, Short Name %s", call_cntr, drv_set2[call_cntr].short_name);
+ POSTGIS_RT_DEBUGF(4, "Result %d, Full Name %s", call_cntr, drv_set2[call_cntr].long_name);
+ POSTGIS_RT_DEBUGF(5, "Result %d, Create Options %s", call_cntr, drv_set2[call_cntr].create_options);
/* build a tuple */
tuple = heap_form_tuple(tupdesc, values, nulls);
(grid_xw != NULL && grid_yw == NULL) ||
(grid_xw == NULL && grid_yw != NULL)
) {
- elog(NOTICE, "Values must be provided for both X and Y coordinates when specifying the alignment. Returning original raster");
+ elog(NOTICE, "Values must be provided for both X and Y when specifying the alignment. Returning original raster");
rt_raster_destroy(raster);
PG_RETURN_POINTER(pgraster);
}
(scale_x != NULL && scale_y == NULL) ||
(scale_x == NULL && scale_y != NULL)
) {
- elog(NOTICE, "Values must be provided for both X and Y axis when specifying the scale. Returning original raster");
+ elog(NOTICE, "Values must be provided for both X and Y when specifying the scale. Returning original raster");
rt_raster_destroy(raster);
PG_RETURN_POINTER(pgraster);
}
if (NULL == pgrast) PG_RETURN_NULL();
+ POSTGIS_RT_DEBUG(3, "RASTER_resample: done");
+
SET_VARSIZE(pgrast, pgrast->size);
PG_RETURN_POINTER(pgrast);
}
NOTICE: table "raster_resample_src" does not exist, skipping
NOTICE: table "raster_resample_dst" does not exist, skipping
-NOTICE: Values must be provided for both X and Y axis when specifying the scale. Returning original raster
-NOTICE: Values must be provided for both X and Y axis when specifying the scale. Returning original raster
+NOTICE: Values must be provided for both X and Y when specifying the scale. Returning original raster
+NOTICE: Values must be provided for both X and Y when specifying the scale. Returning original raster
1.1|992163|10|10|1|1000.000|-1000.000|0.000|0.000|-500000.000|600000.000|t|t|t
1.10|992163|40|40|1|250.000|-250.000|0.000|0.000|-500000.000|600000.000|t|t|t
1.11|992163|10|10|1|1000.000|-1000.000|0.000|0.000|-500000.000|600000.000|t|t|t
1.12|992163|10|10|1|1000.000|-1000.000|0.000|0.000|-500001.000|600000.000|t|t|t
1.13|992163|10|10|1|1000.000|-1000.000|0.000|0.000|-500000.000|600009.000|t|t|t
1.14|992163|10|11|1|1000.000|-1000.000|0.000|0.000|-500100.000|600950.000|t|t|t
-1.15|992163|200|200|1|50.000|-50.000|0.000|0.000|-500010.000|600007.000|t|t|t
+1.15|992163|201|200|1|50.000|-50.000|0.000|0.000|-500040.000|600007.000|t|t|t
1.16|992163|83|83|1|121.000|-121.000|0.000|0.000|-500093.000|600039.000|t|t|t
1.17|993310|243|243|1|50.000|-50.000|0.000|0.000|950710.000|1409307.000|t|t|t
1.18|993309|242|243|1|50.000|-50.000|0.000|0.000|950760.000|1409107.000|t|t|t
5.24|992163|83|83|1|121.000|-121.000|0.000|0.000|-500000.000|600040.000|t|t|t
5.25|992163|83|83|1|121.000|-121.000|0.000|0.000|-500000.000|600048.000|t|t|t
5.26|992163|83|83|1|121.000|-121.000|0.000|0.000|-500098.000|600040.000|t|t|t
-5.27|992163|83|83|1|121.000|-121.000|0.000|0.000|-500037.000|600030.000|t|t|t
+5.27|992163|83|83|1|121.000|-121.000|0.000|0.000|-500084.000|600030.000|t|t|t
5.3|992163|10|10|1|1000.000|-1000.000|0.000|0.000|-500001.000|600000.000|t|t|t
5.4|992163|10|10|1|1000.000|-1000.000|0.000|0.000|-500001.000|600000.000|t|t|t
5.5|992163|11|10|1|1000.000|-1000.000|0.000|0.000|-500999.000|600000.000|t|t|t