elog(NOTICE, "Invalid band index %d for adding bands. Using band index 1", dstnband);
dstnband = 1;
}
- else if (dstnband > numbands) {
+ else if (numbands > 0 && dstnband > numbands) {
elog(NOTICE, "Invalid band index %d for adding bands. Using band index %d", dstnband, numbands);
dstnband = numbands + 1;
}
POSTGIS_RT_DEBUGF(4, "GDAL_SKIP = %s", CPLGetConfigOption("GDAL_SKIP", ""));
}
-/* postgis.eanble_outdb_rasters */
+/* postgis.enable_outdb_rasters */
static void
rtpg_assignHookEnableOutDBRasters(bool enable, void *extra) {
/* do nothing for now */