Do not allow loading offline rasters when explicitly disabled

Previous commit only disabled _saving_ rasters with offline flag,
this one prevents actually loading the offline data.
You can still dump databases with offline raster specs.

git-svn-id: http://svn.osgeo.org/postgis/trunk@12455 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2014-04-10 14:35:17 +00:00
parent e6e62b1424
commit fc956aaa28

View file

@ -352,6 +352,13 @@ rt_band_load_offline_data(rt_band band) {
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();
/*
hdsSrc = GDALOpenShared(band->data.offline.path, GA_ReadOnly);