[postgis-users] raster support

Pierre Racine Pierre.Racine at sbf.ulaval.ca
Thu Jun 5 11:40:58 PDT 2014


These variables are system variables, not PostgreSQL variables. to know how to set them in your system search for "set environment variable os x".

Pierre

> -----Original Message-----
> From: postgis-users-bounces at lists.osgeo.org [mailto:postgis-users-
> bounces at lists.osgeo.org] On Behalf Of John Payne
> Sent: Sunday, June 01, 2014 10:25 AM
> To: postgis-users at lists.osgeo.org
> Subject: [postgis-users] raster support
> 
> I want to store raster data in PostGIS.  I am using Postgresql 9.2.4 with
> PostGIS 9.1.0 on a Mac Powerbook running OS X 10.8.5.  I want to use the
> command "raster2pgsql" but I get an error message saying that the type
> "raster" was not recognized.
> 
> I think the problem may be (from Chapter 2.1 of the PostGIS manual):
> 
> 
> "As of PostGIS 2.1.3, out-of-db rasters and all raster drivers are disabled by
> default. In order to re-enable these, you need to set the following
> environment variables:POSTGIS_GDAL_ENABLED_DRIVERS and
> POSTGIS_ENABLE_OUTDB_RASTERS in the server environment"
> 
> 
> I tried adding the following to the end of my postgresql.conf file:
> POSTGIS_GDAL_ENABLED_DRIVERS=ENABLE_ALL
> POSTGIS_ENABLE_OUTDB_RASTERS=1
> However, it generated an error message saying that the variables weren't
> recognized.  Can anyone tell me how to set them?
> 
> Thanks,
> 
> John


More information about the postgis-users mailing list