<div dir="ltr"><div style="color:rgb(0,0,0);font-family:Calibri;font-size:medium;text-align:-webkit-auto"><font color="#2e2e2e" face="Lucida Grande,Verdana,Geneva,Arial,Helvetica,sans-serif"><span style="font-size:13px">I</span></font><font color="#2e2e2e" face="Lucida Grande,Verdana,Geneva,Arial,Helvetica,sans-serif"><span style="font-size:13px"> 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.  </span></font><font color="#2e2e2e" face="Lucida Grande,Verdana,Geneva,Arial,Helvetica,sans-serif" style="text-align:-webkit-auto"><span style="font-size:13px">I</span></font><font color="#2e2e2e" face="Lucida Grande,Verdana,Geneva,Arial,Helvetica,sans-serif" style="text-align:-webkit-auto"><span style="background-color:rgb(255,254,254)"><span style="font-size:13px"> want to use the command "</span></span></font><span style="text-align:-webkit-auto">raster2pgsql" but I get an error message saying that the type "raster" was not recognized.  </span></div>
<div style="color:rgb(0,0,0);font-family:Calibri;font-size:medium;text-align:-webkit-auto"><br></div><div style="color:rgb(0,0,0);font-family:Calibri;font-size:medium;text-align:-webkit-auto">I think the problem may be (from Chapter 2.1 of the PostGIS manual):</div>
<div style="color:rgb(0,0,0);font-size:14px;text-align:-webkit-auto;font-family:Calibri,sans-serif"><span style="color:rgb(46,46,46);font-family:'Lucida Grande',Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:13px"><br>
</span></div><div style="color:rgb(0,0,0);font-size:14px;text-align:-webkit-auto;font-family:Calibri,sans-serif"><span style="color:rgb(46,46,46);font-family:'Lucida Grande',Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:13px">"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:</span><code class="" style="color:rgb(46,46,46);font-size:13px">POSTGIS_GDAL_ENABLED_DRIVERS</code><span style="color:rgb(46,46,46);font-family:'Lucida Grande',Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:13px"> and </span><code class="" style="color:rgb(46,46,46);font-size:13px">POSTGIS_ENABLE_OUTDB_RASTERS</code><span style="color:rgb(46,46,46);font-family:'Lucida Grande',Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:13px"> in the server environment"</span></div>
<div style="color:rgb(0,0,0);font-size:14px;text-align:-webkit-auto;font-family:Calibri,sans-serif"><span style="color:rgb(46,46,46);font-family:'Lucida Grande',Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:13px"><br>
</span></div><div style="color:rgb(0,0,0);font-family:Calibri;font-size:medium;text-align:-webkit-auto">I tried adding the following to the end of my postgresql.conf file: </div><div style="color:rgb(0,0,0);font-family:Calibri;font-size:medium;text-align:-webkit-auto">
<div><span class="" style="white-space:pre">    </span>POSTGIS_GDAL_ENABLED_DRIVERS=ENABLE_ALL</div><div><span class="" style="white-space:pre">    </span>POSTGIS_ENABLE_OUTDB_RASTERS=1</div></div><div style="color:rgb(0,0,0);font-family:Calibri;font-size:medium;text-align:-webkit-auto">
However, it generated an error message saying that the variables weren't recognized.  Can anyone tell me how to set them? </div><div style="color:rgb(0,0,0);font-family:Calibri;font-size:medium;text-align:-webkit-auto">
<br></div><div style="color:rgb(0,0,0);font-family:Calibri;font-size:medium;text-align:-webkit-auto">Thanks,</div><div style="color:rgb(0,0,0);font-family:Calibri;font-size:medium;text-align:-webkit-auto"><br></div><div style="color:rgb(0,0,0);font-family:Calibri;font-size:medium;text-align:-webkit-auto">
John</div></div>