<p style>Hello everyone,</p><p style>I'm currently trying the new raster functionalities of PostGIS 2.0 and I successfully imported some GeoTIFF file into PostGIS. I used raster2pgsql.exe bundled with PostGIS 2 to store it.</p>
<p style>Most of the raster data i have is in ECW format and I would like to import them directly with raster2pgsql. I know i can convert my ECW to GeoTIFF but i would like to do it without conversion.</p><p style>When i list the supported input format of raster2pgsql (raster2pgsql -G), it does not list ECW as it can not be distributed with the install. So i downloaded the ERDAS SDK following these instructions:<a href="http://trac.osgeo.org/osgeo4w/wiki/pkg-gdal-ecw" rel="nofollow" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;text-decoration:none;color:rgb(53,141,170)">http://trac.osgeo.org/osgeo4w/wiki/pkg-gdal-ecw</a></p>
<p style>And copied the DLL in my SysWOW64 system folder (i'm using Windows 7 64-bits). But it still won't list ECW as an input format. When looking up online, i found that PostGIS uses a bundled GDAL found in</p>
<p style>C:\Program Files (x86)\PostgreSQL\8.4\bin\libgdal-1.dll</p><p style>I don't know where to copy the DLLs so that the GDAL bundled with PostGIS will grab them and accept ECWs rasters. Or if anyone know how to tell PostGIS to use the GDAL install that comes with FWTools (C:\Program Files (x86)\FWTools2.4.7\bin) which is directly compatible with ECWs (path variables?)</p>
<p style>Thanks a lot for your help!</p><p style>Fabien</p>