[gdal-dev] How to get a working version of gdal_retile.py?
Even Rouault
even.rouault at mines-paris.org
Wed Sep 5 10:48:17 PDT 2012
Le mercredi 05 septembre 2012 11:44:50, Paul Meems a écrit :
> Hi Even,
>
> I need to convert the ECW file to GeoTiff because of license issues. It is
> extremely expensive to host ECW files on GeoServer.
> The converted GeoTiff is 100GB. GeoServer can only handle files up to 2GB
> so I need to create smaller tiles.
Understood
> That is what the python script will do for me. I'm hoping I can create
> GeoTiff tiles using the ECW directly without converting it to a large
> GeoTiff first.
>
> I tried the files from http://www.gisinternals.com/sdk/ but that didn't
> help. I think my problem is more with Python.
>
> After updating FWTools with the files from gisinternals I get this error:
> Traceback (most recent call last):
> File "E:\PROGRA~1\FWTOOL~1.7\bin\gdal_retile.py", line 38, in <module>
> import gdal
> File "e:\PROGRA~1\FWTOOL~1.7\pymod\gdal.py", line 191, in <module>
> import _gdal
> ImportError: No module named _gdal
Did you use the .bat that defines all the environment needed for FWTools ?
Looks indeed as if Python doesn't know where to find the GDAL Python bindings.
But try using directly the deliveries of http://www.gisinternals.com/sdk/ and
do not mix them with FWTools. The builds at gisinternals come with GDAL Python
bindings too. You will need to install the Python version that matches the
python version of the GDAL python bindings you installed.
For your needs, assuming you've installed Python 2.7, you would need :
http://www.gisinternals.com/sdk/Download.aspx?file=release-1600-gdal-1-9-
mapserver-6-0\gdal-19-1600-core.msi
http://www.gisinternals.com/sdk/Download.aspx?file=release-1600-gdal-1-9-
mapserver-6-0\gdal-19-1600-ecw.msi
http://www.gisinternals.com/sdk/Download.aspx?file=release-1600-gdal-1-9-
mapserver-6-0\GDAL-1.9.1.win32-py2.7.msi
More information about the gdal-dev
mailing list