AC_SUBST([GDALFPOLYGONIZE])
- dnl ===========================================================================
- dnl Disable offline raster storage with --disable-offline-raster
- dnl ===========================================================================
- AC_ARG_ENABLE(
- [offline-rasters],
- AC_HELP_STRING([--disable-offline-rasters], [disable support for off-db rasters]),
- [POSTGIS_RASTER_DISABLE_OFFLINE=1],
- [POSTGIS_RASTER_DISABLE_OFFLINE=0])
- if test "x$POSTGIS_RASTER_DISABLE_OFFLINE" = "x1"; then
- AC_DEFINE_UNQUOTED(
- [POSTGIS_RASTER_DISABLE_OFFLINE],
- [$POSTGIS_RASTER_DISABLE_OFFLINE],
- [Define to disable support for offline rasters])
- fi
-
else
AC_MSG_RESULT([not found])
AC_MSG_ERROR([gdal-config not found. Use --without-raster or try --with-gdalconfig=<path to gdal-config>])
/* Define to 1 if a warning is outputted every time a double is truncated */
#undef POSTGIS_RASTER_WARN_ON_TRUNCATION
-
-/* Define to disable support for offline rasters */
-#undef POSTGIS_RASTER_DISABLE_OFFLINE
return ES_ERROR;
}
-#ifdef POSTGIS_RASTER_DISABLE_OFFLINE
- rterror("rt_raster_load_offline_data: "
- "offline raster support disabled at compile-time");
- return ES_ERROR;
-#endif
-
-
rt_util_gdal_register_all(0);
/*
hdsSrc = GDALOpenShared(band->data.offline.path, GA_ReadOnly);