Hi Even,<br><br>I need to convert the ECW file to GeoTiff because of license issues. It is extremely expensive to host ECW files on GeoServer.<br>The converted GeoTiff is 100GB. GeoServer can only handle files up to 2GB so I need to create smaller tiles.<br>
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.<br><br>I tried the files from <a href="http://www.gisinternals.com/sdk/" target="_blank">http://www.gisinternals.com/sdk/</a> but that didn't help. I think my problem is more with Python.<br>
<br>After updating FWTools with the files from gisinternals I get this error:<br>Traceback (most recent call last):<br> File "E:\PROGRA~1\FWTOOL~1.7\bin\gdal_retile.py", line 38, in <module><br> import gdal<br>
File "e:\PROGRA~1\FWTOOL~1.7\pymod\gdal.py", line 191, in <module><br> import _gdal<br>ImportError: No module named _gdal<br><br>I'll try OSGeo4W next.<br><br clear="all">Thanks<br>
<br>
Paul<br>
<br><br><div class="gmail_quote">2012/9/5 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Selon Paul Meems <<a href="mailto:bontepaarden@gmail.com">bontepaarden@gmail.com</a>>:<br>
<div class="im"><br>
> I'm trying to tile an ecw file to use in geoserver like explained here:<br>
><br>
<a href="http://docs.geoserver.org/latest/en/user/tutorials/imagepyramid/imagepyramid.html" target="_blank">http://docs.geoserver.org/latest/en/user/tutorials/imagepyramid/imagepyramid.html</a><br>
<br>
</div>I've no experience with GeoServer but this would be *extremely* weird that you<br>
would need to create an image pyramid for ECW, because, due to its compression<br>
algorithm, ECW has "natural" pyramid in it. Other formats might require pyramids<br>
however for good performance.<br>
<div class="im"><br>
><br>
> I am on Windows and have no experience with Python, so I've installed<br>
> FWTools v2.4.7 from <a href="http://fwtools.maptools.org/" target="_blank">http://fwtools.maptools.org/</a><br>
> When I run gdal_retile I get this error:<br>
> gdal_retile.py", line 273<br>
> print("Building internal Index for %d tile(s) ..." % len(inputTiles),<br>
> end='')<br>
> SyntaxError: invalid syntax<br>
><br>
> Looking for in on Google I found this post:<br>
> <a href="http://old.nabble.com/gdal_retile-errors-td27916035.html" target="_blank">http://old.nabble.com/gdal_retile-errors-td27916035.html</a><br>
> It seems to be some trouble between Python v2 and v3<br>
> The post states it has been fixed in the latest gdal_retile.py.<br>
><br>
> So I downloaded that version and tried it, but now I'm getting even more<br>
> errors.<br>
<br>
</div>I would have thought that grabbing latest gdal_retile.py should work, but I<br>
haven't tested. What are precisely the new errors you get ?<br>
<br>
But anyway, I'd recommand not using FWTools. It is no longer updated<br>
(corresponds to a developement version before GDAL 1.6.0 release). Use OSGeo4W<br>
or grab the builds you can find at <a href="http://www.gisinternals.com/sdk/" target="_blank">http://www.gisinternals.com/sdk/</a> to use the<br>
latest & greatest versions.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> How can I get a working version of gdal_retile.py?<br>
> Or can I get a newer version of FWTools?<br>
><br>
> Thanks,<br>
><br>
> Paul Meems<br>
><br>
<br>
<br>
</div></div></blockquote></div><br>