Thanks Bborie, I am now on the right track.<div><br></div><div>Joan.<br><br><div class="gmail_quote">On 24 January 2012 15:47, Bborie Park <span dir="ltr"><<a href="mailto:bkpark@ucdavis.edu">bkpark@ucdavis.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Joan,<br>
<br>
You must be using an older build of PostGIS 2.0 as raster2pgsql.py is<br>
no longer supported.  You will want to download and use the latest<br>
Windows Experimental builds.<br>
<br>
<a href="http://postgis.refractions.net/download/windows/experimental.php" target="_blank">http://postgis.refractions.net/download/windows/experimental.php</a><br>
<br>
Look for the links under the text...<br>
<br>
"These are 32-bit binaries so will not work on 64-bit PostgreSQL. We<br>
are working on getting 64-bit binaries out as well, but are running<br>
into some stumbling blocks. For the time being -- if you are on<br>
Windows 64-bit, you must install the 32-bit PostgreSQL to use these."<br>
<br>
Also, there are no 64-bit builds of PostGIS available yet due to<br>
compilation issues.<br>
<br>
Hopefully that gets you back on track.<br>
<br>
-bborie<br>
<div><div class="h5"><br>
On Tue, Jan 24, 2012 at 5:19 AM, Joan <<a href="mailto:wamaithajoan@gmail.com">wamaithajoan@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I have been trying to set up PostGIS on a 64 bit machine running windows 7.<br>
> The installation was successful but when I run the raster2pgsql script I get<br>
> the following error.<br>
><br>
> Traceback (most recent call last):<br>
>   File "C:\Postgresql\bin\raster2pgsql.py", line 34, in <module><br>
>     from osgeo import gdal<br>
>   File "C:\Python27\lib\site-packages\osgeo\__init__.py", line 21, in<br>
> <module><br>
>     _gdal = swig_import_helper()<br>
>   File "C:\Python27\lib\site-packages\osgeo\__init__.py", line 17, in<br>
> swig_import_helper<br>
>     _mod = imp.load_module('_gdal', fp, pathname, description)<br>
> ImportError: DLL load failed: The operating system cannot run %1.<br>
><br>
> I have gdal in C:\Program Files (x86)\GDAL and C:\Program Files<br>
> (x86)\GDAL\gdal-data in the environmental variables<br>
><br>
><br>
> Any ideas??<br>
><br>
> Joan<br>
><br>
</div></div>> _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
> <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Bborie Park<br>
Programmer<br>
Center for Vectorborne Diseases<br>
UC Davis<br>
530-752-8380<br>
<a href="mailto:bkpark@ucdavis.edu">bkpark@ucdavis.edu</a><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</font></span></blockquote></div><br></div>