mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-24 00:52:40 +00:00
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:
parent
e6e62b1424
commit
fc956aaa28
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue